Queries instances.
Debugging
Authorization information
Request syntax
GET /v2/openapi/listinstances HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Status | string | No | The instance status.
Enumeration Value:
| normal |
MaxResults | integer | No | The maximum number of instances that you want to return. Valid values: 0 to 200. If you do not configure this parameter or set this parameter to 0, the default value of 100 is used. | 100 |
NextToken | string | No | The token that determines the start position of the query. Set this parameter to the value of the NextToken parameter that is returned from the last call. Instances are returned in lexicographical order starting from the position that is specified by this parameter. The first time you call the operation, leave this parameter empty. | CAESCG15aC1xxxxx |
InstanceName | string | No | The name of the instance. Fuzzy search is supported. | instance |
ResourceGroupId | string | No | The resource group ID. You can query the ID on the Resource Group page in the Resource Management console. | rg-aek24upgom6p5ri |
InstanceNameList | array | No | The names of the instances. This parameter is used to specify multiple instances that you want to query at the same time. | |
string | No | The name of the instance. Full and exact matching is supported. | instance-test |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "E734979F-5A44-5993-9CE5-C23103576923",
"TotalCount": 2,
"NextToken": "CAESCG15aC1xxxxx",
"Instances": [
{
"InstanceName": "instance-test",
"ResourceGroupId": "rg-acfmxh4em5jnbcd",
"RegionId": "cn-huhehaote",
"SPInstanceId": "ots_standard_public_cn-g4t3igqjj002",
"AliasName": "instance-test",
"UserId": "13542356466",
"InstanceDescription": "Description of the test instance.",
"InstanceSpecification": "HYBRID",
"PaymentType": "Subscription",
"StorageType": "HYBRID",
"VCUQuota": 3,
"InstanceStatus": "normal",
"CreateTime": "2019-04-07T09:19:21Z"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-07-24 | The request parameters of the API has changed | View Change Details |