esx authentication token: create
Creates API access token using API user credentials in the call context. The returned token can be used to authenticate access to other host APIs
The ESXi Authentication service accepts the following types of user credentials:
- Username and password
- vCenter SAML tokens
Request:
HTTP request
POST https://{server}/api/esx/authentication/token
Response:
HTTP Status Code: 201
Response Body Structure:
{
"access_token" : "secret string"
}
"access_token" : "secret string"
}
Headers:
NoneType:
Name | Type | Description |
---|---|---|
bold = required | ||
- | token_info | |
-.access_token | secret | The accessToken contains the token. |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
401 | unauthenticated | if the credentials provided in the API call cannot be validated or are insufficient to generate API access token |