Queries 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
You can call the DescribeRegions operation to query region information. |
cn-hangzhou |
| ProductCode |
string |
No |
The product code. |
polardb |
| Category |
string |
No |
The product edition. Valid values:
Note
|
Normal |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-************ |
| InstanceId |
string |
No |
The instance ID. |
pc-2zed3m89cw*** |
| OrderStatus |
string |
No |
The order status. Valid values:
|
success |
| PageSize |
integer |
No |
The number of entries per page. Valid values:
Default value: 30. |
30 |
| PageNumber |
integer |
No |
The page number. |
1 |
| MaxResults |
integer |
No |
The maximum number of entries to return. Default value: 10. |
10 |
| NextToken |
string |
No |
The pagination token that is used to retrieve more results. If a single request does not return all results, this parameter is returned. You can pass the returned token in a subsequent request to continue retrieving results. |
212db86sca4384811e0b5e8707e****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| MaxResults |
integer |
The maximum number of entries to return. Default value: 10. |
10 |
| NextToken |
string |
The pagination token that is used to retrieve more results. If a single request does not return all results, this parameter is returned. You can pass the returned token in a subsequent request to continue retrieving results. |
212db86sca4384811e0b5e8707e****** |
| OrderList |
array<object> |
The order list. |
|
|
object |
The order instance information. |
||
| AliUid |
string |
The Alibaba Cloud account ID. |
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 creation time. The time is in the YYYY-MM-DDTHH:mm:ss format. |
2021-03-31T16:09:13 |
| InstanceId |
string |
The cluster ID of the instance. |
pc-uf6k532gav******* |
| OrderId |
string |
The order ID. |
25808743077***** |
| OrderStatus |
string |
The order status. Valid values:
|
success |
| OrderType |
string |
The order type. Valid values:
|
BUY |
| ProduceCode |
string |
The product code. |
polardb |
| Region |
string |
The region information. |
cn-hangzhou |
| PageNumber |
integer |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
The number of entries 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.