How to manage a personal token
Personal Tokens allow you to authenticate your access to interfaces and tools such as the Azion CLI and Azion API.
Creating a personal token
Section titled Creating a personal tokenVia RTM
Section titled Via RTM-
Log in to Real-Time Manager (RTM).
-
In the Account Menu on the top-right corner, represented by three horizontal lines, and select Personal Tokens.
-
Click the Add a personal token button.
-
Fill in the required fields:
- Personal Token name
- Expires in. You can choose the token expiration date between 1, 7, 15, 30, 90 days, 1 year, or a custom date.
- Personal Token description (optional)
-
Click the Create Token button.
-
Click the visibility icon in the Personal Token field to see your token.
-
Click the copy token icon to copy your token.
Via API
Section titled Via API- Run the following cURL command in your terminal, replacing
[TOKEN VALUE]
with an already existing personal token:
curl --location 'https://api.azionapi.net/iam/personal_tokens' \--header 'Accept: application/json; version=3' \--header 'Authorization: Token [TOKEN VALUE]' \--header 'Content-Type: application/json' \--data '{ "name": "One day token", "expires_at": "2023-07-26T00:00", "description": "example"}'
You can also change the name
, expires_at
, and description
fields.
Revoking a personal token
Section titled Revoking a personal tokenTo revoke your Personal Token, proceed as follows:
- Log in to RTM.
- In the Account Menu on the top-right corner, represented by three horizontal lines, and select Personal Tokens.
- Hover over the personal token item you want to delete and click the trash can icon.
- On the verification pop-up, type delete.
- Click the Delete button.
You’ll see a message confirming the deletion of your token.
Contributors