Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.31 KB

token_info.md

File metadata and controls

48 lines (35 loc) · 1.31 KB

token_info

Get info about a Linode Personal Access Token.

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