All Products
Search
Document Center

OnsInstanceInServiceList

Last Updated: Mar 28, 2019

OnsInstanceInServiceList

You can call this operation to query all instances in a region under the current account.

Request parameters

Name Type Required Description
PreventCache Long Yes The parameter used for CSRF verification, which can be set to the current system time. Unit: ms

Response parameters

Name Type Description
RequestId String A common parameter. Each request has a unique ID.
HelpUrl String A help link.
Data List(InstanceVO) The list of all published instances.

Fields in InstanceVO

Name Type Description
InstanceId String The ID of the instance.
InstanceName String The name of the instance.
InstanceType Integer The type of the instance. Valid values:
  • 1: Pay-As-You-Go instance
  • 2: Enterprise Platinum Edition instance
InstanceStatus Integer The status of the instance. Valid values:
  • 0: An Enterprise Platinum Edition instance is being deployed.
  • 2: The payment for a Pay-As-You-Go instance is overdue.
  • 5: A Pay-As-You-Go or Enterprise Platinum Edition instance is in service.
  • 7: An Enterprise Platinum Edition instance is being upgraded and is available.
ReleaseTime Long The automatic release time of an Enterprise Platinum Edition instance.

Examples

For more information about sample codes, see API sample code and endpoints.