Disable custom operator¶
Deactivate a custom operator so that it cannot be used for subsequent workflow configuration or test runs.
POST $CLOUDSIGMA_API_BASE/workflow/v2/custom-operators/$OPERATOR_ID/disable
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First query the custom operator list, select an operator and obtain the custom operator ID. Then Query the custom operator details to confirm the current status of the operator. Prepare personal access token and target workspace ID that can access the target workspace.
Path parameters¶
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"
Field |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
Required |
Custom operator ID to deactivate. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"id": 123,
"node_id": "moi:custom.operator:workspace:text_counter",
"name": "文本计数",
"enabled": false,
"identifier": "sample_operator"
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
success code. |
|
string |
Response information. |
|
object |
The data returned by this operation. |
|
integer |
Custom operator ID. |
|
string |
The operator ID in the workflow. |
|
string |
operator name. |
|
string |
operator identification. |
|
string |
Description of the current object. |
|
integer |
language. |
|
string |
Code entry. |
|
string |
The current resource version. |
|
string |
Isolation level. |
|
string |
Source code file ID. |
|
string |
Enter the defined JSON text. |
|
string |
Outputs the JSON text of the definition. |
|
boolean |
Updated enabled status. |
|
string |
Creator ID. |
|
string |
Identifier of the last updated person. |
|
integer |
Creation time. |
|
integer |
Last updated time. |
|
integer |
Resource type. |
|
string |
Association ID. |
|
string |
Base node version. |
|
string |
Extended configuration. |
|
integer |
Association ID. |
|
integer |
Association ID. |
Error response¶
{
"code": "ErrParamInvalid",
"msg": "请求参数无效"
}
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
error code. |
|
string |
No |
Readable error message. |
Common HTTP errors¶
HTTP status |
Error code |
Common cause |
Recommended action |
|---|---|---|---|
400 |
|
Invalid request field, workspace, or operation precondition. |
Fix the request parameters and submit again. |
403 |
|
The current identity or active role does not have permission for this operation. |
Use an authorized identity or contact an administrator to grant access. |
404 |
|
The target object or required reference was not found. |
Verify the object identifier, workspace, and current status. |
500 |
|
Internal processing failed; write operations may have been partially applied. |
Retain request and trace details, and verify the current state before retrying. |
503 |
|
A business, runtime, or authorization dependency is temporarily unavailable. |
After the dependency recovers, check existing results first instead of blindly repeating writes. |