Skip to main content

permission_groups

Creates, updates, deletes, gets or lists a permission_groups resource.

Overview​

Namepermission_groups
TypeResource
Idcloudflare.accounts.permission_groups

Fields​

The following fields are returned by SELECT queries:

List Account Owned API Token Permission Groups response

NameDatatypeDescription
idstringPublic ID.
namestringPermission Group Name
scopesarrayResources to which the Permission Group is scoped

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idname, scopeFind all available permission groups for Account Owned API Tokens

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.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
namestringFilter by the name of the permission group. The value must be URL-encoded.
scopestringFilter by the scope of the permission group. The value must be URL-encoded.

SELECT examples​

Find all available permission groups for Account Owned API Tokens

SELECT
id,
name,
scopes
FROM cloudflare.accounts.permission_groups
WHERE account_id = '{{ account_id }}' -- required
AND name = '{{ name }}'
AND scope = '{{ scope }}'
;