最近更新时间:2024.04.22 17:44:45
首次发布时间:2022.01.07 11:44:37
调用 CreateCenInterRegionBandwidth 接口,为指定云企业网实例分配域间带宽。
加入到同一带宽包中的总域间带宽之和不得超过带宽包上限。
参数名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | CreateCenInterRegionBandwidth | 要执行的操作,取值为CreateCenInterRegionBandwidth。 |
Version | String | 是 | 2020-04-01 | API版本信息,当前版本为2020-04-01。 |
CenId | String | 是 | cen-7qthudw0ll6jmc**** | 云企业网实例的ID。您可以调用DescribeCens接口获取云企业网实例ID。 |
LocalRegionId | String | 是 | cn-beijing | CEN域间带宽本端地域的ID。云企业网支持的地域信息请参见区域与地域介绍。 |
PeerRegionId | String | 是 | cn-shanghai | CEN域间带宽对端地域的ID。云企业网支持的地域信息请参见区域与地域介绍。 |
Bandwidth | Integer | 是 | 1000 | CEN域间带宽的带宽峰值,单位为Mbps。取值不能超过所属带宽包可分配的带宽大小。 |
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 202111161611080102121461940900**** | 请求ID。 |
InterRegionBandwidthId | String | cirb-3tex2x1cwd4c6c0v**** | CEN域间带宽的ID。 |
GET /?Action=CreateCenInterRegionBandwidth&Version=2020-04-01&CenId=cen-7qthudw0ll6jmc****&LocalRegionId=cn-beijing&PeerRegionId=cn-shanghai&Bandwidth=1000 HTTP/1.1 Host: open.volcengineapi.com Service: cen Region: cn-beijing
{ "ResponseMetadata": { "RequestId": "20211222122528010225****", "Action": "CreateCenInterRegionBandwidth", "Version": "2020-04-01", "Service": "cen", "Region": "cn-beijing" }, "Result": { "InterRegionBandwidthId": "cirb-3tex2x1cwd4c6c0v****" } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidLocalRegionId.Conflict | The specified LocalRegionId and PeerRegionId are the same. | 指定的本端地域和对端地域相同。 |
400 | InvalidInterRegionBandwidth.BandwidthPackageNotFound | No bandwidth package exists between given regions. | 指定的互通地域之间未创建带宽包。 |
400 | InvalidInterRegionBandwidth.Conflict | The specified bandwidth between local region and peer region exists. | 指定的互通地域之间已经存在域间带宽。 |
400 | LimitExceeded.InterRegionBandwidth | The specified inter-region bandwidth exceeds the lower limit. | 指定的带宽大小超出域间带宽最小限制。 |
400 | LimitExceeded.InterRegionBandwidth | The specified inter-region bandwidth exceeds the range of bandwidth package. | 指定的域间带宽大小超出带宽包可分配的带宽。 |
400 | UnsupportedOperation | The request on the specified bandwidth package is denied because the bandwidth package is expired. | 指定带宽包已过期,不支持当前操作。 |
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. | 您的账号当前处于跨境封停状态,请等待运营商解封后再进行操作。 |
404 | InvalidCen.NotFound | The specified CEN does not exist. | 指定的CEN实例不存在。 |
404 | InvalidLocalRegionId.NotFound | The specified LocalRegionId does not exist. | 指定的本端地域不存在。 |
404 | InvalidPeerRegionId.NotFound | The specified PeerRegionId does not exist. | 指定的对端地域不存在。 |
409 | InvalidCen.InvalidStatus | The specified CEN instance is not in the correct status for the request. | 指定的CEN实例所处的状态无法响应该请求,请稍后再试。 |