Queries the information about a directed acyclic graph (DAG). You can call the GetDag operation to query the information about the DAG for a manually triggered workflow, a manually triggered node, or a data backfill instance. However, you cannot query the information about the DAG for an auto triggered node or an auto triggered workflow.
Operation description
Supported DAG types:
- MANUAL: DAG for a manually triggered workflow
- SMOKE_TEST: DAG for a smoke testing workflow
- SUPPLY_DATA: DAG for a data backfill instance
- BUSINESS_PROCESS_DAG: DAG for a one-time workflow
Supported DAG states:
- CREATED
- RUNNING
- FAILURE
- SUCCESS
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
dataworks:* | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DagId | long | Yes | The ID of the DAG. You can use one of the following method to obtain the ID:
| 123141452344525 |
ProjectEnv | string | Yes | The environment of the workspace. Valid values: PROD and DEV. | PROD |
Response parameters
Examples
Sample success responses
JSON
format
{
"HttpStatusCode": 200,
"RequestId": "7782a299-b291-4fee-8424-cf8058efa8e8",
"ErrorMessage": "The connection does not exist.",
"ErrorCode": "Invalid.Tenant.ConnectionNotExists",
"Success": true,
"Data": {
"Type": "MANUAL_FLOW",
"Status": "FAILURE",
"FinishTime": 1605052800000,
"CreateTime": 1605052800000,
"ProjectId": 112345,
"DagId": 351249682,
"Gmtdate": 1605052800000,
"StartTime": 1605052800000,
"CreateUser": "1736629400048545",
"Bizdate": 1605052800000,
"Name": "test_dag",
"ModifyTime": 1605052800000,
"OpSeq": 123
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|