PurchaseCacheReserve - 购买缓存保持实例

调用PurchaseCacheReserve购买缓存保持实例。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
QuotaGblong

缓存保持规格(单位:GB)。

512000
CrRegionstring

缓存保持区域

  • HK:中国香港
  • CN-beijing:中国大陆-北京
HK
AutoRenewboolean

是否自动续费:

  • true:自动续费。
  • false:不自动续费。
true
Periodinteger

购买周期(单位:月)。

3
ChargeTypestring

计费类型

  • PREPAY:预付费。
  • POSTPAY:后付费。
PREPAY
AutoPayboolean

是否自动支付。默认值为 false。

  • true:自动支付。
  • false:不自动支付。
true

返回参数

名称类型描述示例值
object

响应结构。

RequestIdstring

请求 ID。

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

订单 ID。

31223****11
InstanceIdstring

实例 ID。

xcdn-ad*****s11w

示例

正常返回示例

JSON格式

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

错误码

HTTP status code错误码错误信息描述
400CheckOrderFailedInvalid order parameter.订单参数不合法。
400InternalErrorAn internal exception occurred, 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.您配置的站点未备案或ICP备案信息不合法,请确保站点已完成备案后重试。
400InvalidSiteNameInvalid website name. Check and try again.您配置的站点名称不正确,请确保传入正确的站点名称后重试。
400SYSTEM.NoSpecificCodeFailedInvalid subscription duration. Check and try again.您配置的套餐购买周期不正确,请检查后重试。
400CheckPlanFailedInvalid plan name or code. Check and try again.您配置的套餐名或套餐Code不正确,请确保已传入正确的套餐名或套餐Code后重试。
400SubSiteUnavailableSubdomains are allowed only in Enterprise plans. Upgrade your plan to add a subdomain to ESA.仅企业版支持以子域名创建站点,请升级您的套餐。
400InsufficientAvailableQuotaYour account balance is insufficient.您的账号已欠费,请缴清欠费后再购买。
400InsufficientBalanceYour account balance is insufficient.您的账号余额不足,请充值后再购买。
400InvalidComponentThe order parameters is invalid.订单配置参数不符合校验条件。
400RamAuthFailedThe sub-account has no operation permission.子账号无操作权限.

访问错误中心查看更多错误码。