调用 RenewCenBandwidthPackage 接口,为包年包月类型的带宽包续费。
参数名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | RenewCenBandwidthPackage | 要执行的操作,取值为RenewCenBandwidthPackage。 |
Version | String | 是 | 2020-04-01 | API版本信息,当前版本为2020-04-01。 |
CenBandwidthPackageId | String | 是 | cbp-bp1o94dp5**** | 带宽包的ID。 |
PeriodUnit | String | 否 | Month | 带宽包实例的计费周期。取值如下:
|
Period | Integer | 否 | 1 | 带宽包实例的购买时长,默认值为1。取值如下:
|
本接口无特有的返回参数。更多信息请见返回结构。
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 | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | FailedOperation | Failed to obtain CEN bandwidth package billing information. | 获取带宽包计费信息失败。 |
400 | InvalidBandwidthPackage.OrderConflict | The specified Bandwidth package has unpaid order. | 指定的带宽包存在未支付的订单,请先完成上个订单的支付或等待24h超时。 |
400 | InvalidCenBandwidthPackage.BillingTypeMalformed | The specified BillingType is invalid. | 指定的计费类型无效。 |
400 | InvalidCenBandwidthPackage.InvalidStatus | Specified CEN bandwidth package is being operated now. | 指定的带宽包所处状态无法响应该请求,请稍后重试。 |
400 | InvalidCenBandwidthPackage.OperationMalformed | The specified renew operation is invalid. You can renew within 30 days of expired time. | 指定的操作无效。需在距离到期时间30天以内续期。 |
400 | InvalidCenBandwidthPackage.PeriodMalformed | The specified Period is invalid. | 指定的购买时长无效。 |
400 | InvalidCenBandwidthPackage.PeriodUnitMalformed | The specified PeriodUnit is invalid. | 指定的计费周期无效。 |
400 | InvalidCenCrossBorderBandwidthPackage.FrozenStatus | The specified request is denied because your account has been frozen for cross-border. Please wait for the Service Provider to unfreeze it. | 您的账号当前处于跨境封停状态,请等待运营商解封后再进行操作。 |
400 | InvalidWhiteList.AccountNotFound | Specific account does not exist in white list. | 指定的账号在白名单中不存在。 |
400 | OrderError | Failed to create an order. | 下单失败。 |
400 | UnsupportedOperation | The request on the specified instance is denied due to the account in arrears status. | 因账户处于欠费状态,对于该实例的操作请求被拒绝。 |
400 | UnsupportedOperation | The payment failed due to the account balance is not enough for this order. | 账户余额不足,订单支付失败。 |
404 | InvalidCenBandwidthPackage.NotFound | The bandwidth package of the specified geographic regions does not exist. | 指定的带宽包不存在。 |