View custom operator details

View the configuration of a custom operator. This allows you to confirm implementation, input and output definitions, and enablement status.

HTTP
GET $CLOUDSIGMA_API_BASE/workflow/v2/custom-operators/$OPERATOR_ID

Before you call this API

Configure the regional API endpoint and authentication, and select the target workspace.

First query custom operator list to confirm the operator you want to view.

Request

Shell
curl "$CLOUDSIGMA_API_BASE/workflow/v2/custom-operators/$OPERATOR_ID" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Request parameters

Successful response

The response returns operator configuration. Input, output, and binding configurations are returned as serialized content and can be used to configure workflows or test inputs as defined by the fields within them.

The response fields are as follows.

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "id": 123,
    "node_id": "moi:custom.operator:workspace:text_counter",
    "name": "文本计数",
    "identifier": "text_counter",
    "description": "统计输入文本的字符数。",
    "version": "v1",
    "input_schema": "{\"type\":\"object\"}",
    "output_schema": "{\"type\":\"object\"}",
    "enabled": true
  }
}
FieldTypeDescription
codestringOK on success.
msgstringOK on success.
data.idintegerCustom operator ID.
data.node_idstringOperator ID in the workflow.
data.namestringOperator name.
data.identifierstringOperator ID.
data.descriptionstringOperator description; returned if there is a value.
data.versionstringOperator version; returned if there is a value.
data.languageintegerImplements the numerical encoding of the language; returns if there is a value.
data.kindintegerNumeric encoding of the operator type; returned if there is a value.
data.handlerstringProcessing function; returns if there is a value.
data.isolation_levelstringIsolation configuration; returned if there is a value.
data.source_file_idstringSource file ID; returned when created using a source file.
data.input_schemastringEnter the defined serialization content.
data.output_schemastringOutput the defined serialized content.
data.binding_configstringThe serialized content of the binding configuration; returned if there is a value.
data.created_bystringCreator ID; returned if there is a value.
data.updated_bystringLast updater ID; returned if there is a value.
data.created_atintegerCreation timestamp; returned if there is a value.
data.updated_atintegerLast updated timestamp; returned if there is a value.
data.base_node_idstringThe basic operator associated with the built-in binding type; returned when there is a value.
data.base_node_versionstringThe basic operator version associated with the built-in binding type; returned when there is a value.
data.catalog_idintegerThe associated Catalog ID; returned if there is a value.
data.database_idintegerThe associated database ID; returned if there is a value.
data.enabledbooleanWhether the operator is enabled.

Error response

JSON
{
  "code": "ErrParamInvalid",
  "msg": "请求参数无效",
  "data": null
}
FieldTypeDescription
codestringError code.
msgstringReadable error message.
datanull`null` in an error response.

Follow-up operations

When modification is required, Update custom operator. When returning the list query custom operator list.

Last updated on