NSX-T Data Center REST API

Batch replace certificates

Replaces one or more certificates. Certificate could be replaced using this
API only if it has a private key and a certificate profile, recorded in the
used-by section of the certificate, exists. Invoking this API will error if
certificate replacement operation is running due to previously invoked API.

The results of these batch operations can be queried by calling the API
GET /trust-management/certificates/action/batch-results

Request:

Method:
POST
URI Path(s):
/api/v1/trust-management/certificates/action/batch-replace
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
CertificatesBatchReplacementRequest+

Example Request:

{ "certificate_replacements": [ { "old_certificate_id": "ebd3032d-728e-44d4-9914-d4f81c9972cb", "new_certificate_id": "099072d3-ae8c-470d-aa1b-075c179b4642" }, { "old_certificate_id": "506d00d6-bfd5-4ebe-8b7f-0236f8de4792", "new_certificate_id": "00353742-9992-3599-626d-2d45a0605f1f" } ] }

Successful Response:

Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a

Required Permissions:

crud

Feature:

trust_certificates

Additional Errors: