All Products
Search
Document Center

BSS OpenAPI:QueryAvailableInstances

Last Updated:Mar 01, 2024

Queries available instances.

Debugging

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

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
bssapi:QueryAvailableInstancesREAD
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionstringNo

The ID of the region in which the instance resides.

cn-hangzhou
PageNumintegerNo

The number of the page to return.

1
PageSizeintegerNo

The number of entries to return on each page.

20
ProductCodestringNo

The code of the service. You can query the service code by calling the QueryProductList operation or viewing Codes of Alibaba Cloud services.

Note This parameter cannot be left empty if the region is specified.
rds
ProductTypestringNo

The type of the service.

rds
SubscriptionTypestringNo

The billing method. Valid values:

  • Subscription: subscription
  • PayAsYouGo: pay-as-you-go
Subscription
InstanceIDsstringNo

The ID of the instance. Separate multiple IDs with commas (,). You can specify a maximum of 100 IDs.

rm-xxxxxxxxxxxx
EndTimeStartstringNo

The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Example: 2016-05-23T12:00:00Z.

2016-05-23T12:00:00Z
EndTimeEndstringNo

The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Example: 2016-05-23T12:00:00Z.

2016-05-23T12:00:00Z
CreateTimeStartstringNo

The start time when the specified instance is created. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

2016-05-23T12:00:00Z
CreateTimeEndstringNo

The end time when the specified instance is created. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

2016-05-23T12:00:00Z
RenewStatusstringNo

The renewal status of the specified instance. Valid values:

  • AutoRenewal: The instance is automatically renewed.
  • ManualRenewal: The instance is manually renewed.
  • NotRenewal: The instance is not renewed.
AutoRenewal

Response parameters

ParameterTypeDescriptionExample
object
Codestring

The status code returned.

Success
Messagestring

The message returned.

Successful!
RequestIdstring

The ID of the request.

C7C15585-8349-4C62-BEE4-5A391841B9BE
Successboolean

Indicates whether the request is successful.

true
Dataobject

The data returned.

PageNuminteger

The page number of the returned page.

1
PageSizeinteger

The number of entries returned per page.

10
TotalCountinteger

The total number of returned entries.

11
InstanceListobject []

The instances returned.

SubStatusstring

The sub-status of the specified instance.

Normal: The pay-as-you-go module can properly run. WaitForLimit: The pay-as-you-go module is about to be limited due to overdue payments. BandwidthLimited: The pay-as-you-go module is limited due to overdue payments.
Statusstring

The status of the instance.

Creating: The instance is being created. WaitForExpire: The instance is about to expire. Normal: The instance can properly run. Expired: The instance is expired.
ExpectedReleaseTimestring

The time when the specified instance was expected to be released.

2019-09-08T16:00:00Z
RenewStatusstring

The renewal status of the specified instance. Valid values:

  • AutoRenewal: The instance is automatically renewed.
  • ManualRenewal: The instance is manually renewed.
  • NotRenewal: The instance is not renewed.
ManualRenewal
CreateTimestring

The time when the specified instance was created.

2019-09-08T16:00:00Z
SellerIdlong

The ID of the seller.

123123123
InstanceIDstring

The ID of the instance.

1049056
Sellerstring

The seller.

123123123
StopTimestring

The time when the specified instance was suspended.

2019-09-08T16:00:00Z
RenewalDurationUnitstring

The unit of the auto-renewal cycle. Valid values:

  • M: month
  • Y: year
M
SubscriptionTypestring

The billing method. Valid values:

  • Subscription: subscription
  • PayAsYouGo: pay-as-you-go
Subscription
OwnerIdlong

The ID of the instance owner.

325352345
EndTimestring

The time when the instance was expired.

2019-09-08T16:00:00Z
ProductTypestring

The type of the service.

rds
Regionstring

The ID of the region in which the instance resides.

cn-hangzhou
ReleaseTimestring

The time when the instance was released.

2019-09-08T16:00:00Z
RenewalDurationinteger

The number of auto-renewal cycles.

1
ProductCodestring

The code of the service.

rds

Examples

Sample success responses

JSONformat

{
  "Code": "Success",
  "Message": "Successful!",
  "RequestId": "C7C15585-8349-4C62-BEE4-5A391841B9BE",
  "Success": true,
  "Data": {
    "PageNum": 1,
    "PageSize": 10,
    "TotalCount": 11,
    "InstanceList": [
      {
        "SubStatus": "Normal: The pay-as-you-go module can properly run. WaitForLimit: The pay-as-you-go module is about to be limited due to overdue payments. BandwidthLimited: The pay-as-you-go module is limited due to overdue payments.\n",
        "Status": "Creating: The instance is being created. WaitForExpire: The instance is about to expire. Normal: The instance can properly run. Expired: The instance is expired.\n",
        "ExpectedReleaseTime": "2019-09-08T16:00:00Z",
        "RenewStatus": "ManualRenewal",
        "CreateTime": "2019-09-08T16:00:00Z",
        "SellerId": 123123123,
        "InstanceID": "1049056",
        "Seller": "123123123",
        "StopTime": "2019-09-08T16:00:00Z",
        "RenewalDurationUnit": "M",
        "SubscriptionType": "Subscription",
        "OwnerId": 325352345,
        "EndTime": "2019-09-08T16:00:00Z",
        "ProductType": "rds",
        "Region": "cn-hangzhou",
        "ReleaseTime": "2019-09-08T16:00:00Z",
        "RenewalDuration": 1,
        "ProductCode": "rds"
      }
    ]
  }
}

Error codes

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