grants
Creates, updates, deletes, gets or lists a grants
resource.
Overview
Name | grants |
Type | Resource |
Id | linode.profile.grants |
Fields
The following fields are returned by SELECT
queries:
- get_profile_grants
GrantsResponse.
Name | Datatype | Description |
---|---|---|
database | array | The grants this user has for individual Managed Databases on this account. |
domain | array | The grants this user has for individual domains on this account. |
firewall | array | The grants this user has for individual firewalls on this account. |
global | object | The grants the user has to all resources on your account. |
image | array | The grants this user has for individual images on this account. |
linode | array | The grants this user has for individual Linodes on this account. |
longview | array | The grants this user has for individual Longview Clients on this account. |
nodebalancer | array | The grants this user has for individual NodeBalancers on this account. |
stackscript | array | The grants this User has for individual StackScripts on this account. |
volume | array | The grants this user has individual Block Storage Volumes on this account. |
vpc | array | The grants this user has individual Virtual Private Clouds (VPCs) on this account. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_profile_grants | select | This returns a GrantsResponse describing what the acting User has been granted access to. For unrestricted users, this will return a 204 and no body because unrestricted users have access to everything without grants. This will not return information about entities you do not have access to. This operation is useful when writing third-party OAuth applications to see what options you should present to the acting User. For example, if they do not have global.add_linodes , you might not display a button to deploy a new Linode.Any client may run this operation; no OAuth scopes are required. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|
SELECT
examples
- get_profile_grants
This returns a GrantsResponse describing what the acting User has been granted access to. For unrestricted users, this will return a 204 and no body because unrestricted users have access to everything without grants. This will not return information about entities you do not have access to. This operation is useful when writing third-party OAuth applications to see what options you should present to the acting User.
For example, if they do not have global.add_linodes
, you might not display a button to deploy a new Linode.
Any client may run this operation; no OAuth scopes are required.
SELECT
database,
domain,
firewall,
global,
image,
linode,
longview,
nodebalancer,
stackscript,
volume,
vpc
FROM linode.profile.grants;