All Products
Search
Document Center

Edge Security Acceleration:ListUserRatePlanInstances

Last Updated:Apr 16, 2025

Queries the plans that you purchased and the details of the plans.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
esa:ListUserRatePlanInstanceslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
CheckRemainingSiteQuotastringNo

Specifies whether to query only the plans that have remaining quota for associating websites. Valid values:

  • true: queries only the plans that have remaining quota for associating websites.
  • false: queries all plans in your account.
true
StatusstringNo

The plan status. Valid values:

  • online: The plan is in service.
  • offline: The plan has expired within an allowable period. In this state, the plan is unavailable.
  • disable: The plan is released.
  • overdue: The plan is stopped due to overdue payments.
online
SortBystringNo

The sorting field. By default, the queried plans are sorted by purchase time. Valid values:

  • CreateTime: the time when the plans were purchased.
  • ExpireTime: the time when the plans expire.
CreateTime
SortOrderstringNo

The order in which you want to sort the query results. Default value: desc. Valid values:

  • asc: in ascending order.
  • desc: in descending order.
asc
PageNumberintegerNo

The page number. Valid values: 1 to 100000. Default value: 1.

1
PageSizeintegerNo

The number of entries per page.

500
InstanceIdstringNo

The plan ID, which can be obtained by calling the ListSites operation.

sp-xcdn-96wblslz****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

CB1A380B-09F0-41BB-3C82-72F8FD6DA2FE
InstanceInfoarray<object>

The queried plans.

Itemobject

The details of the plan.

InstanceIdstring

The plan ID.

sp-xcdn-96wblslz****
PlanNamestring

The plan name.

basic
PlanTypestring

The plan type. Valid values:

  • normal
  • enterprise
normal
SiteQuotastring

The maximum number of websites that can be associated with the plan.

1
ExpireTimestring

The time when the plan expires.

YYYY-MM-DDThh:mm:ssZ
Durationinteger

The subscription duration of the plan. Unit: month.

3
CreateTimestring

The time when the plan was purchased.

YYYY-MM-DDThh:mm:ssZ
Sitesarray<object>

The websites that have been associated with the plan.

Itemobject

The details of the associated website.

SiteIdlong

The website ID.

123456****
SiteNamestring

The website name.

example.com
SiteStatusstring

The website status. Valid values:

  • pending: The website is to be configured.
  • active: The website is active.
  • offline: The website is suspended.
  • moved: The website has been added and verified by another Alibaba Cloud account.
pending
Statusstring

The plan status. Valid values:

  • online: The plan is in service.
  • offline: The plan has expired within an allowable period. In this state, the plan is unavailable.
  • disable: The plan is released.
online
Coveragesstring

The service locations for the websites that can be associated with the plan. Multiple values are separated by commas (,). Valid values:

  • domestic: the Chinese mainland.
  • overseas: outside the Chinese mainland.
  • global: global.
domestic,overseas
BillingModestring

The billing method. Valid values:

  • PREPAY: subscription.
  • POSTPAY: pay-as-you-go.
PREPAY
PageNumberinteger

The page number.

1
PageSizeinteger

The number of entries per page.

10
TotalCountinteger

The total number of entries returned.

68
TotalPageinteger

The total number of pages returned.

1

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
400InvalidParameterThe specified parameter is invalid.The specified parameter is invalid.
400InternalExceptionFailed 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 timeSummary of changesOperation
2025-02-12The Error code has changed. The request parameters of the API has changed. The response structure of the API has changedView Change Details
2025-01-10The Error code has changed. The response structure of the API has changedView Change Details
2024-11-28The Error code has changed. The request parameters of the API has changedView Change Details
2024-11-12The Error code has changed. The response structure of the API has changedView Change Details