List and filter on Linode Account tokens.
- name: List all of the Personal Access Tokens active for the current user
linode.cloud.token_list: {}
- name: Resolve all of the Personal Access Tokens active for the current user
linode.cloud.token_list:
filters:
- name: label
values: myTokenLabel
Field | Type | Required | Description |
---|---|---|---|
order |
str |
Optional | The order to list tokens in. (Choices: desc , asc ; Default: asc ) |
order_by |
str |
Optional | The attribute to order tokens by. |
filters (sub-options) |
list |
Optional | A list of filters to apply to the resulting tokens. |
count |
int |
Optional | The number of results to return. If undefined, all results will be returned. |
Field | Type | Required | Description |
---|---|---|---|
name |
str |
Required | The name of the field to filter on. Valid filterable attributes can be found here: https://www.linode.com/docs/api/profile/#personal-access-tokens-list__responses |
values |
list |
Required | A list of values to allow for this field. Fields will pass this filter if at least one of these values matches. |
-
tokens
- The returned tokens.- Sample Response:
[ { "created": "2018-01-01T00:01:01", "expiry": "2018-01-01T13:46:32", "id": 123, "label": "linode-cli", "scopes": "*", "token": "abcdefghijklmnop" } ]
- See the Linode API response documentation for a list of returned fields
- Sample Response: