terminate
Creates, updates, deletes, gets or lists a terminate resource.
Overview
| Name | terminate |
| Type | Resource |
| Id | cloudflare.workflows.terminate |
Fields
The following fields are returned by SELECT queries:
- list
Get status of the job responsible for terminate all instances of a workflow.
| Name | Datatype | Description |
|---|---|---|
status | string | (running, not_running) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | workflow_name, account_id | Gets the status of a bulk workflow instance termination job. | |
wor_batch_terminate_workflow_instances | insert | workflow_name, account_id | Terminates multiple workflow instances in a single batch operation. |
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. |
workflow_name | string | The Workflow name. |
SELECT examples
- list
Gets the status of a bulk workflow instance termination job.
SELECT
status
FROM cloudflare.workflows.terminate
WHERE workflow_name = '{{ workflow_name }}' -- required
AND account_id = '{{ account_id }}' -- required
;
INSERT examples
- wor_batch_terminate_workflow_instances
- Manifest
Terminates multiple workflow instances in a single batch operation.
INSERT INTO cloudflare.workflows.terminate (
workflow_name,
account_id
)
SELECT
'{{ workflow_name }}',
'{{ account_id }}'
RETURNING
errors,
messages,
result,
result_info,
success
;
# Description fields are for documentation purposes
- name: terminate
props:
- name: workflow_name
value: "{{ workflow_name }}"
description: Required parameter for the terminate resource.
- name: account_id
value: "{{ account_id }}"
description: Required parameter for the terminate resource.