Generate Access Token

This endpoint generates an access token for new Central. The provided API client credentials must be for Central application on the HPE GreenLake Platform. The generated token is valid for 2 hours.

post/as/token.oauth2

Request

Headers

Content-Typestring

Request body application/x-www-form-urlencoded

grant_type'client_credentials' required
client_idstring required

API Client ID

client_secretstring required

API Client Secret

Example request

{
  "client_id": "<API-Client-ID>",
  "client_secret": "<API-Client-Secret>"
}

Response

Successful response

access_tokenstring

The token you can use to make API calls to new Central

token_typestring

Indicates the type of token issued

expires_ininteger

The duration (in seconds) for which the token is valid

Example response

{
  "access_token": "<access_token>",
  "token_type": "Bearer",
  "expires_in": 7200
}

Changes

No recorded changes to this operation across all 1 revision of this API.