Create a token for a service type

Limited availability Returns a token that authenticates requests for the entities within a specific service type. To see your currently supported services, run the List supported service types operation. The token has a lifetime of six hours after you create it.

📘

When creating this token for Object Storage metrics, the token is accessible to all users on your account.

👍

There's a tutorial

We offer an example you can follow to generate this token.

Permissions and scopes

To call this operation, you need permissions, based on the model you're using:

  • OAuth scopes. Your user needs these scopes assigned. Learn more.

    • Scopes: monitor:read_only

CLI

linode-cli monitor token-get dbaas \
--entity_ids 189690 \
--entity_ids 188020 --json

Learn more

Path Params
string
enum
required

Enum Call either the v4 URL, or v4beta for operations still in Beta.

Allowed:
string
required

The Akamai Cloud Computing service being monitored. To see your currently supported services, run the List supported service types operation and store the appropriate service_type.

Body Params
entity_ids
array of strings
length between 1 and 100

The id for individual Object Storage buckets you want to specifically target for metrics gathering with this token. Run the List Object Storage buckets operation and store the hostname values for the applicable ones. To have the token apply to all of your Object Storage buckets, leave this array out of the request, and just send an empty object ({ }).

📘

  • This field supports up to 100 total entries.

  • You need read access permission to all Object Storage buckets you want to access with this token. Run the List a user's grants operation to see the permission level for each Object Storage bucket in your account.

entity_ids
Responses

Language
Credentials
LoadingLoading…
Response
Choose an example:
application/json