All Products
Search
Document Center

DataWorks:ListDags

Last Updated:Nov 21, 2024

Queries the details of directed acyclic graphs (DAGs) for a single data backfill instance based on OpSeq.

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: The DAG is created.
  • RUNNING: The DAG is running.
  • FAILURE: The DAG fails to run.
  • SUCCESS: The DAG is successfully run.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
OpSeqlongYes

The sequence number that uniquely identifies the data backfill operation. You can call the GetDag operation to query the sequence number.

123
ProjectEnvstringYes

The environment of the workspace. Valid values: PROD and DEV. The value PROD indicates the production environment, and the value DEV indicates the development environment.

PROD

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

HttpStatusCodeinteger

The HTTP status code.

200
RequestIdstring

The request ID. You can use the ID to locate logs and troubleshoot issues.

7782a299-b291-4fee-8424-cf8058efa8e8
ErrorMessagestring

The error message.

The connection does not exist.
ErrorCodestring

The error code.

Invalid.Tenant.ConnectionNotExists
Successboolean

Indicates whether the request was successful.

true
Dataobject

The details of DAGs.

Dagsarray<object>

The entities returned.

Dagobject
Typestring

The type of the DAG. Valid values:

  • 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
MANUAL_FLOW
Statusstring

The status of the DAG. Valid values:

  • CREATED
  • RUNNING
  • FAILURE
  • SUCCESS
FAILURE
FinishTimelong

The end time.

1605052800000
CreateTimelong

The creation time.

1605052800000
ProjectIdlong

The workspace ID.

112345
DagIdlong

The DAG ID.

351249682
Gmtdatelong

The actual running time.

1605052800000
StartTimelong

The start time.

1605052800000
CreateUserstring

The creator.

1736629400048545
Bizdatelong

The data timestamp.

1605052800000
Namestring

The name of the DAG.

test_dag
ModifyTimelong

The modification time.

1605052800000
OpSeqlong

The sequence number of the operation.

123

Examples

Sample success responses

JSONformat

{
  "HttpStatusCode": 200,
  "RequestId": "7782a299-b291-4fee-8424-cf8058efa8e8",
  "ErrorMessage": "The connection does not exist.",
  "ErrorCode": "Invalid.Tenant.ConnectionNotExists",
  "Success": true,
  "Data": {
    "Dags": [
      {
        "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 timeSummary of changesOperation
No change history