Querying the Workflow Version List
Function
This API is used to query the workflow version list.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/workspaces/{workspace_id}/soc/workflows/{workflow_id}/versions
|
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 |
|
workflow_id |
Yes |
String |
Definition Workflow ID. Range N/A |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
status |
No |
String |
Definition Workflow status.
Range
|
Request 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.
Constraints N/A Range
Default Value N/A |
Response Parameters
Status code: 200
|
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
|
|
request_id |
String |
Definition Request ID. Constraints N/A |
|
total |
Integer |
Definition Total data records. Constraints N/A |
|
offset |
Integer |
Definition Current page size. Constraints N/A |
|
limit |
Integer |
Definition Current page number. Constraints N/A |
|
size |
Integer |
Definition Current page size. Constraints N/A |
|
page |
Integer |
Definition Number of pages in a pagination query. Constraints N/A |
|
data |
Array of AopWorkflowVersionInfo objects |
List object of workflow version details. |
|
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
Default Value false |
|
status |
String |
Definition Workflow status.
Range
|
|
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
Default Value N/A |
|
aop_type |
String |
Definition Workflow type.
Constraints N/A Range
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
|
Parameter |
Type |
Description |
|---|---|---|
|
code |
String |
Definition Error code. Range N/A |
|
message |
String |
Definition Error description. Range N/A |
Example Requests
Query the workflow version list.
https://{endpoint}/v1/{project_id}/workspaces/{workspace_id}/soc/workflows/c19470f3-5eaf-4572-82e8-2ff094495919/versions
Example Responses
Status code: 200
Response to the request for querying the workflow version list.
{
"code" : "00000000",
"data" : [ {
"aop_type" : "NORMAL",
"aopworkflow_id" : "c19470f3-5eaf-4572-82e8-2ff094495919",
"create_time" : "2025-07-18T14:47:17.000Z+0800",
"creator_id" : "5857617f6b8b4981baef587c08ab8b68",
"creator_name" : "XXXX",
"dataclass_id" : "e410ae50-43fa-343e-807a-a2a9edb8018e",
"dataclass_name" : "Alert",
"description" : "Aop workflow description Test",
"enabled" : null,
"id" : "1a7677d4-0638-4cde-a2af-fe1460a883d4",
"input" : "",
"modifier_id" : "5857617f6b8b4981baef587c08ab8b68",
"modifier_name" : "XXX",
"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" : "eyJlbGVtZW50VHlwZSI6Int9Iiwid29ya2Zsb3ciOnsiZWxlbWVudHMiOlt7InR5cGUiOiJlbGVtZW50IiwibmFtZSI6ImJwbW4yOmRlZmluaXRpb25zIiwiYXR0cmlidXRlcyI6eyJ4bWxuczp4c2kiOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIsInhtbG5zOmJwbW4yIjoiaHR0cDovL3d3dy5vbWcub3JnL3NwZWMvQlBNTi8yMDEwMDUyNC9NT0RFTCIsInhtbG5zOmJwbW5kaSI6Imh0dHA6Ly93d3cub21nLm9yZy9zcGVjL0JQTU4vMjAxMDA1MjQvREkiLCJ4bWxuczpkYyI6Imh0dHA6Ly93d3cub21nLm9yZy9zcGVjL0RELzIwMTAwNTI0L0RDIiwieG1sbnM6ZGkiOiJodHRwOi8vd3d3Lm9tZy5vcmcvc3BlYy9ERC8yMDEwMDUyNC9ESSIsInhtbG5zOnNvYXIiOiJodHRwczovL3NvYy5jbG91ZHNyZS5jb20vc29hci92MiIsImlkIjoiZGlhZ3JhbV9Qcm9jZXNzXzE3NTI4MjEwODY3OTgiLCJ0YXJnZXROYW1lc3BhY2UiOiJodHRwOi8vZmxvd2FibGUub3JnL2JwbW4iLCJ4c2k6c2NoZW1hTG9jYXRpb24iOiJodHRwOi8vd3d3Lm9tZy5vcmcvc3BlYy9CUE1OLzIwMTAwNTI0L01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IiwibmFtZSI6ImRpOndheXBvaW50IiwiYXR0cmlidXRlcyI6eyJ4IjoiNDIiLCJ5IjoiLTgwIn19XX1dfV19XX1dfX0=",
"taskflow_type" : "JSON",
"update_time" : "2025-07-18T14:53:03.000Z+0800",
"version" : "",
"version_id" : "1a7677d4-0638-4cde-a2af-fe1460a883d4",
"workspace_id" : "f44065f5-557b-4376-ae02-8c65ef1960f4"
} ],
"message" : "",
"page" : 0,
"request_id" : "",
"size" : 10,
"success" : true,
"total" : 1
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Response to the request for querying the workflow version list. |
|
400 |
Abnormal response. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot