Acquire Token
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.
The UsernamePassword object that encapsulates username, password and optionally the name of an Auth Source as specified by the user
Show optional properties
{
"username": "string",
"password": "string"
}
"{\n \"username\" : \"Some-LDAP-User\",\n \"authSource\" : \"Imported LDAP Server\",\n \"password\" : \"Some-LDAP-User-Password\"\n}"
The username
The auth source name
The password
The token and expiry time of the token
"No Custom Example is Available"
Auth token for accessing future rest API(s)
Token expiration time in milliseconds (since Jan 1, 1970)
Token expiration time, in easy to read string representation (since Jan 1, 1970)
List of roles the current user has
Authentication failed
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"password:"string","username:"string"}' https://{api_host}/suite-api/api/auth/token/acquire