bulk_operations
Creates, updates, deletes, gets or lists a bulk_operations resource.
Overview
| Name | bulk_operations |
| Type | Resource |
| Id | cloudflare.rules.bulk_operations |
Fields
The following fields are returned by SELECT queries:
- get
Get bulk operation status response.
| Name | Datatype | Description |
|---|---|---|
id | string | The unique operation ID of the asynchronous action. (example: 4da8780eeb215e6cb7f48dd981c4ea02) |
completed | string | The RFC 3339 timestamp of when the operation was completed. (example: 2020-01-01T08:00:00Z) |
error | string | A message describing the error when the status is failed. (example: This list is at the maximum number of items) |
status | string | The current status of the asynchronous operation. (pending, running) (example: pending) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | operation_id, account_id | Gets the current status of an asynchronous operation on a list. The status property can have one of the following values: pending, running, completed, or failed. If the status is failed, the error property will contain a message describing the error. |
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 |
|---|---|---|
account_id | string | The Cloudflare account ID. |
operation_id | string |
SELECT examples
- get
Gets the current status of an asynchronous operation on a list. The status property can have one of the following values: pending, running, completed, or failed. If the status is failed, the error property will contain a message describing the error.
SELECT
id,
completed,
error,
status
FROM cloudflare.rules.bulk_operations
WHERE operation_id = '{{ operation_id }}' -- required
AND account_id = '{{ account_id }}' -- required
;