ListDags

Updated at:

Queries the details of all DAGs for a single data backfill based on OpSeq, the unique identifier of the data backfill.

Operation description

The DAG types:

  • MANUAL: Manual task workflow.

  • SMOKE_TEST: Smoke test workflow.

  • SUPPLY_DATA: Data backfill.

  • BUSINESS_PROCESS_DAG: One-time business process workflow.

The DAG statuses:

  • CREATED: Created.

  • RUNNING: Running.

  • FAILURE: Failed.

  • SUCCESS: Successful.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

OpSeq

integer

Yes

The OpSeq. You can obtain this value from the response of CreateDagComplement. Before creating a data backfill task, you typically need to complete the business process, create files, and submit them. You can also obtain the DagId by calling RunCycleDagNodes, RunSmokeTest, or RunManualDagNodes, and then call GetDag to obtain the OpSeq.

123

ProjectEnv

string

Yes

The identity of the scheduling and O&M environment. PROD indicates the production environment, and DEV indicates the development environment.

Valid values:

  • PROD :

    The production environment.

  • DEV :

    The development environment.

PROD

Response elements

Element

Type

Description

Example

object

The response structure.

HttpStatusCode

integer

The HTTP status code.

200

RequestId

string

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

7782a299-b291-4fee-8424-cf8058efa8e8

ErrorMessage

string

The error message.

The connection does not exist.

ErrorCode

string

The error code.

Invalid.Tenant.ConnectionNotExists

Success

boolean

Indicates whether the call was successful.

true

Data

object

The details of the DAGs.

Dags

array<object>

The returned DAG entities.

object

The returned DAG entity.

Type

string

The type of the DAG. Valid values:

  • MANUAL: manual task workflow.

  • SMOKE_TEST: smoke test workflow.

  • SUPPLY_DATA: data backfill.

  • BUSINESS_PROCESS_DAG: one-time business process workflow.

MANUAL_FLOW

Status

string

The status of the DAG. Valid values:

  • CREATED: created.

  • RUNNING: running.

  • FAILURE: failed.

  • SUCCESS: successful.

FAILURE

FinishTime

integer

The end time. The value is a 13-digit timestamp, such as 1605052800000.

1605052800000

CreateTime

integer

The creation time. The value is a 13-digit timestamp, such as 1605052800000.

1605052800000

ProjectId

integer

The workspace ID.

112345

DagId

integer

The DAG ID.

351249682

Gmtdate

integer

The GMT date. The value is a 13-digit timestamp, such as 1605052800000.

1605052800000

StartTime

integer

The start time. The value is a 13-digit timestamp, such as 1605052800000.

1605052800000

CreateUser

string

The creator.

1736629400048545

Bizdate

integer

The business date. The value is a 13-digit timestamp, such as 1605052800000.

1605052800000

Name

string

The name of the DAG.

test_dag

ModifyTime

integer

The update time. The value is a 13-digit timestamp, such as 1605052800000.

1605052800000

OpSeq

integer

The identifier of the operation.

123

Examples

Success response

JSON format

{
  "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

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.