Configures, modifies, or removes the maximum bandwidth for inter-region connections between two regions.
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.
Limits
The maximum bandwidth value of an inter-region connection cannot exceed that of the associated bandwidth plan.
The sum of the maximum bandwidth values of all inter-region connections cannot exceed the maximum bandwidth value of the associated bandwidth plan.
If bandwidth multiplexing is enabled for an inter-region connection, you cannot change the maximum bandwidth value of the inter-region connection.
You can call the SetCenInterRegionBandwidthLimit operation to configure, modify, and remove the maximum bandwidth values of inter-region connections only on Basic Edition transit routers.
For more information about how to configure, modify, and remove the maximum bandwidth values of inter-region connections on Enterprise Edition transit routers, see CreateTransitRouterPeerAttachment, UpdateTransitRouterPeerAttachmentAttribute, and DeleteTransitRouterPeerAttachment.
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Association operation |
---|---|---|---|---|
cen:SetCenInterRegionBandwidthLimit | WRITE |
|
| none |
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 |
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. |
For a list of error codes, visit the Service error codes.