Create Trusted Certificates
Adds a certificate to content library trust store. This API has to be invoked separately for each certificate block - (BEGIN_CERTIFICATE … END_CERTIFICATE)
if you do not have all of the privileges described as follows: - Operation execution requires ContentLibrary.AddCertToTrustStore.
Request
URLURL
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
Specification for the certificate to be added to content library trust store.
{
"cert_text": "string"
}
A certText is the certificate in Base64 encoded PEM format. The input must be a single line string with escape sequence for new-lines.
Authentication
Response
Response BodyResponse Body
ID of the certificates added. The certificate ID will be unique for each certificate. If the certificate already exists, existing ID is returned. The result will be an identifier for the resource type: com.vmware.content.TrustedCertificate.
Errors
com.vmware.vapi.std.errors.error : if the system reports an error while responding to the request.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-operation: create