You need to enable JavaScript to run this app.
导航

RenewCenBandwidthPackage

最近更新时间2024.04.22 17:44:24

首次发布时间2024.01.09 07:27:01

调用 RenewCenBandwidthPackage 接口,为包年包月类型的带宽包续费。

调试

请求参数

参数名称
类型
是否必选
示例值
描述
ActionStringRenewCenBandwidthPackage要执行的操作,取值为RenewCenBandwidthPackage。
VersionString2020-04-01API版本信息,当前版本为2020-04-01。
CenBandwidthPackageIdStringcbp-bp1o94dp5****带宽包的ID。您可以调用DescribeCenBandwidthPackages接口获取带宽包ID。

PeriodUnit

String

Month

带宽包实例的计费周期。取值如下:

  • Month(默认值):按月计费。
  • Year:按年计费。

Period

Integer

1

带宽包实例的购买时长,默认值为1。取值如下:

  • PeriodUnit取值为“Month”时,取值为1~9,12,24和36。
  • PeriodUnit取值为“Year”时,取值为1~3。

返回参数

参数名称
类型
示例值
描述
RequestIdString2021081115253901022514606****请求ID。

请求示例

GET /?Action=RenewCenBandwidthPackage&Version=2020-04-01&CenBandwidthPackageId=cbp-bp1o94dp5**** HTTP/1.1
Host: open.volcengineapi.com
Service: cen
Region: cn-beijing

返回示例

{
    "ResponseMetadata": {
        "RequestId": "2021081115253901022514606****",
        "Action": "RenewCenBandwidthPackage",
        "Version": "2020-04-01",
        "Service": "cen",
        "Region": "cn-beijing"
    },
    "Result": {}
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

HttpCode错误码错误信息描述
400FailedOperationFailed to obtain CEN bandwidth package billing information.获取带宽包计费信息失败。
400InvalidCenBandwidthPackage.InvalidStatusSpecified CEN bandwidth package is being operated now.指定的带宽包所处状态无法响应该请求,请稍后重试。
400InvalidCenBandwidthPackage.PeriodMalformedThe specified Period is invalid.指定的购买时长无效。
400InvalidCenBandwidthPackage.PeriodUnitMalformedThe specified PeriodUnit is invalid.指定的计费周期无效。
400OrderErrorFailed to create an order.下单失败。
400UnsupportedOperationThe payment failed due to the account balance is not enough for this order.账户余额不足,订单支付失败。
400UnsupportedOperationThe request on the specified instance is denied due to the account in arrears status.因账户处于欠费状态,对于该实例的操作请求被拒绝。
400InvalidBandwidthPackage.OrderConflictThe specified Bandwidth package has unpaid order.指定的带宽包存在未支付的订单,请先完成上个订单的支付或等待24h超时。
400InvalidCenCrossBorderBandwidthPackage.FrozenStatusThe specified request is denied because your account has been frozen for cross-border. Please wait for the Service Provider to unfreeze it.您的账号当前处于跨境封停状态,请等待运营商解封后再进行操作。
400InvalidCenBandwidthPackage.OperationMalformedThe specified renew operation is invalid. You can renew within 30 days of expired time.指定的操作无效。需在距离到期时间30天以内续期。
404InvalidCenBandwidthPackage.NotFoundThe bandwidth package of the specified geographic regions does not exist.指定的带宽包不存在。