Get an API token
You need to obtain an Astra API token to use the Astra Control REST API.
Introduction
An API token identifies the caller to Astra and must be included with every REST API call.
-
You can generate an API token using the Astra web user interface.
-
The user identity carried with the token is determined by the user creating the token.
-
The token must be included in the
Authorization
HTTP request header. -
A token never expires after it is created.
-
You can revoke a token at the Astra web user interface.
Create an Astra API token
The following steps describe how to create an Astra API token.
You need credentials for an Astra account.
This task generates an API token at the Astra web interface. You should also retrieve the account ID which is also needed when making an API calls.
-
Sign in to Astra using your account credentials.
Access the following site for Astra Control Service: https://astra.netapp.io
-
Click the figure icon at the top right of the page and select API access.
-
Click Generate API token on the page and in the popup window click Generate API token.
-
Click the icon to copy the token string to the clipboard and save it in your editor.
-
Copy and save the account id which is available on the same page.
When you access the Astra Control REST API through Curl or a programming language, you must include the API bearer token in the HTTP Authorization
request header.