View workflow operator list

View the operators available for the workflow in the current workspace. After selecting an operator, you can continue to view its available versions, input and output definitions.

HTTP
GET $CLOUDSIGMA_API_BASE/workflow/v2/workitems/catalog

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 and $WORKSPACE_ID with actual values.

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

This interface has no business parameters.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "items": [
      {
        "node_id": "moi:data.sql.process",
        "display_name": "SQL 处理",
        "category": "data_processing",
        "preferred_version": "v1",
        "stream": false
      }
    ],
    "total": 1
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data

object

response data.

data.items

array of object

List of available operators.

data.total

integer

The total number of operators returned.

data.items[].node_id

string

operator ID, which can be used to view details or publish API services.

data.items[].display_name

string

operator display name.

data.items[].short_description

string

A short description of the operator. Returned if there is a value.

data.items[].category

string

The category to which the operator belongs. Returned if there is a value.

data.items[].tags

array of string

operator tag. Returned if there is a value.

data.items[].source

string

operator source. Returned if there is a value.

data.items[].provider

string

operator provider. Returned if there is a value.

data.items[].preferred_version

string

Recommended version. Returned if there is a value.

data.items[].visibility

string

Visibility. Returned if there is a value.

data.items[].stream

boolean

Whether it is a streaming operator.

Error response

JSON
{
  "code": "ErrForbidden",
  "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