NSX-T Data Center REST API

Authenticate and create a session

Authenticates using the given username and password. If successful, the HTTP response headers will contain a Set-Cookie header and an X-XSRF-TOKEN header. Both of these headers should be sent with subsequent API requests.

Request:

Method:
POST
URI Path(s):
/api/session/create
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
SessionAuthenticationCredentials+

Example Request:

Content-Type: application/x-www-form-urlencoded j_username=admin&j_password=my-password

Successful Response:

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

Example Response:

set-cookie: JSESSIONID=57021338F5FDB766121F51BB5E1B82C3; Path=/; Secure; HttpOnly; SameSite=Lax x-xsrf-token: 8bf06253-c246-4e4b-a379-f218dd0a193c 200 OK

Required Permissions:

none

Feature:

none

Additional Errors: