调用 AssociateCenBandwidthPackage 接口,将带宽包实例绑定至云企业网实例。
参数名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | AssociateCenBandwidthPackage | 要执行的操作,取值为AssociateCenBandwidthPackage。 |
Version | String | 是 | 2020-04-01 | API版本信息,当前版本为2020-04-01。 |
CenBandwidthPackageId | String | 是 | cbp-4c2zaavbvh5fx**** | 带宽包的ID。 |
CenId | String | 是 | cen-7qthudw0ll6jmc**** | 云企业网实例ID。 |
本接口无特有的返回参数。更多信息请见返回结构。
GET /?Action=AssociateCenBandwidthPackage&Version=2020-04-01&CenBandwidthPackageId=cbp-4c2zaavbvh5fx****&CenId=cen-7qthudw0ll6jmc**** HTTP/1.1 Host: open.volcengineapi.com Service: cen Region: cn-beijing
{ "ResponseMetadata": { "RequestId": "2021081115253901022514606****", "Action": "AssociateCenBandwidthPackage", "Version": "2020-04-01", "Service": "cen", "Region": "cn-beijing" }, "Result": {} }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidCenBandwidthPackage.InUse | Specified bandwidth package has been associated with a CEN. | 指定的带宽包已经关联到其他云企业网实例。 |
400 | InvalidCenBandwidthPackage.InvalidStatus | Specified CEN bandwidth package is being operated now. | 指定的带宽包所处状态无法响应该请求,请稍后重试。 |
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 | UnsupportedOperation | The request on the specified bandwidth package is denied because the bandwidth package is expired. | 指定带宽包已过期,不支持当前操作。 |
400 | UnsupportedOperation | The request on the specified bandwidth package is denied because the bandwidth package is shut down due to arrears. | 指定带宽包欠费关停,不支持当前操作。 |
404 | InvalidCen.NotFound | The specified CEN does not exist. | 指定的云企业网实例不存在。 |
404 | InvalidCenBandwidthPackage.NotFound | The bandwidth package of the specified geographic regions does not exist. | 指定的带宽包不存在。 |
409 | InvalidCen.InvalidStatus | The specified CEN instance is not in the correct status for the request. | 指定的云企业网实例所处的状态无法响应该请求,请稍后再试。 |
409 | InvalidCenBandwidthPackage.RegionSetConflict | Specified geographic region set of the bandwidth package conflicts with that of another bandwidth package. | 该云企业网已经存在指定地理区域间的带宽包。 |