[{"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

Update Certificate Library Item

Description

Updates the specified certificate library item. Only the alias and description fields may be edited Note: This API also supports a former (erroneously spelt) alternate path /cetificateLibrary/{id} as a Deprecated API (deprecated-in and removed after API version 36.0)

Request

Request

URL

URL


put
https://{api_host}/cloudapi/1.0.0/ssl/certificateLibrary/{id}
Copy

Path Parameters

Path Parameters

string
id Required

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

200 OK

Returns CertificateLibraryItem of type(s) application/json;version=37.2
{
	"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 PUT -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/{id}


[{"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?