Skip to main content

operations_item

Creates, updates, deletes, gets or lists an operations_item resource.

Overview

Nameoperations_item
TypeResource
Idcloudflare.api_gateway.operations_item

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertzone_id, method, host, endpointAdd one operation to a zone. Endpoints can contain path variables. Host, method, endpoint will be normalized to a canoncial form when creating an operation and must be unique on the zone. Inserting an operation that matches an existing one will return the record of the already existing operation and update its last_updated date.

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
zone_idstringThe Cloudflare zone ID.

INSERT examples

Add one operation to a zone. Endpoints can contain path variables. Host, method, endpoint will be normalized to a canoncial form when creating an operation and must be unique on the zone. Inserting an operation that matches an existing one will return the record of the already existing operation and update its last_updated date.

INSERT INTO cloudflare.api_gateway.operations_item (
endpoint,
host,
method,
zone_id
)
SELECT
'{{ endpoint }}' /* required */,
'{{ host }}' /* required */,
'{{ method }}' /* required */,
'{{ zone_id }}'
RETURNING
errors,
messages,
result,
success
;