Token Auth Using POST 1
Request a bearer token based on the authentication method.
Request
URI
POST
https://{api_host}//vcp.vmware.com/api/commerce/v1/auth
COPY
Request Body
UserToken of type(s) application/json
Required
{
"type": "string",
"userToken": "e6IsZmpOjEJ4g-bazyo5gl9Y"
}
Responses
200
OK
Returns Token of type(s) application/json
{
"tokenType": "bearer",
"accessToken": "eyJhbGciOiJIUzUxMiJ9.eyJhdWQiOiJTRVNTSU9OIiwiY29udGV4dCI6IjE2MDAxYmY1LTRiYmUtNGE3YS1hMTJkLTE3OWM1Njk0YmI4YyIsImlhdCI6MTY4MjM5Mzg5NCwiZXhwIjoxNjgyMzk1Njk0fQ.Yw5Ys7t7whl28ptPXn4AouK2cIOR4fx6Cg_KOmdUBZDZD83UaifCRHbnpJrqgyNUSw7eHgjVFG_31aAOI9gvBw",
"expiresIn": 1800
}
string
tokenType
Optional
Access token type. Currently it is always bearer.
string
accessToken
Optional
Access token in jwt token format, which will be used for subsequent resource API calls. Authorization: Bearer {accessToken}
.
integer As int64 As int64
expiresIn
Optional
The seconds token will expire in.
400
Bad format of request body or wrong value format is provided.
Operation doesn't return any data structure
401
The authentication failed.
Operation doesn't return any data structure
Authentication Operations
POST
Token Auth Using POST 1