Configures, modifies, or deletes the bandwidth of inter-region connections for a Basic Edition transit router.
Operation description
Prerequisites
The Cloud Enterprise Network (CEN) instance is associated with a bandwidth plan. For more information, see the CreateCenBandwidthPackage and AssociateCenBandwidthPackage topics.
You can call the SetCenInterRegionBandwidthLimit operation to configure, modify, or remove the maximum bandwidth value of an inter-region connection.
- If you set BandwidthLimit to a value other than 0, the maximum bandwidth value of the inter-region connection is set or changed to the specified value.
- If you set BandwidthLimit to 0, no bandwidth resource is allocated to the inter-region connection.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
CenId | string | Yes | The ID of the CEN instance. | cen-7qthudw0ll6jmx**** |
LocalRegionId | string | Yes | The ID of the local region. You can call the DescribeChildInstanceRegions operation to query regions where you can attach network instances to a CEN instance. | cn-hangzhou |
OppositeRegionId | string | Yes | The ID of the peer region. | us-west-1 |
BandwidthLimit | long | Yes | The maximum bandwidth value of the inter-region connection. Unit: Mbit/s. | 8 |
BandwidthType | string | No | The bandwidth allocation method. Valid values: BandwidthPackage: allocates bandwidth from a bandwidth plan. | BandwidthPackage |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "530BC816-F575-412A-AAB2-435125D26328"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | MissingParam.CbnBandwidthPackageId | There are more than one suitable cen bandwidth package | The error message returned because the CbnBandwidthPackageId parameter is not set. |
400 | AttrMismatching.CbnBandwidthPackageId | %s | - |
400 | OperationFailed.InvalidOperation | The operation is failed because the operation is not support. | - |
400 | OperationUnsupported.Attachment | The cross region connection contains an existing bandwidth. The operation is not supported. | The error message returned because bandwidth multiplexing is enabled for the inter-region connection. |
400 | InvalidOperation.UnsupportChargeType | The charge type is not supported by this operation. | The error message returned because the specified billing method does not support this operation. |
400 | OperationUnsupported.TrafficQosPolicyExist | Operation unsupported because traffic qos policy exists. | The error message returned because the specified QoS policy already exists. |
400 | OperationUnsupported.BandwidthType | The specified BandwidthType does not support the operation. | The error message returned because this operation is not supported by the specified bandwidth type. |
400 | IllegalParam.BandwidthType | BandwidthType is illegal. | The error message returned because the specified bandwidth plan type is invalid. |
400 | IllegalParam.Bandwidth | Bandwidth is illegal. | The error message returned because the specified bandwidth plan ID is invalid. |
400 | ParamExclusive.BandwidthTypeAndCenBandwidthPackageId | DataTransfer and CenBandwidthPackageId is mutually exclusive. | When the value of bandwidthType is DataTransfer, the CenBandwidthPackageId field cannot be set. |
400 | IdentityRegistrationStatusNotSupport | Real name registration of enterprises required. | Real name registration of enterprises required. |
400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-05-17 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-09-08 | The Error code has changed | View Change Details |