Skip to content

Latest commit

 

History

History
123 lines (107 loc) · 3.83 KB

user_info.md

File metadata and controls

123 lines (107 loc) · 3.83 KB

user_info

Get info about a Linode User.

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 user
  linode.cloud.user_info:
    username: my-cool-user

Parameters

Field Type Required Description
username str Required The Username of the User to resolve.

Return Values

  • user - The returned User.

  • grants - The returned Grants.

    • Sample Response:
      {
        "domain": [
          {
            "id": 123,
            "label": "example-entity",
            "permissions": "read_only"
          }
        ],
        "global": {
          "account_access": "read_only",
          "add_databases": true,
          "add_domains": true,
          "add_firewalls": true,
          "add_images": true,
          "add_linodes": true,
          "add_longview": true,
          "add_nodebalancers": true,
          "add_stackscripts": true,
          "add_volumes": true,
          "cancel_account": false,
          "longview_subscription": true
        },
        "image": [
          {
            "id": 123,
            "label": "example-entity",
            "permissions": "read_only"
          }
        ],
        "linode": [
          {
            "id": 123,
            "label": "example-entity",
            "permissions": "read_only"
          }
        ],
        "longview": [
          {
            "id": 123,
            "label": "example-entity",
            "permissions": "read_only"
          }
        ],
        "nodebalancer": [
          {
            "id": 123,
            "label": "example-entity",
            "permissions": "read_only"
          }
        ],
        "stackscript": [
          {
            "id": 123,
            "label": "example-entity",
            "permissions": "read_only"
          }
        ],
        "volume": [
          {
            "id": 123,
            "label": "example-entity",
            "permissions": "read_only"
          }
        ]
      }
    • See the Linode API response documentation for a list of returned fields