All Products
Search
Document Center

:ListInstance

Last Updated:Mar 01, 2024

Queries the information of instances.

Operation description

You can call this API operation to query the list of instances. The returned instances are ranked in descending order based on the values of GmtCreate. You can specify multiple request parameters. These request parameters can be used to filter query results. The request parameters that you specify have logical AND relations. Only the specified parameters can be used to filter query results.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /v2/openapi/instances

Request parameters

ParameterTypeRequiredDescriptionExample
pageintegerNo

GET /openapi/instances?name=test&instanceId=abc&page=1&size=10

1
sizeintegerNo
10
statusstringNo
Running
namestringNo

The number of the page to return. Default value: 1.

The number of entries to return on each page. Valid values: 1 to 50. Default value: 10.
expiredTimestringNo

The state of the instance. Valid values: Running, Ready, Initializing, and Starting.

1608533404
instanceIdstringNo

The name of the instance. Fuzzy match is supported.

Test instance

Response parameters

ParameterTypeDescriptionExample
object
resultobject []

The time when the instance expires. The value is a timestamp in seconds. Only instances whose expiration time is greater than the value of this parameter will be returned.

regionIdstring

The instance ID. Fuzzy match is supported.

cn-beijing
typestring

airec-cn-xxxxxx

Standard
lockModestring

The returned results.

Unlock
expiredTimestring

The ID of the region where the instance resides.

2019-01-06T16:00:00.000Z
statusstring

The type of the instance. Only the Standard edition is supported.

Running
gmtCreatestring

The lock mode of the instance. Valid values: Unlock, ManualLock, and LockByExpiration.

2018-12-06T06:14:01.000Z
chargeTypestring

The time when the instance expires. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.

PrePaid
industrystring

The state of the instance. Valid values: Initializing, Ready, and Running.

news
commodityCodestring

The time when the instance was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.

airecpre
gmtModifiedstring

The billing method. Valid values: PrePaid and PostPaid. Only the PrePaid billing method is supported.

2018-12-06T11:17:49.000Z
dataSetVersionstring

The type of the industry. Valid values: content, item, news, video, and sns.

20181206170353
namestring

The commodity code of the instance.

The time when the instance was last modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.
instanceIdstring

The version of the dataset that provides online services.

The name of the instance.
codestring

airec-cn-o400whm78004

InternalServerError
requestIdstring

The instance ID.

8F81A922-6C81-46D6-B78C-CC35E16B1691
messagestring

airec-cn-o400whm78004

An internal server error occurred

Examples

Sample success responses

JSONformat

{
  "result": [
    {
      "regionId": "cn-beijing",
      "type": "Standard",
      "lockMode": "Unlock",
      "expiredTime": "2019-01-06T16:00:00.000Z",
      "status": "Running",
      "gmtCreate": "2018-12-06T06:14:01.000Z",
      "chargeType": "PrePaid",
      "industry": "news",
      "commodityCode": "airecpre",
      "gmtModified": "2018-12-06T11:17:49.000Z",
      "dataSetVersion": "20181206170353",
      "name": "The time when the instance was last modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.\n",
      "instanceId": "The name of the instance.\n"
    }
  ],
  "code": "InternalServerError",
  "requestId": "8F81A922-6C81-46D6-B78C-CC35E16B1691",
  "message": "An internal server error occurred"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history