Queries the list of pay-as-you-go site plans available for purchase by a user.
Operation description
By specifying the AliUid of a user and the service region (China site or international site), the API returns all pay-as-you-go site plans applicable to the user, including plan names, billing methods, and pricing information.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The query details. |
||
| RequestId |
string |
The request ID. |
8CD541DB-CD83-5D0C-BE94-21B794074249 |
| PlanInfo |
array<object> |
The pay-as-you-go plan details. |
|
|
object |
The detailed plan information. |
||
| PlanName |
string |
The name of the plan, which serves as a unique identifier in English. |
basic |
| PlanType |
string |
The plan type of the plan instance. Valid values:
|
normal |
| SiteQuota |
string |
The site quantity quota. |
1 |
| PlanNameCn |
string |
The plan description. |
测试版套餐 |
| BillingMethod |
string |
The billable methods of the plan. Valid values:
|
dps_month95 |
| Coverages |
string |
The acceleration regions to which sites can be added under the plan. Multiple values are separated by commas (,). Valid values:
|
domestic |
| BillingMode |
string |
The payment type. Valid values:
|
PREPAY |
| SaleStatus |
string |
The sale status of the plan. Valid values for enterprise edition plans:
|
saled |
| PageNumber |
integer |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
The page size. Default value: 20. Maximum value: 500. Valid values: any integer from 1 to 500. |
20 |
| TotalCount |
integer |
The total number of entries. |
16 |
| TotalPage |
integer |
The total number of pages. |
1 |
Examples
Success response
JSON format
{
"RequestId": "8CD541DB-CD83-5D0C-BE94-21B794074249",
"PlanInfo": [
{
"PlanName": "basic",
"PlanType": "normal",
"SiteQuota": "1",
"PlanNameCn": "测试版套餐",
"BillingMethod": "dps_month95",
"Coverages": "domestic",
"BillingMode": "PREPAY",
"SaleStatus": "saled"
}
],
"PageNumber": 1,
"PageSize": 20,
"TotalCount": 16,
"TotalPage": 1
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.