[{"label":"Latest (8.6.3)","version":"latest"}]
vrealize-operations

Acquire Token

Description

Performing a POST /api/auth/token/acquire would yield a response object that includes token and its validity. HTTP Status 401 will be sent back if the authentication operation has failed.
NOTE: The validity of the acquired token is extended after each call and is set to 6 hours from the last call.

Request

Request

URL

URL


post
https://localhost/suite-api/api/auth/token/acquire
Copy

Request Body

Request Body

username-password of type(s) application/json, application/xml Required

The UsernamePassword object that encapsulates username, password and optionally the name of an Auth Source as specified by the user

Response

Response

Response Body

Response Body

200 OK returns AuthToken of type(s) application/json, application/xml

The token and expiry time of the token

Errors

Errors

401

Authentication failed

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"authSource":"string","password":"string","username":"string"}' https://localhost/suite-api/api/auth/token/acquire


[{"label":"Latest (8.6.3)","version":"latest"}]
vrealize-operations
Auth Operations
Feedback

Was this page helpful?