Skip to main content

managed

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

Overview

Namemanaged
TypeResource
Idcloudflare.api_gateway.managed

Fields

The following fields are returned by SELECT queries:

Retrieve managed label response

NameDatatypeDescription
namestringThe name of the label (example: login)
created_atstring (date-time) (example: 2014-01-01T05:20:00.12345Z)
descriptionstringThe description of the label (example: All endpoints that deal with logins)
last_updatedstring (date-time) (example: 2014-01-01T05:20:00.12345Z)
mapped_resourcesobjectProvides counts of what resources are linked to this label
metadataobjectMetadata for the label
sourcestring* 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:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectzone_id, namewith_mapped_resource_countsRetrieve 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.

NameDatatypeDescription
namestringResource name.
zone_idstringThe Cloudflare zone ID.
with_mapped_resource_countsbooleanInclude mapped_resources for each label

SELECT examples

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 }}'
;