NSX-T Data Center REST API

Register a token-based principal identity.

Register a principal identity that is going to be authenticated through a token.
The combination name and node_id needs to be unique across token-based and
certificate-based principal identities.

Request:

Method:
POST
URI Path(s):
/api/v1/trust-management/token-principal-identities
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
TokenBasedPrincipalIdentity+

Example Request:

POST https://<nsx-mgr>/api/v1/trust-management/token-principal-identities { "name": "open-stack", "node_id": "node-2", "is_protected": "true" }

Successful Response:

Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
TokenBasedPrincipalIdentity+

Example Response:

{ "id": "ebd3032d-728e-44d4-9914-d4f81c9972cb", "name": "open-stack", "node_id": "node-2", "is_protected": "true" }

Required Permissions:

crud

Feature:

trust_principal_identities

Additional Errors: