Disable custom operator¶
Deactivate a custom operator so that it cannot be used in subsequent workflow configurations or test runs. Deactivation does not automatically cancel workflow jobs that have already been started.
HTTP
POST $CLOUDSIGMA_API_BASE/workflow/v2/custom-operators/$OPERATOR_ID/disable
Before you call this API¶
Configure the regional API endpoint and authentication, and select the target workspace.
First query custom operator details to confirm the operator to be disabled.
Request¶
Shell
curl -X POST "$CLOUDSIGMA_API_BASE/workflow/v2/custom-operators/$OPERATOR_ID/disable" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Request parameters
Successful response¶
The response returns the updated operator configuration. After deactivation is completed, the operator cannot be used for subsequent workflow configuration or trial run.
The response fields are as follows.
JSON
{
"code": "OK",
"msg": "OK",
"data": {
"id": 123,
"node_id": "moi:custom.operator:workspace:text_counter",
"name": "文本计数",
"enabled": false
}
}
| Field | Type | Description |
|---|---|---|
code | string | OK on success. |
msg | string | OK on success. |
data.id | integer | Custom operator ID. |
data.node_id | string | Operator ID. |
data.name | string | Operator name. |
data.identifier | string | Operator ID. |
data.description | string | Operator description; returned if there is a value. |
data.handler | string | Processing function; returned when there is a value. |
data.version | string | Operator version; returned if there is a value. |
data.isolation_level | string | Isolation configuration; returned if there is a value. |
data.language | integer | Implements the numerical encoding of the language; returns if there is a value. |
data.kind | integer | Numeric encoding of the operator type; returned if there is a value. |
data.source_file_id | string | Source file ID; returned when created using a source file. |
data.input_schema | string | Enter the defined serialization content; return if there is a value. |
data.output_schema | string | Output the defined serialized content; return if there is a value. |
data.binding_config | string | The serialized content of the binding configuration; returned if there is a value. |
data.created_by | string | Creator ID; returned if there is a value. |
data.updated_by | string | Last updater ID; returned if there is a value. |
data.created_at | integer | Creation timestamp; returned if there is a value. |
data.updated_at | integer | Last updated timestamp; returned if there is a value. |
data.base_node_id | string | The basic operator associated with the built-in binding type; returned when there is a value. |
data.base_node_version | string | The basic operator version associated with the built-in binding type; returned when there is a value. |
data.catalog_id | integer | The associated Catalog ID; returned if there is a value. |
data.database_id | integer | The associated database ID; returned if there is a value. |
data.enabled | boolean | Enabled status. |
Error response¶
JSON
{
"code": "ErrParamInvalid",
"msg": "请求参数无效",
"data": null
}
| Field | Type | Description |
|---|---|---|
code | string | Error code. |
msg | string | Readable error message. |
data | null | `null` in an error response. |
Follow-up operations¶
After completion Query custom operator details confirms the current status.
Last updated on