Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 2.18 KB

token_info.md

File metadata and controls

54 lines (40 loc) · 2.18 KB

token_info

Get info about a Linode Personal Access Token.

Minimum Required Fields

Field Type Required Description
api_token str Required The Linode account personal access token. It is necessary to run the module.
It can be exposed by the environment variable LINODE_API_TOKEN instead.
See details in Usage.

Examples

- name: Get info about a token by label
  linode.cloud.token_info:
    label: my-token
- name: Get info about a token by ID
  linode.cloud.token_info:
    id: 12345

Parameters

Field Type Required Description
id int Optional The ID of the token. (Conflicts With: label)
label str Optional The label of the token. (Conflicts With: id)

Return Values

  • token - The token in JSON serialized form.

    • 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