System Administration > Settings > Certificates > CSR

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": "f1a858e1-fe70-41d0-a53b-32c43cec280f", "resource_type": "csr", "pem_encoded": "-----BEGIN CERTIFICATE REQUEST----------END CERTIFICATE REQUEST-----\n", "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", "_last_modified_time": 1413371717767, "_create_time": 1413371717767, "_create_user": "admin", "_last_modified_user": "admin" }, { "id": "351bf766-dcd3-477a-87bb-e72139f77396", "resource_type": "csr", "pem_encoded": "-----BEGIN CERTIFICATE REQUEST----------END CERTIFICATE REQUEST-----\n", "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", "_last_modified_time": 1413384517993, "_create_time": 1413384517993, "_create_user": "admin", "_last_modified_user": "admin" } ] }

Required Permissions:

read

Feature:

trust_csrs

Additional Errors: