Queries the number of instances in each state.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetInstanceStatusStatistic

The operation that you want to perform. Set the value to GetInstanceStatusStatistic.

ProjectId Long Yes 1234

The ID of the DataWorks workspace. You can log on to the DataWorks console and go to the Workspace Management page to obtain the workspace ID.

ProjectEnv String Yes PROD

The environment type. Valid values: PROD and DEV. The value PROD indicates the production environment. The value DEV indicates the development environment.

RegionId String Yes cn-shanghai

The region ID. For example, the ID of the China (Shanghai) region is cn-shanghai, and that of the China (Zhangjiakou) region is cn-zhangjiakou. The system determines the value of this parameter based on the endpoint that is used to call the operation.

BizDate String Yes 2020-01-01

The date on which the numbers of instances in different states are obtained.

SchedulerType String No NORMAL

The type of the node. Valid values:

  • NORMAL: an auto triggered node
  • MANUAL: a manually triggered node
  • PAUSE: a paused node
  • SKIP: a dry-run node
DagType String No MANUAL

The type of the directed acyclic graph (DAG). Valid values:

  • MANUAL: the DAG for a manually triggered workflow
  • SMOKE_TEST: the DAG for a smoke testing workflow
  • SUPPLY_DATA: the DAG for a data backfill instance
  • BUSINESS_PROCESS_DAG: the DAG for a one-time workflow

Response parameters

Parameter Type Example Description
RequestId String 0000-ABCD-EFG****

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

StatusCount Object

The numbers of instances in different states.

FailureCount Integer 1

The number of instances that failed to run.

WaitTimeCount Integer 1

The number of instances that are waiting to run.

RunningCount Integer 1

The number of running instances.

SuccessCount Integer 1

The number of instances that are successfully run.

TotalCount Integer 1

The total number of instances.

NotRunCount Integer 1

The number of instances that are not run.

WaitResCount Integer 1

The number of instances that are waiting for resources.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "0000-ABCD-EFG****",
  "StatusCount" : {
    "FailureCount" : 1,
    "WaitTimeCount" : 1,
    "RunningCount" : 1,
    "SuccessCount" : 1,
    "TotalCount" : 1,
    "NotRunCount" : 1,
    "WaitResCount" : 1

Error codes

For a list of error codes, visit the API Error Center.