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

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. Prepare personal access token and target workspace ID that can access the target workspace.

Path parameters

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

Field

Type

Required

Description

operator_id

integer

Required

The custom operator ID to view.

Successful response

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
  }
}

Field

Type

Description

code

string

success code.

msg

string

Response information.

data

object

The data returned by this operation.

data.id

integer

Custom operator ID.

data.node_id

string

The operator ID in the workflow.

data.name

string

operator name.

data.identifier

string

operator identification.

data.description

string

operator description.

data.language

integer

Implement numerical encoding of the language.

data.handler

string

processing function.

data.version

string

operator version.

data.isolation_level

string

Isolation configuration.

data.source_file_id

string

Source file ID. Returned when created using the source file.

data.input_schema

string

Enter the defined serialization content.

data.output_schema

string

Outputs the serialized content of the definition.

data.enabled

boolean

Whether the operator is enabled.

data.created_by

string

Creator ID.

data.updated_by

string

Last updated by identifier.

data.created_at

integer

Create timestamp.

data.updated_at

integer

Last updated timestamp.

data.kind

integer

Numeric encoding of operator type.

data.base_node_id

string

The base operator associated with the built-in binding type.

data.base_node_version

string

The base operator version associated with the built-in binding type.

data.binding_config

string

The serialized content of the binding configuration.

data.catalog_id

integer

The associated Catalog ID.

data.database_id

integer

The associated database ID.

Error response

JSON
{
  "code": "ErrParamInvalid",
  "msg": "请求参数无效"
}

Field

Type

Required

Description

code

string

No

error code.

msg

string

No

Readable error message.

Common HTTP errors

HTTP status

Error code

Common cause

Recommended action

400

ErrParamInvalid, ErrWorkspaceRequired

Invalid request field, workspace, or operation precondition.

Fix the request parameters and submit again.

403

ErrForbidden

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

ErrNotFound

The target object or required reference was not found.

Verify the object identifier, workspace, and current status.

500

ErrServer

Internal processing failed; write operations may have been partially applied.

Retain request and trace details, and verify the current state before retrying.

503

ErrServiceUnavailable

A business, runtime, or authorization dependency is temporarily unavailable.

After the dependency recovers, check existing results first instead of blindly repeating writes.

Last updated on