Updated on 2025-10-29 GMT+08:00

Querying Workflow Version Details

Function

This API is used to query workflow version details.

Calling Method

For details, see Calling APIs.

URI

GET /v1/{project_id}/workspaces/{workspace_id}/soc/workflows/versions/{version_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

Project ID, which is used to specify the project that a resource belongs to. You can query the resources of a project by project ID. You can obtain the project ID from the API or console. Obtaining the Project ID

Constraints

N/A

Range

N/A

Default Value

N/A

workspace_id

Yes

String

Definition

Workspace ID.

Range

N/A

version_id

Yes

String

Definition

Workflow version ID.

Range

N/A

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Definition

User token. You can obtain it by calling the IAM API for obtaining a user token. The user token is the value of X-Subject-Token in the response header. Obtaining a User Token

Constraints

N/A

Range

N/A

Default Value

N/A

content-type

Yes

String

Definition

Content type.

  • application/json;charset=UTF-8: common API request type

Constraints

N/A

Range

  • application/json;charset=UTF-8

Default Value

N/A

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

code

String

Definition

Error code.

Range

N/A

message

String

Definition

Error description.

Range

N/A

success

Boolean

Definition

Whether the request is successful.

Range

  • true: successful

  • false: failed

request_id

String

Definition

Request ID.

Constraints

N/A

data

AopWorkflowVersionInfo object

Workflow version details.

Table 4 AopWorkflowVersionInfo

Parameter

Type

Description

id

String

Definition

Workflow version ID.

Constraints

N/A

version_id

String

Definition

Workflow version ID.

Constraints

N/A

name

String

Definition

Workflow version name.

Constraints

N/A

aopworkflow_id

String

Definition

Workflow ID.

Constraints

N/A

description

String

Definition

Workflow version description.

Range

N/A

project_id

String

Definition

Tenant project ID.

Constraints

N/A

owner_id

String

Definition

Owner ID.

Constraints

N/A

creator_id

String

Definition

Creator ID.

Range

N/A

creator_name

String

Definition

Name of the creator.

Range

N/A

create_time

String

Definition

Creation time.

Range

N/A

modifier_id

String

Definition

ID of the updater.

Range

N/A

modifier_name

String

Definition

Name of the updater.

Range

N/A

update_time

String

Definition

Update time.

Range

N/A

enabled

Boolean

Definition

Enabled or not.

Constraints

N/A

Range

  • true: enabled

  • false: disabled

Default Value

false

status

String

Definition

Workflow status.

  • pending_submit: draft

  • pending_approval: pending review

  • publishing: being published

  • publish_failed: publishing failed

  • not_activated: not activated

  • activated: activated

  • rejected: rejected

Range

  • pending_submit

  • pending_approval

  • publishing

  • publish_failed

  • not_activated

  • activated

  • rejected

version

String

Definition

Version of the current workflow.

Constraints

N/A

Range

N/A

Default Value

N/A

taskconfig

String

Definition

Parameters of the workflow topology.

Constraints

N/A

Range

N/A

Default Value

N/A

taskflow

String

Definition

Base64 code of the workflow topology.

Constraints

N/A

Range

N/A

Default Value

N/A

taskflow_type

String

Definition

Workflow type.

Constraints

N/A

Range

  • JSON

Default Value

N/A

aop_type

String

Definition

Workflow type.

  • NORMAL: general

  • SURVEY: investigation

  • HEMOSTASIS: prevention

  • EASE: mitigation

Constraints

N/A

Range

  • NORMAL

  • SURVEY

  • HEMOSTASIS

  • EASE

Default Value

N/A

input

String

Definition

Workflow input.

Constraints

N/A

Range

N/A

Default Value

N/A

output

String

Definition

Workflow output.

Constraints

N/A

Range

N/A

Default Value

N/A

dataclass_id

String

Definition

Data class ID.

Range

N/A

dataclass_name

String

Definition

Data class name.

Range

N/A

workspace_id

String

Definition

Workspace ID.

Range

N/A

Status code: 400

Table 5 Response body parameters

Parameter

Type

Description

code

String

Definition

Error code.

Range

N/A

message

String

Definition

Error description.

Range

N/A

Example Requests

Query workflow details.

https://{endpoint}/v1/{project_id}/workspaces/{workspace_id}/soc/workflows/c19470f3-5eaf-4572-82e8-2ff094495919

Example Responses

Status code: 200

Response to the request for querying workflow version details.

{
  "code" : "00000000",
  "data" : {
    "aop_type" : "NORMAL",
    "aopworkflow_id" : "c19470f3-5eaf-4572-82e8-2ff094495919",
    "create_time" : "2025-07-18T14:55:47.084Z+0800",
    "creator_id" : "5857617f6b8b4981baef587c08ab8b68",
    "creator_name" : "XXX",
    "dataclass_id" : "",
    "dataclass_name" : "",
    "description" : "Aop workflow description Test",
    "enabled" : null,
    "id" : "f0739f7d-bbc4-46ca-ba79-c29158e0ab8c",
    "input" : "",
    "modifier_id" : "",
    "modifier_name" : "",
    "name" : "Test_aop",
    "output" : "",
    "owner_id" : "",
    "project_id" : "f69081793d9e4ea8a2f479dcef961989",
    "status" : "pending_submit",
    "taskconfig" : "{\"trigger\":{\"advanced\":{\"retry_times\":0,\"retry_interval\":\"30\",\"log_level\":\"Info\"}},\"node_info\":{},\"usertask_info\":{}}",
    "taskflow" : "eyJlbGVtZW50VHlwZSI6Int9Iiwid29ya2Zsb3ciOnsiZWxlbWVudHMiOlt7InR5cGUiOiJlbGVtZW50IiwibmFtZSI6ImJwbW4yOmRlZmluaXRpb25zIiwiYXR0cmlidXRlcyI6eyJ4bWxuczp4c2kiOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIsInhtbG5zOmJwbW4yIjoiaHR0cDovL3d3dy5vbWcub3JnL3NwZWMvQlBNTi8yMDEwMDUyNC9NT0RFTCIsInhtbG5zOmJwbW5kaSI6Imh0dHA6Ly93d3cub21nLm9yZy9zcGVjL0JQTU4vMjAxMDA1MjQvREkiLCJ4bWxuczpkYyI6Imh0dHA6Ly93d3cub21nLm9yZy9zcGVjL0RELzIwMTAwNTI0L0RDIiwieG1sbnM6ZGkiOiJodHRwOi8vd3d3Lm9tZy5vcmcvc3BlYy9ERC8yMDEwMDUyNC9ESSIsInhtbG5zOnNvYXIiOiJodHRwczovL3NvYy5jbG91ZHNyZS5jb20vc29hci92MiIsImlkIjoiZGlhZ3JhbV9Qcm9jZXNzXzE3NTI4MjEwODY3OTgiLCJ0YXJnZXROYW1lc3BhY2UiOiJodHRwOi8vZmxvd2FibGUub3JnL2JwbW4iLCJ4c2k6c2NoZW1hTG9jYXRpb24iOiJodHRwOi8vd3d3Lm9tZy5vcmcvc3BlYy9CUE1OLzIwMTAwNTI0L01PREVMIEJQ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SI6ImRpOndheXBvaW50IiwiYXR0cmlidXRlcyI6eyJ4IjoiNDIiLCJ5IjoiLTgwIn19XX1dfV19XX1dfX0=",
    "taskflow_type" : "JSON",
    "update_time" : "2025-07-18T14:55:47.084Z+0800",
    "version" : "",
    "version_id" : "f0739f7d-bbc4-46ca-ba79-c29158e0ab8c",
    "workspace_id" : "f44065f5-557b-4376-ae02-8c65ef1960f4"
  },
  "message" : "",
  "request_id" : "",
  "success" : true
}

Status Codes

Status Code

Description

200

Response to the request for querying workflow version details.

400

Abnormal response.

Error Codes

See Error Codes.