Skip to content

Latest commit

 

History

History
122 lines (106 loc) · 3.83 KB

user_info.md

File metadata and controls

122 lines (106 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.

Return Values

  • user - The user info in JSON serialized form.

  • grants - The grants info in JSON serialized form.

    • 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