Skip to main content

bulk_operations

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

Overview

Namebulk_operations
TypeResource
Idcloudflare.rules.bulk_operations

Fields

The following fields are returned by SELECT queries:

Get bulk operation status response.

NameDatatypeDescription
idstringThe unique operation ID of the asynchronous action. (example: 4da8780eeb215e6cb7f48dd981c4ea02)
completedstringThe RFC 3339 timestamp of when the operation was completed. (example: 2020-01-01T08:00:00Z)
errorstringA message describing the error when the status is failed. (example: This list is at the maximum number of items)
statusstringThe current status of the asynchronous operation. (pending, running) (example: pending)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectoperation_id, account_idGets 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.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
operation_idstring

SELECT examples

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
;