managed
Creates, updates, deletes, gets or lists a managed resource.
Overview
| Name | managed |
| Type | Resource |
| Id | cloudflare.api_gateway.managed |
Fields
The following fields are returned by SELECT queries:
- get
Retrieve managed label response
| Name | Datatype | Description |
|---|---|---|
name | string | The name of the label (example: login) |
created_at | string (date-time) | (example: 2014-01-01T05:20:00.12345Z) |
description | string | The description of the label (example: All endpoints that deal with logins) |
last_updated | string (date-time) | (example: 2014-01-01T05:20:00.12345Z) |
mapped_resources | object | Provides counts of what resources are linked to this label |
metadata | object | Metadata for the label |
source | string | * user - label is owned by the user * managed - label is owned by cloudflare (user, managed) (example: managed) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | zone_id, name | with_mapped_resource_counts | Retrieve managed label |
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 |
|---|---|---|
name | string | Resource name. |
zone_id | string | The Cloudflare zone ID. |
with_mapped_resource_counts | boolean | Include mapped_resources for each label |
SELECT examples
- get
Retrieve managed label
SELECT
name,
created_at,
description,
last_updated,
mapped_resources,
metadata,
source
FROM cloudflare.api_gateway.managed
WHERE zone_id = '{{ zone_id }}' -- required
AND name = '{{ name }}' -- required
AND with_mapped_resource_counts = '{{ with_mapped_resource_counts }}'
;