View custom operator list¶
View custom operators that can be read by the current workspace. The returned operator ID can be used to view, modify, test run, or delete the operator.
GET $CLOUDSIGMA_API_BASE/workflow/v2/custom-operators
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. Prepare personal access token and target workspace ID that can access the target workspace.
Request parameters¶
Replace $CLOUDSIGMA_API_KEY, $WORKSPACE_ID and filter criteria with actual values.
curl "$CLOUDSIGMA_API_BASE/workflow/v2/custom-operators?page_size=20&enabled=true" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
No |
Quantity per page. |
|
string |
No |
The next page marker returned in the previous page response. |
|
boolean |
No |
Filter by enabled status. |
|
string |
No |
Filter by implementation language. |
|
string |
No |
Filter by operator type. |
|
string |
No |
Filter by operator ID. |
|
string |
No |
Filter by operator ID. |
|
string |
No |
Filter by operator version. |
|
string |
No |
Filter by base operator ID. |
The page size defaults to 20, the valid range is 1–100, and must be positive int32. The language accepts python or custom_operator_language_python. Type accepts code, custom_operator_kind_code, builtin_binding, builtin-binding, or custom_operator_kind_builtin_binding. Filtering values removes leading and trailing whitespace and ignores case. Empty values are not filtered.
Next page tokens use the standard Base64 encoding and may end in =. Subsequent requests must pass the returned token unchanged, without removing padding characters or constructing it itself.
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"items": [
{
"id": 123,
"node_id": "moi:custom.operator:workspace:text_counter",
"name": "文本计数",
"identifier": "text_counter",
"version": "v1",
"enabled": true
}
],
"total": 21,
"next_page_token": "eyJvZmZzZXQiOjIwfQ=="
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
object |
response data. |
|
array of object |
Custom operator list. |
|
integer |
The total number of people matching the filter criteria. |
|
string |
Next page mark. Do not return if there is no next page. |
|
integer |
Customize operator ID for subsequent operations. |
|
string |
The operator ID in the workflow. |
|
string |
operator name. |
|
string |
operator identification. |
|
string |
operator description. Returned if there is a value. |
|
string |
processing function. Returned if there is a value. |
|
string |
operator version. Returned if there is a value. |
|
string |
Isolation configuration. Returned if there is a value. |
|
integer |
Implement numerical encoding of the language. Returned if there is a value. |
|
integer |
Numeric encoding of operator type. Returned if there is a value. |
|
boolean |
Whether the operator is enabled. |
|
string |
Source file ID. Returned when created using the source file. |
|
string |
Enter the defined serialization content. Returned if there is a value. |
|
string |
Outputs the serialized content of the definition. Returned if there is a value. |
|
string |
The serialized content of the binding configuration. Returned if there is a value. |
|
string |
The base operator associated with the built-in binding type. Returned if there is a value. |
|
string |
The base operator version associated with the built-in binding type. Returned if there is a value. |
|
integer |
The associated Catalog ID. Returned if there is a value. |
|
integer |
The associated database ID. Returned if there is a value. |
|
string |
Creator ID. Returned if there is a value. |
|
string |
Last updated by identifier. Returned if there is a value. |
|
integer |
Create timestamp. Returned if there is a value. |
|
integer |
Last updated timestamp. Returned if there is a value. |
Error response¶
{
"code": "ErrParamInvalid",
"msg": "请求参数无效"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
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. |