Queries a list of orders.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ListOrders |
list |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. Note
Call the DescribeRegions operation to view the details of regions. |
cn-hangzhou |
| ProductCode |
string |
No |
The product code. |
polardb |
| Category |
string |
No |
The edition of the cluster. Valid values:
Note
|
Normal |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-************ |
| InstanceId |
string |
No |
The ID of the current instance. |
pc-2zed3m89cw*** |
| OrderStatus |
string |
No |
The status of the order.
|
success |
| PageSize |
integer |
No |
The number of entries to return on each page. Valid values:
Default value: 30. |
30 |
| PageNumber |
integer |
No |
The page number. |
1 |
| MaxResults |
integer |
No |
The maximum number of entries to return for the current request. Default value: 10. |
10 |
| NextToken |
string |
No |
A pagination token. If the query results are not returned in a single call, this token is returned. Use this token in a subsequent call to retrieve the remaining results. |
212db86sca4384811e0b5e8707e****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| MaxResults |
integer |
The maximum number of entries returned for the current request. Default value: 10. |
10 |
| NextToken |
string |
A pagination token. If the query results are not returned in a single call, this token is returned. Use this token in a subsequent call to retrieve the remaining results. |
212db86sca4384811e0b5e8707e****** |
| OrderList |
array<object> |
The list of orders. |
|
|
object |
The information about the order instance. |
||
| AliUid |
string |
The ID of the Alibaba Cloud account. |
1910740440664**** |
| ChargeType |
string |
The billing method of the instance. Valid values:
|
Prepaid |
| CommodityCode |
string |
The commodity code. Valid values:
Note
|
polardb_payg_intl |
| CreatedTime |
string |
The time when the order was created. |
2021-03-31T16:09:13 |
| InstanceId |
string |
The cluster ID. |
pc-uf6k532gav******* |
| OrderId |
string |
The order ID. |
25808743077***** |
| OrderStatus |
string |
The status of the order.
|
success |
| OrderType |
string |
The type of the order. Valid values:
|
BUY |
| ProduceCode |
string |
The product code. |
polardb |
| Region |
string |
The region information |
cn-hangzhou |
| PageNumber |
integer |
The page number of the returned page. Default value: 1. |
1 |
| PageSize |
integer |
The number of entries returned per page. Valid values:
Default value: 30. |
30 |
| RequestId |
string |
The request ID. |
3AA69096-757C-4647-B36C-29EBC2****** |
| TotalCount |
integer |
The total number of entries. |
7 |
Examples
Success response
JSON format
{
"MaxResults": 10,
"NextToken": "212db86sca4384811e0b5e8707e******",
"OrderList": [
{
"AliUid": "1910740440664****",
"ChargeType": "Prepaid",
"CommodityCode": "polardb_payg_intl",
"CreatedTime": "2021-03-31T16:09:13",
"InstanceId": "pc-uf6k532gav*******",
"OrderId": "25808743077*****",
"OrderStatus": "success",
"OrderType": "BUY",
"ProduceCode": "polardb",
"Region": "cn-hangzhou"
}
],
"PageNumber": 1,
"PageSize": 30,
"RequestId": "3AA69096-757C-4647-B36C-29EBC2******",
"TotalCount": 7
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | OperationDenied.Product | The product code is not supported. | This operation is not supported for the product. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.