operations_item
Creates, updates, deletes, gets or lists an operations_item resource.
Overview
| Name | operations_item |
| Type | Resource |
| Id | cloudflare.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create | insert | zone_id, method, host, endpoint | 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. |
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 |
|---|---|---|
zone_id | string | The Cloudflare zone ID. |
INSERT examples
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: operations_item
props:
- name: zone_id
value: "{{ zone_id }}"
description: Required parameter for the operations_item resource.
- name: endpoint
value: "{{ endpoint }}"
description: |
The endpoint which can contain path parameter templates in curly braces, each will be replaced from left to right with {varN}, starting with {var1}, during insertion. This will further be Cloudflare-normalized upon insertion. See: https://developers.cloudflare.com/rules/normalization/how-it-works/.
- name: host
value: "{{ host }}"
description: |
RFC3986-compliant host.
- name: method
value: "{{ method }}"
description: |
The HTTP method used to access the endpoint.
valid_values: ['GET', 'POST', 'HEAD', 'OPTIONS', 'PUT', 'DELETE', 'CONNECT', 'PATCH', 'TRACE']