NSX-T Data Center REST API
Apply a certificate for a CertificateProfile
Look up the Certificate Profile matching the service-type and apply the certificate.When the Certificate Profile has cluster_certificate=false, the node_id parameter
is required to designate the node where the certificate needs to be applied.
Note that when applying CA-signed certificates to either the API certificate profile
or the MGMT_CLUSTER certificate profile, the cerficate must have its CN or SAN extensions
matching the endpoint's IP or FQDN. This also means that applying a CA-signed certificate
to the MGMT_CLUSTER service profile to a cluster without first configuring its VIP is not allowed.
Request:
Method:
POST
URI Path(s):
/api/v1/trust-management/certificates/{cert-id}?action=apply_certificate
Request Headers:
n/a
Query Parameters:
ApplyCertificateParameters+
Request Body:
n/a
Example Request:
POST https://<nsx-mgr>/api/v1/trust-management/certificates/9b9250b9-f97f-41b4-8ff2-24ec57855f7b?action=apply_certificate&service_type=API&node_id=4206C988-8227-CEE9-D9AF-1C581AD84A03Successful Response:
Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a