All Products
Search
Document Center

Expenses and Costs:QueryAvailableInstances

Last Updated:Oct 29, 2025

Queries available instances.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

bss:DescribeInstances

get

*All Resource

*

None

None

Request parameters

Parameter

Type

Required

Description

Example

Region

string

No

The region.

cn-hangzhou

PageNum

integer

No

The page number.

1

PageSize

integer

No

The number of entries per page. The default value is 20. The maximum value is 300.

20

ProductCode

string

No

The product code. You can call the QueryProductList operation to query the product code.

Note

Required when you specify the Region parameter.

rds

ProductType

string

No

The product type.

rds

SubscriptionType

string

No

The subscription type.

  • Subscription: subscription

  • PayAsYouGo: pay-as-you-go

Subscription

InstanceIDs

string

No

The instance ID. You can specify up to 100 instance IDs. Separate multiple IDs with commas (,).

rm-xxxxxxxxxxxx

EndTimeStart

string

No

The beginning of the end time range. The time must be in UTC and in the ISO 8601 format. For example, 2016-05-23T12:00:00Z.

2016-05-23T12:00:00Z

EndTimeEnd

string

No

The end of the end time range. The time must be in UTC and in the ISO 8601 format. For example, 2016-05-23T12:00:00Z.

2016-05-23T12:00:00Z

CreateTimeStart

string

No

The beginning of the creation time range. The time must be in UTC and in the ISO 8601 format.

2016-05-23T12:00:00Z

CreateTimeEnd

string

No

The end of the creation time range. The time must be in UTC and in the ISO 8601 format.

2016-05-23T12:00:00Z

RenewStatus

string

No

The renewal status. Valid values:

  • AutoRenewal: auto-renewal

  • ManualRenewal: manual renewal

  • NotRenewal: no renewal

AutoRenewal

Response elements

Parameter

Type

Description

Example

object

Code

string

The status code.

Success

Message

string

The error message.

Successful!

RequestId

string

The request ID.

C7C15585-8349-4C62-BEE4-5A391841B9BE

Success

boolean

Indicates whether the request was successful.

true

Data

object

The returned data.

PageNum

integer

The page number.

1

PageSize

integer

The number of entries per page.

10

TotalCount

integer

The total number of records.

11

InstanceList

array<object>

The list of instance information.

object

SubStatus

string

The sub-status.

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.

Status

string

The 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.

ExpectedReleaseTime

string

The expected release time.

2019-09-08T16:00:00Z

RenewStatus

string

The renewal status. Valid values:

  • AutoRenewal: auto-renewal

  • ManualRenewal: manual renewal

  • NotRenewal: no renewal

ManualRenewal

CreateTime

string

The creation time.

2019-09-08T16:00:00Z

SellerId

integer

The seller ID.

123123123

InstanceID

string

The instance ID.

1049056

Seller

string

The seller.

123123123

StopTime

string

The stop time.

2019-09-08T16:00:00Z

RenewalDurationUnit

string

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

  • M: Month

  • Y: Year

M

SubscriptionType

string

The subscription type. Valid values:

  • Subscription: subscription

  • PayAsYouGo: pay-as-you-go

Subscription

OwnerId

integer

The owner ID.

325352345

EndTime

string

The end time.

2019-09-08T16:00:00Z

ProductType

string

The product type.

rds

Region

string

The region.

cn-hangzhou

ReleaseTime

string

The release time.

2019-09-08T16:00:00Z

RenewalDuration

integer

The auto-renewal duration.

1

ProductCode

string

The product code.

rds

Examples

Success response

JSON format

{
  "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

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.