NSX-T Data Center REST API

Return All the User-Facing Components' Certificates

Returns all certificate information viewable by the user, including each
certificate's UUID; resource_type (for example, certificate_self_signed,
certificate_ca, or certificate_signed); pem_encoded data; and history of the
certificate (who created or modified it and when). For additional
information, include the ?details=true modifier at the end of the request
URI.

Request:

Method:
GET
URI Path(s):
/api/v1/trust-management/certificates
Request Headers:
n/a
Query Parameters:
ListCertParameter+
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/trust-management/certificates

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
CertificateList+

Example Response:

{ "result_count": 2, "results": [ { "id": "2e15955d-acd1-4f49-abae-0c6ea65bf437", "display_name": "2e15955d-acd1-4f49-abae-0c6ea65bf437", "resource_type": "certificate_ca", "pem_encoded": "-----BEGIN CERTIFICATE----------END CERTIFICATE-----\n", "has_private_key": false, "used_by": [], "_system_owned": false, "_last_modified_time": 1413369285797, "_create_time": 1413369285797, "_create_user": "admin", "_last_modified_user": "admin", "_protection": "NOT_PROTECTED", "_revision": 0 }, { "id": "506d00d6-bfd5-4ebe-8b7f-0236f8de4792", "display_name": "506d00d6-bfd5-4ebe-8b7f-0236f8de4792", "resource_type": "certificate_signed", "pem_encoded": "-----BEGIN CERTIFICATE----------END CERTIFICATE-----\n-----BEGIN CERTIFICATE----------END CERTIFICATE-----\n", "has_private_key": true, "used_by": [], "_system_owned": false, "_last_modified_time": 1413369285811, "_create_time": 1413369285811, "_create_user": "admin", "_last_modified_user": "admin", "_protection": "NOT_PROTECTED", "_revision": 0 } ] }

Required Permissions:

read

Feature:

trust_certificates

Additional Errors: