View workflow operator details

View the available versions, input and output definitions of a workflow operator.

HTTP
GET $CLOUDSIGMA_API_BASE/workflow/v2/workitems/catalog/{node_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 workflow operator list, select the operator and obtain the operator ID. Prepare personal access token and target workspace ID that can access the target workspace.

Request parameters

Replace $CLOUDSIGMA_API_KEY, $WORKSPACE_ID and $NODE_ID with actual values.

Shell
curl "$CLOUDSIGMA_API_BASE/workflow/v2/workitems/catalog/$NODE_ID" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Parameter

Type

Required

Description

node_id

string

Yes

The operator ID to view, located in the request path.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "node_id": "moi:data.sql.process",
    "display_name": "SQL 处理",
    "versions": [
      {
        "version": "v1",
        "input_schema": "{\"type\":\"object\"}",
        "stream": false,
        "input": {},
        "output": {},
        "agent_context": {}
      }
    ]
  }
}

Field

Type

Description

code

string

success code.

msg

string

Response information.

data

object

The data returned by this operation.

data.node_id

string

operator ID.

data.display_name

string

operator display name.

data.short_description

string

A short description of the operator.

data.category

string

The category to which the operator belongs.

data.tags

array of string

operator tag.

data.source

string

operator source.

data.provider

string

operator provider.

data.preferred_version

string

Recommended version.

data.visibility

string

operator visibility.

data.versions

array of object

Available version definitions, ordered from newest to oldest.

data.versions[].version

string

The current resource version.

data.versions[].description

string

Description of the current object.

data.versions[].visibility

string

Visible range.

data.versions[].stream

boolean

Streaming information.

data.versions[].stream_config

JSON value

Streaming configuration.

data.versions[].source

string

Structured source positioning.

data.versions[].provider

string

Run the provider.

data.versions[].input_schema

string

Enter the defined JSON text.

data.versions[].output_schema

string

Outputs the JSON text of the definition.

data.versions[].data_flow

JSON value

Data flow configuration.

data.versions[].input_ui_schema

JSON value

Enter the interface definition.

data.versions[].output_ui_schema

JSON value

Output interface definition.

data.versions[].input

object

Enter.

data.versions[].input.json_type

string

JSON type.

data.versions[].input.description

string

Description of the current object.

data.versions[].input.additional_properties

boolean

Additional attribute definitions.

data.versions[].input.required_fields

array of string

List of required fields.

data.versions[].input.fields

array of object

Field definition.

data.versions[].input.fields[].name

string

The name of the current object.

data.versions[].input.fields[].json_type

string

JSON type.

data.versions[].input.fields[].format

string

format.

data.versions[].input.fields[].description

string

Description of the current object.

data.versions[].input.fields[].required

boolean

Is it required?

data.versions[].input.fields[].example

JSON value

Example value.

data.versions[].input.fields[].default

JSON value

Default value.

data.versions[].input.fields[].enum_values

array

enumeration value.

data.versions[].input.fields[].additional_properties

boolean

Additional attribute definitions.

data.versions[].input.fields[].fields

array of object

Field definition.

data.versions[].input.fields[].item

JSON value

Array element definition.

data.versions[].input.fields[].hint

object

Field hints.

data.versions[].input.fields[].hint.acquire_mode

string

How to get the value.

data.versions[].input.fields[].hint.runtime_source

string

Runtime value source.

data.versions[].input.fields[].hint.template_scope

string

Template scope.

data.versions[].input.fields[].hint.semantic_type

string

Semantic type.

data.versions[].input.fields[].hint.resolver

string

Value parser.

data.versions[].input.fields[].hint.resource_type

string

Resource type.

data.versions[].input.fields[].hint.suggested_sdk_call

string

Recommended SDK calls.

data.versions[].input.fields[].hint.suggested_param

string

Recommended parameters.

data.versions[].input.fields[].hint.sensitive

boolean

Whether it contains sensitive values.

data.versions[].input.example

JSON value

Example value.

data.versions[].input.examples

array

Example list.

data.versions[].output

object

output.

data.versions[].output.json_type

string

JSON type.

data.versions[].output.description

string

Description of the current object.

data.versions[].output.additional_properties

boolean

Additional attribute definitions.

data.versions[].output.required_fields

array of string

List of required fields.

data.versions[].output.fields

array of object

Field definition.

data.versions[].output.fields[].name

string

The name of the current object.

data.versions[].output.fields[].json_type

string

JSON type.

data.versions[].output.fields[].format

string

format.

data.versions[].output.fields[].description

string

Description of the current object.

data.versions[].output.fields[].required

boolean

Is it required?

data.versions[].output.fields[].example

JSON value

Example value.

data.versions[].output.fields[].default

JSON value

Default value.

data.versions[].output.fields[].enum_values

array

enumeration value.

data.versions[].output.fields[].additional_properties

boolean

Additional attribute definitions.

data.versions[].output.fields[].fields

array of object

Field definition.

data.versions[].output.fields[].item

JSON value

Array element definition.

data.versions[].output.fields[].hint

object

Field hints.

data.versions[].output.fields[].hint.acquire_mode

string

How to get the value.

data.versions[].output.fields[].hint.runtime_source

string

Runtime value source.

data.versions[].output.fields[].hint.template_scope

string

Template scope.

data.versions[].output.fields[].hint.semantic_type

string

Semantic type.

data.versions[].output.fields[].hint.resolver

string

Value parser.

data.versions[].output.fields[].hint.resource_type

string

Resource type.

data.versions[].output.fields[].hint.suggested_sdk_call

string

Recommended SDK calls.

data.versions[].output.fields[].hint.suggested_param

string

Recommended parameters.

data.versions[].output.fields[].hint.sensitive

boolean

Whether it contains sensitive values.

data.versions[].output.example

JSON value

Example value.

data.versions[].output.examples

array

Example list.

data.versions[].agent_context

object

agent context.

data.versions[].agent_context.provider

string

Run the provider.

data.versions[].agent_context.display_name

string

Display name.

data.versions[].agent_context.category

string

classification.

data.versions[].agent_context.display_group

string

Show grouping.

data.versions[].agent_context.tags

array of string

label.

data.versions[].agent_context.summary

string

Summary.

data.versions[].agent_context.side_effect_class

string

Side Effect Category.

data.versions[].agent_context.idempotence

string

Idempotent description.

data.versions[].agent_context.required_fields

array of string

List of required fields.

data.versions[].user_id

string

User ID.

Error response

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

Field

Type

Description

code

string

error code.

msg

string

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