Gets the DAG for a previous workflow version.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The unique identifier for the cluster. |
xxljob-b6ec1xxxx |
| AppName |
string |
Yes |
The name of the application. |
test-app |
| WorkflowId |
integer |
No |
The unique identifier for the workflow. |
20 |
| DagVersion |
string |
Yes |
The version of the workflow DAG. |
v1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The unique identifier for the request. |
B8733786-C045-59F1-8D79-99A52863F62D |
| Code |
integer |
The response code. |
200 |
| Message |
string |
The error message. |
Parameter error: content is null. |
| Success |
boolean |
Indicates whether the request was successful.
|
true |
| Data |
object |
The returned data. |
|
| Nodes |
array<object> |
The workflow nodes. |
|
|
array<object> |
A job node. |
||
| Id |
integer |
The job ID. |
3 |
| Name |
string |
The job name. |
job1 |
| AppName |
string |
The application name. |
settle-job |
| Status |
integer |
The job status. Valid values:
|
1 |
| JobType |
string |
The job type. |
script_shell |
| Coordinate |
object |
The node coordinates. |
|
| X |
number |
The x-coordinate. |
50 |
| Y |
number |
The y-coordinate. |
50 |
| Width |
number |
The node width. This parameter is optional. |
100 |
| Height |
number |
The node height. This parameter is optional. |
20 |
| DependentStrategy |
integer |
The dependency strategy. |
all_success |
| Edges |
array<object> |
The workflow edges. |
|
|
object |
A workflow edge. |
||
| Source |
integer |
The ID of the source node. |
3 |
| Target |
integer |
The ID of the target node. |
4 |
Examples
Success response
JSON format
{
"RequestId": "B8733786-C045-59F1-8D79-99A52863F62D",
"Code": 200,
"Message": "Parameter error: content is null.",
"Success": true,
"Data": {
"Nodes": [
{
"Id": 3,
"Name": "job1",
"AppName": "settle-job",
"Status": 1,
"JobType": "script_shell",
"Coordinate": {
"X": 50,
"Y": 50,
"Width": 100,
"Height": 20
},
"DependentStrategy": 0
}
],
"Edges": [
{
"Source": 3,
"Target": 4
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | Parameter error: %s. | Parameter error: %s |
| 401 | IllegalRequest | IllegalRequest: %s. | Illegal request:%s |
| 500 | InternalError | InternalError: %s. | System Internal Error: %s |
| 403 | NoPermission | No permission to perform this operation: %s. | No permission to perform this operation: %s |
| 404 | NotFound | Not found: %s. | The resource does not exist: %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.