Enable/Disable¶
POST /api/v1/pipeline/batch_set_disable
Overview¶
Batch enable or disable Pipelines and their source associations.
Before Calling and Usage Steps¶
You must first check each non-deleted Pipeline UUID item by item from the list in the current Workspace. Do not mix in cross-Workspace, system template, or mismatched identifiers. The primary configuration query is filtered by Workspace, but associated source status updates use the complete input set. Do not interpret a primary configuration miss or HTTP 200 as other associations being unaffected. Only true is returned. Empty arrays or no primary configuration matches can still succeed, and no per-item results are provided. Enabling does not trigger historical data replay, and disabling does not withdraw in-flight processing. This operation does not archive configuration versions. After completion, re-read the list to verify the status of each object.
Request Headers¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the Workspace. Example: <DF-API-KEY>How to obtain or fill in: Obtain an OpenAPI Key with permission for this operation from API Key Management in the target Workspace. |
Body Request Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| plUUIDs[*] | string | Not a name or a historical UUID. Example: pl_exampleHow to obtain or fill in: A single Pipeline UUID. |
|
| isDisable | boolean | Y | Required boolean; sets status=2/0 respectively and updates the associated source status; does not restore deleted items. Allow null: False Example: trueHow to obtain or fill in: true to pause, false to enable. |
| plUUIDs | array | Y | Required array, preferably non-empty; system templates are not operated on. Allow null: False Example: ["pl_example"]How to obtain or fill in: Obtain the UUID set for this Workspace from the Pipeline list. |
Request Example¶
curl --request POST 'https://openapi.guance.com/api/v1/pipeline/batch_set_disable' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json' \
--data-raw '{"plUUIDs":["pl_example"],"isDisable":true}'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content | boolean | true on success; does not indicate that all input UUIDs were matched. |
{
"code": 200,
"content": true,
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | A request field is missing, or a field value violates the declared validation conditions | Parameter parsing failed | Check the parameter location, field name, type, and value. |
| 400 | ft.RequestJsonFormatError | Invalid request JSON syntax | Request JSON format error | Fix the JSON according to content.reason, line, and column. |
| 500 | ft.InternalServerError | Synchronous compilation service unavailable/timeout/format exception (the internal PipelineValidationUnavailable is ultimately wrapped uniformly), database or structural error, or post-commit formatting failure | Internal error | Before retrying later, first read the current configuration and version to confirm whether it has been saved; if the failure persists, provide the traceId. |