Queries the plans that you purchased and the details of the plans.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
esa:ListUserRatePlanInstances | list | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
CheckRemainingSiteQuota | string | No | Specifies whether to query only the plans that have remaining quota for associating websites. Valid values:
| true |
Status | string | No | The plan status. Valid values:
| online |
SortBy | string | No | The sorting field. By default, the queried plans are sorted by purchase time. Valid values:
| CreateTime |
SortOrder | string | No | The order in which you want to sort the query results. Default value: desc. Valid values:
| asc |
PageNumber | integer | No | The page number. Valid values: 1 to 100000. Default value: 1. | 1 |
PageSize | integer | No | The number of entries per page. | 500 |
InstanceId | string | No | The plan ID, which can be obtained by calling the ListSites operation. | sp-xcdn-96wblslz**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "CB1A380B-09F0-41BB-3C82-72F8FD6DA2FE",
"InstanceInfo": [
{
"InstanceId": "sp-xcdn-96wblslz****",
"PlanName": "basic",
"PlanType": "normal",
"SiteQuota": "1",
"ExpireTime": "YYYY-MM-DDThh:mm:ssZ ",
"Duration": 3,
"CreateTime": "YYYY-MM-DDThh:mm:ssZ ",
"Sites": [
{
"SiteId": 0,
"SiteName": "example.com",
"SiteStatus": "pending"
}
],
"Status": "online",
"Coverages": "domestic,overseas",
"BillingMode": "PREPAY",
"PlanTraffic": "",
"Layer4Traffic": "",
"Layer4TrafficIntl": "",
"CrossborderTraffic": "",
"EdgeRoutineRquest": "",
"StaticRequest": "",
"SmartRoutingRequest": "",
"EdgeWafRequest": "",
"DdosInstanceLevel": "",
"DdosBurstableDomesticProtection": "",
"DdosBurstableOverseasProtection": "",
"BotInstanceLevel": ""
}
],
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 68,
"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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2025-02-12 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
2025-01-10 | The Error code has changed. The response structure of the API has changed | View Change Details |
2024-11-28 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2024-11-12 | The Error code has changed. The response structure of the API has changed | View Change Details |