All Products
Search
Document Center

Tablestore:ListInstances

Last Updated:Nov 11, 2024

Queries instances.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /v2/openapi/listinstances HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
StatusstringNo

The instance status.

  • normal: The instance is running as expected.
  • forbidden: The instance is disabled.
  • Deleting: The instance is being deleted.
Enumeration Value:
  • normal: normal.
  • deleting: deleting.
  • forbidden: forbidden.
normal
MaxResultsintegerNo

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
NextTokenstringNo

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
InstanceNamestringNo

The name of the instance. Fuzzy search is supported.

instance
ResourceGroupIdstringNo

The resource group ID. You can query the ID on the Resource Group page in the Resource Management console.

rg-aek24upgom6p5ri
InstanceNameListarrayNo

The names of the instances. This parameter is used to specify multiple instances that you want to query at the same time.

stringNo

The name of the instance. Full and exact matching is supported.

instance-test

Response parameters

ParameterTypeDescriptionExample
object

The returned struct.

RequestIdstring

The request ID, which can be used to troubleshoot issues.

E734979F-5A44-5993-9CE5-C23103576923
TotalCountlong

The total number of instances returned.

2
NextTokenstring

The token that determines the start position of the next query. If this parameter is empty, all instances that you want to query are returned.

CAESCG15aC1xxxxx
Instancesarray<object>

The instances.

Instancesobject

The instance.

InstanceNamestring

The name of the instance, which is used to uniquely identify the instance.

instance-test
ResourceGroupIdstring

The ID of the resource group.

rg-acfmxh4em5jnbcd
RegionIdstring

The region ID.

cn-huhehaote
SPInstanceIdstring

The ID of the instance.

ots_standard_public_cn-g4t3igqjj002
AliasNamestring

The instance alias.

instance-test
UserIdstring

The user ID.

13542356466
InstanceDescriptionstring

The instance description.

Description of the test instance.
InstanceSpecificationstring

The type of the instance.

  • SSD: high-performance instance
  • HYBRID: capacity instance
HYBRID
PaymentTypestring

The billing method.

  • Subscription: subscription
  • PayAsYouGo: pay as you go
Subscription
StorageTypestring

The storage type.

  • SSD: high-performance
  • HYBRID: capacity
HYBRID
VCUQuotainteger

The VCU quota.

3
InstanceStatusstring

The instance status.

normal
CreateTimestring

The time when the instance was created.

2019-04-07T09:19:21Z

Examples

Sample success responses

JSONformat

{
  "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 timeSummary of changesOperation
2024-07-24The request parameters of the API has changedView Change Details