All Products
Search
Document Center

Edge Security Acceleration:PurchaseCacheReserve

Last Updated:Apr 16, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

New Purchase of Cache Retention

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:PurchaseCacheReservecreate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
QuotaGblongNo

Cache retention specification (unit: GB).

512000
CrRegionstringNo

Cache retention region

  • HK: Hong Kong, China
  • CN-beijing: Mainland China - Beijing
HK
AutoRenewbooleanNo

Whether to auto-renew:

  • true: Auto-renew.
  • false: Do not auto-renew.
true
PeriodintegerNo

Purchase period (unit: month).

3
ChargeTypestringNo

Billing type

  • PREPAY: Prepaid.
  • POSTPAY: Postpaid.
PREPAY
AutoPaybooleanNo

Whether to automatically pay. The default value is false.

  • true: Automatically pay.
  • false: Do not automatically pay.
true

Response parameters

ParameterTypeDescriptionExample
object

Response structure.

RequestIdstring

Request ID.

30423A7F-A83D-1E24-B80E-86DD25790758
OrderIdstring

Order ID.

31223****11
InstanceIdstring

Instance ID.

xcdn-ad*****s11w

Examples

Sample success responses

JSONformat

{
  "RequestId": "30423A7F-A83D-1E24-B80E-86DD25790758",
  "OrderId": "31223****11",
  "InstanceId": "xcdn-ad*****s11w\n"
}

Error codes

HTTP status codeError codeError messageDescription
400CheckOrderFailedInvalid order parameter.Invalid order parameter.
400InternalErrorAn internal exception occurred, please try again later.An inner exception was triggered. Please try again later.
400InvalidSiteICPThe specified website does not have an ICP filing or the filing information is invalid. Make sure your website is filed and try again.The specified website does not have an ICP filing or the filing information is invalid. Make sure your website is filed and try again.
400InvalidSiteNameInvalid website name. Check and try again.Invalid website name. Check and try again.
400SYSTEM.NoSpecificCodeFailedInvalid subscription duration. Check and try again.Invalid subscription duration. Check and try again.
400CheckPlanFailedInvalid plan name or code. Check and try again.Invalid plan name or code. Check and try again.
400SubSiteUnavailableSubdomains are allowed only in Enterprise plans. Upgrade your plan to add a subdomain to ESA.Subdomains are allowed only in Enterprise plans. Upgrade your plan to add a subdomain to ESA.
400InsufficientAvailableQuotaYour account balance is insufficient.Your account is in arrears, please pay the arrears before purchasing.
400InsufficientBalanceYour account balance is insufficient.Your account balance is insufficient, please recharge before purchasing.
400InvalidComponentThe order parameters is invalid.The order parameters is invalid.
400RamAuthFailedThe sub-account has no operation permission.-

For a list of error codes, visit the Service error codes.