NSX-T Data Center REST API

Return All the Generated CSRs

Returns information about all of the CSRs that have been created.

Request:

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

Example Request:

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

Successful Response:

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

Example Response:

{ "result_count": 2, "results": [ { "id": "170b0f6c-653b-4dcc-92bf-0ab8f3a00b08", "display_name": "170b0f6c-653b-4dcc-92bf-0ab8f3a00b08", "resource_type": "csr", "pem_encoded": "-----BEGIN CERTIFICATE REQUEST----------END CERTIFICATE REQUEST-----\n", "is_ca": false, "key_size": 2048, "subject": { "attributes": [ { "value": "Jane", "key": "CN" }, { "value": "VMware", "key": "O" }, { "value": "NSBU", "key": "OU" }, { "value": "US", "key": "C" }, { "value": "CA", "key": "ST" }, { "value": "PA", "key": "L" } ] }, "algorithm": "RSA", "_system_owned": false, "_last_modified_time": 1413382501591, "_create_time": 1413382501591, "_create_user": "admin", "_last_modified_user": "admin", "_protection": "NOT_PROTECTED", "_revision": 0 }, { "id": "351bf766-dcd3-477a-87bb-e72139f77396", "display_name": "351bf766-dcd3-477a-87bb-e72139f77396", "resource_type": "csr", "pem_encoded": "-----BEGIN CERTIFICATE REQUEST----------END CERTIFICATE REQUEST-----\n", "is_ca": false, "key_size": 2048, "subject": { "attributes": [ { "value": "Joe", "key": "CN" }, { "value": "VMware", "key": "O" }, { "value": "NSBU", "key": "OU" }, { "value": "US", "key": "C" }, { "value": "CA", "key": "ST" }, { "value": "PA", "key": "L" } ] }, "algorithm": "DSA", "_system_owned": false, "_last_modified_time": 1413384517993, "_create_time": 1413384517993, "_create_user": "admin", "_last_modified_user": "admin", "_protection": "NOT_PROTECTED", "_revision": 0 } ] }

Required Permissions:

read

Feature:

trust_csrs

Additional Errors: