Call GetInstanceStatusCount get the instance different states the number of statistics.


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 Required GetInstanceStatusCount

The operation that you want to perform.

BizDate String Required 2020-01-01

The business date of the instance.

ProjectEnv String Required PROD

The running environment in PROD and DEV modes.

ProjectId Long Yes 1234

The ID of the DataWorks workspace.

RegionId String Required cn-shanghai

The unique identifier of the zone.

Response parameters

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

The request ID, which is used to locate the logs and troubleshoot problems.

StatusCount Struct

The status statistics of the instance.

FailureCount Integer 1

The number of failed instances.

NotRunCount Integer 1

The number of instances that are not running.

RunningCount Integer 1

The number of running instances.

SuccessCount Integer 1

The number of successful instances.

TotalCount Integer 1

The total number of instances.

WaitResCount Integer 1

The number of instances waiting for resources.

WaitTimeCount Integer 1

The number of instances to be run that meet the conditions.


Sample requests

http(s)://[Endpoint]/? Action=GetInstanceStatusCount
&<Common request parameters>

Sample success responses

XML format


JSON format

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

Error codes

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