Queries available instances.
Try it now
Test
RAM authorization
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 |
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 |
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:
| 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 |
SubscriptionType | string | The subscription type. Valid values:
| 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.