You need to enable JavaScript to run this app.
导航
DeleteCenBandwidthPackage
最近更新时间:2024.07.24 11:52:16首次发布时间:2022.04.28 07:28:31

调用 DeleteCenBandwidthPackage 接口,删除指定的带宽包。

使用说明

  • 调用该接口时,请确保带宽包下不包含已分配的域间带宽。
  • 未到期的带宽包实例不允许删除。

调试

请求参数

参数名称
类型
是否必选
示例值
描述
ActionStringDeleteCenBandwidthPackage要执行的操作,取值为DeleteCenBandwidthPackage。
VersionString2020-04-01API版本信息,当前版本为2020-04-01。

CenBandwidthPackageId

String

cbp-4c2zaavbvh5f42****

带宽包的ID。
您可以调用 DescribeCenBandwidthPackages 接口,查询带宽包ID。

返回参数

本接口无特有的返回参数。更多信息请见返回结构

请求示例

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

返回示例

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

错误码

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

HttpCode
错误码
错误信息
描述
400InvalidCenBandwidthPackage.InUseThe bandwidth package of the specified geographic regions is in use.指定的带宽包已绑定云企业网实例,无法删除。
400InvalidCenBandwidthPackage.InvalidStatusSpecified CEN bandwidth package is being operated now.指定的带宽包所处状态无法响应该请求,请稍后重试。
400UnsupportedOperation.PrepaidInstanceSpecified bandwidth package is a prepaid one and cannot be deleted.指定的带宽包是预付费实例,不支持删除。
400UnsupportedOperationThe specified request is denied because the type of bandwidth package is POC.指定的带宽包为测试带宽包,暂不支持此操作。
404InvalidCenBandwidthPackage.NotFoundThe bandwidth package of the specified geographic regions does not exist.指定的带宽包不存在。
409InvalidCen.InvalidStatusThe specified CEN instance is not in the correct status for the request.指定的云企业网实例所处的状态无法响应该请求,请稍后再试。