Resource Tagging
resource_tagging
Methods
Lists all tagged resources for an account.
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example: X-Auth-Email: user@example.com
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example: X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
Identifier.
Cursor for pagination.
Filter resources by tag criteria. This parameter can be repeated multiple times, with AND logic between parameters.
Supported syntax:
- Key-only:
tag=<key>- Resource must have the tag key (e.g.,tag=production) - Key-value:
tag=<key>=<value>- Resource must have the tag with specific value (e.g.,tag=env=prod) - Multiple values (OR):
tag=<key>=<v1>,<v2>- Resource must have tag with any of the values (e.g.,tag=env=prod,staging) - Negate key-only:
tag=!<key>- Resource must not have the tag key (e.g.,tag=!archived) - Negate key-value:
tag=<key>!=<value>- Resource must not have the tag with specific value (e.g.,tag=region!=us-west-1)
Multiple tag parameters are combined with AND logic.
Filter by resource type. Can be repeated to filter by multiple types (OR logic). Example: ?type=zone&type=worker
Whether the API call was successful.
Keys
resource_tagging.keys
Methods
Lists all distinct tag keys used across resources in an account.
Values
resource_tagging.values
Methods
Lists all distinct values for a given tag key, optionally filtered by resource type.