Get info about a Linode User.
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. |
- name: Get info about a user
linode.cloud.user_info:
username: my-cool-user
Field | Type | Required | Description |
---|---|---|---|
username |
str |
Required | The username of the user. |
-
user
- The user info in JSON serialized form.- Sample Response:
{ "email": "[email protected]", "restricted": true, "ssh_keys": [ "home-pc", "laptop" ], "tfa_enabled": null, "username": "example_user" }
- See the Linode API response documentation for a list of returned fields
- Sample Response:
-
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
- Sample Response: