GetInstanceStatusCount

Updated at:

Retrieves the count of instances in different statuses.

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

ProjectId

integer

Yes

The ID of the workspace.

1234

ProjectEnv

string

Yes

The runtime environment. Valid values: PROD and DEV.

Valid values:

  • PROD :

    The production environment.

  • DEV :

    The development environment.

PROD

BizDate

string

Yes

The business date of the instance. Format: yyyy-MM-dd. Example: 2020-01-01.

2020-01-01

Response elements

Element

Type

Description

Example

object

The response structure.

RequestId

string

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

0000-ABCD-EFG****

StatusCount

object

The status statistics of instances.

FailureCount

integer

The number of failed instances.

1

WaitTimeCount

integer

The number of instances that meet the conditions and are waiting to run.

1

RunningCount

integer

The number of running instances.

1

SuccessCount

integer

The number of successful instances.

1

TotalCount

integer

The total number of instances.

1

NotRunCount

integer

The number of instances that have not run.

1

WaitResCount

integer

The number of instances waiting for resources.

1

Examples

Success response

JSON format

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

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.