history
Creates, updates, deletes, gets or lists a history resource.
Overview
| Name | history |
| Type | Resource |
| Id | cloudflare.zaraz.history |
Fields
The following fields are returned by SELECT queries:
- list
List Zaraz historical configuration records response.
| Name | Datatype | Description |
|---|---|---|
id | integer | ID of the configuration. |
createdAt | string (date-time) | Date and time the configuration was created. |
description | string | Configuration description provided by the user who published this configuration. |
updatedAt | string (date-time) | Date and time the configuration was last updated. |
userId | string | Alpha-numeric ID of the account user who published the configuration. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | zone_id | offset, limit, sortField, sortOrder | Lists a history of published Zaraz configuration records for a zone. |
update | replace | zone_id | Restores a historical published Zaraz configuration by ID for a zone. |
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. |
limit | integer | Maximum amount of results to list. Default value is 10. |
offset | integer | Ordinal number to start listing the results with. Default value is 0. |
sortField | string | The field to sort by. Default is updated_at. |
sortOrder | string | Sorting order. Default is DESC. |
SELECT examples
- list
Lists a history of published Zaraz configuration records for a zone.
SELECT
id,
createdAt,
description,
updatedAt,
userId
FROM cloudflare.zaraz.history
WHERE zone_id = '{{ zone_id }}' -- required
AND offset = '{{ offset }}'
AND limit = '{{ limit }}'
AND sortField = '{{ sortField }}'
AND sortOrder = '{{ sortOrder }}'
;
REPLACE examples
- update
Restores a historical published Zaraz configuration by ID for a zone.
REPLACE cloudflare.zaraz.history
SET
-- No updatable properties
WHERE
zone_id = '{{ zone_id }}' --required
RETURNING
errors,
messages,
result,
success;