permissions
Creates, updates, deletes, gets or lists a permissions resource.
Overview
| Name | permissions |
| Type | Resource |
| Id | cloudflare.intel.permissions |
Fields
The following fields are returned by SELECT queries:
- list
Get indicator feed metadata
| Name | Datatype | Description |
|---|---|---|
id | integer | The unique identifier for the indicator feed |
name | string | The name of the indicator feed |
description | string | The description of the example test |
is_attributable | boolean | Whether the indicator feed can be attributed to a provider |
is_downloadable | boolean | Whether the indicator feed can be downloaded |
is_public | boolean | Whether the indicator feed is exposed to customers |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | Lists current access permissions for custom threat indicator feeds. | |
update_add | exec | account_id | Grants access permissions for a custom threat indicator feed to other accounts. | |
update_remove | exec | account_id | Revokes access permissions for a custom threat indicator feed. |
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 |
|---|---|---|
account_id | string | The Cloudflare account ID. |
SELECT examples
- list
Lists current access permissions for custom threat indicator feeds.
SELECT
id,
name,
description,
is_attributable,
is_downloadable,
is_public
FROM cloudflare.intel.permissions
WHERE account_id = '{{ account_id }}' -- required
;
Lifecycle Methods
- update_add
- update_remove
Grants access permissions for a custom threat indicator feed to other accounts.
EXEC cloudflare.intel.permissions.update_add
@account_id='{{ account_id }}' --required
@@json=
'{
"account_tag": "{{ account_tag }}",
"feed_id": {{ feed_id }}
}'
;
Revokes access permissions for a custom threat indicator feed.
EXEC cloudflare.intel.permissions.update_remove
@account_id='{{ account_id }}' --required
@@json=
'{
"account_tag": "{{ account_tag }}",
"feed_id": {{ feed_id }}
}'
;