Generate API Token
Generate API Token in Identity Broker
The VMware Identity Services tenant ID
my-tenant
Show optional properties
{
"token_display_name": "string",
"api_token_ttl": 0,
"access_token_ttl": 0
}
{
"_links": {
"self": {
"href": "https://example.com/path-to-self"
}
},
"token_display_name": "string",
"api_token_ttl": 0,
"access_token_ttl": 0,
"max_count_of_uses": 0,
"token_description": "string",
"client_id": "string"
}
The resource HATEOAS links. Usually includes a "self" link for this resource
token_display_name
API token ttl in minutes.
Access token ttl in minutes.
max_count_of_uses
token_description
client_id
API Token was created successfully.
{
"_links": {
"self": {
"href": "https://example.com/path-to-self"
}
},
"id": "string",
"client_display_name": "string",
"client_id": "string",
"client_type": "string",
"token_display_name": "string",
"token_type": "string",
"token_sub_type": "string",
"token_suffix": "string",
"api_token_ttl": 0,
"access_token_ttl": 0,
"acct": "string",
"user_status": false,
"expiration_date": "string",
"last_access_time": "string",
"created_date": "string",
"modified_date": "string",
"token_status": "string",
"token_description": "string",
"token": "string"
}
The error can be any of those: the provided grant type is not supported, the request is missing a required parameterThe error description will contain 'error' and 'error_description' fields. See the API Token spec for further details.
Auth token is missing or not valid
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/vnd.vmware.vidm.api-tokens.create.request+json' -d '{"access_token_ttl":"integer","api_token_ttl":"integer","token_display_name":"string"}' https://{api_host}/acs/t/{tenant}/api-tokens