[{"label":"Latest (v37.2)","version":"latest"},{"version":"v37.1"},{"version":"v37.0"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director

Add Certificate Library Item

Description

Add an item to the certificate library

Request

Request

URL

URL


post
https://{api_host}/cloudapi/1.0.0/ssl/certificateLibrary
Copy

Request Body

Request Body

CertificateLibraryItem of type(s) application/json Required
{
	"alias": "string",
	"certificate": "string"
}
string
alias Required

string
certificate Required

PEM encoded certificate. All extraneous whitespace and other information is removed.


string
description Optional

Description of the certificate library item


string
id Changed Optional

string
privateKey Optional

PEM encoded private key. Required if providing a certificate chain


string
privateKeyPassphrase Optional

passphrase for the private key. Required if the private key is encrypted

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

201 Created

Returns CertificateLibraryItem of type(s) application/json;version=37.1
{
	"alias": "string",
	"certificate": "string",
	"description": "string",
	"id": "string",
	"privateKey": "string",
	"privateKeyPassphrase": "string"
}
string
alias Required

string
certificate Required

PEM encoded certificate. All extraneous whitespace and other information is removed.


string
description Optional

Description of the certificate library item


string
id Changed Optional

string
privateKey Optional

PEM encoded private key. Required if providing a certificate chain


string
privateKeyPassphrase Optional

passphrase for the private key. Required if the private key is encrypted

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"alias":"string","certificate":"string","description":"string","id":"string","privateKey":"string","privateKeyPassphrase":"string"}' https://{api_host}/cloudapi/1.0.0/ssl/certificateLibrary


[{"label":"Latest (v37.2)","version":"latest"},{"version":"v37.1"},{"version":"v37.0"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director
Feedback

Was this page helpful?