Modifies the configuration of a virtual border router (VBR).
Usage notes
- Only the owner of an Express Connect circuit can modify the VlanId parameter.
- One VLAN ID of an Express Connect circuit cannot be used by two VBRs at the same time.
- The VLAN ID of a VBR in the Terminated state is reserved for seven days and cannot be used by other VBRs. The VLAN ID can be used by other VBRs after 7 days.
- You cannot set LocalGatewayIp, PeerGatewayIp, or PeeringSubnetMask for VBRs that do not belong to your Alibaba Cloud account.
- Set PeeringSubnetMask to a subnet mask with 24 to 30 bits in length (255.255.255.0~255.255.255.252).
- Set LocalGatewayIp and PeerGatewayIp to IP addresses that belong to the same CIDR block. For example, you can set LocalGatewayIp to 192.168.XX.XX, PeerGatewayIp to 192.168.XX.XX, and PeeringSubnetMask to 255.255.255.248.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
RegionId | String | Yes | cn-shanghai | The region ID of the VBR. You can call the DescribeRegions operation to query the most recent region list. |
VbrId | String | Yes | vbr-bp1lhl0taikrte**** | The ID of the VBR. |
VlanId | Integer | No | 0 | The VLAN ID of the VBR. Valid values: 0 to 2999. Note Only the owner of the Express Connect circuit can set this parameter. The VLAN IDs of two VBRs of the same the Express Connect circuit must be different. |
CircuitCode | String | No | longtel001 | The circuit code of the Express Connect circuit. The circuit code is provided by the connectivity provider. Note Only the owner of the Express Connect circuit can set this parameter. |
LocalGatewayIp | String | No | 192.168.XX.XX | The IP address of the gateway device on the Alibaba Cloud side. Only the owner of the VBR can set or modify this parameter. |
PeerGatewayIp | String | No | 192.168.XX.X | The IP address of the gateway device on the user side. Only the owner of the VBR can set or modify this parameter. |
PeeringSubnetMask | String | No | 255.255.255.252 | The subnet mask for the IP addresses of the gateway devices on the Alibaba Cloud side and on the user side. Only the owner of the VBR can set or modify this parameter. The two IP addresses must fall within the same subnet. |
MinTxInterval | Long | No | 300 | The time interval to send BFD packets. Valid values: 200 to 1000. Unit: milliseconds. |
MinRxInterval | Long | No | 300 | The time interval to receive BFD packets. Valid values: 200 to 1000. Unit: milliseconds. |
DetectMultiplier | Long | No | 3 | The maximum number of dropped packets that is allowed by the receiver when the initiator transmits packets. This value can be used to check whether a connection works as expected. Valid values: 3 to 10. |
Description | String | No | desc | The description of the VBR. It must be 2 to 256 characters in length. It must start with a letter but cannot start with |
Name | String | No | VBR | The name of the VBR. The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. It cannot start with |
AssociatedPhysicalConnections | String | No | [ { "CircuitCode ": "longtel001", " LocalGatewayIp ": "192.168.XX.XX", "PeerGatewayIp" : "192.168.XX.XX", " PeeringSubnetMask ": "255.255.255.252", " PhysicalConnectionId ": "pc-kojok19****" } ] | The information about the Express Connect circuit associated with the VBR, including the following parameters:
|
Action | String | Yes | ModifyVirtualBorderRouterAttribute | The operation that you want to perform. Set the value to ModifyVirtualBorderRouterAttribute. |
ClientToken | String | No | 02fb3da4-130e-11e9-8e44-00**** | The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters. Note If you do not set this parameter, the system uses RequestId as ClientToken. RequestId may be different for each API request. |
LocalIpv6GatewayIp | String | No | 2001:XXXX:3c4d:0015:0000:0000:0000:1a2b | The IPv6 address of the gateway device on the Alibaba Cloud side. |
PeerIpv6GatewayIp | String | No | 2001:XXXX:3c4d:0015:0000:0000:0000:2a2b | The IPv6 address of the gateway device in the data center.
|
PeeringIpv6SubnetMask | String | No | 2408:4004:cc:400::/56 | The subnet mask of the IPv6 addresses of the VBR and the gateway device in the data center. The two IPv6 addresses must fall within the same subnet. |
EnableIpv6 | Boolean | No | false | Specifies whether to enable IPv6. Valid values:
|
Bandwidth | Integer | No | 100 | The bandwidth value. Unit: Mbit/s. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 980960B0-2969-40BF-8542-EBB34FD358AB | The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?RegionId=cn-shanghai
&VbrId=vbr-bp1lhl0taikrte****
&VlanId=0
&CircuitCode=longtel001
&LocalGatewayIp=192.168.XX.XX
&PeerGatewayIp=192.168.XX.X
&PeeringSubnetMask=255.255.255.252
&MinTxInterval=300
&MinRxInterval=300
&DetectMultiplier=3
&Description=desc
&Name=VBR
&AssociatedPhysicalConnections=[ { "CircuitCode ": "longtel001", " LocalGatewayIp ": "192.168.XX.XX", "PeerGatewayIp" : "192.168.XX.XX", " PeeringSubnetMask ": "255.255.255.252", " PhysicalConnectionId ": "pc-kojok19****" } ]
&Action=ModifyVirtualBorderRouterAttribute
&ClientToken=02fb3da4-130e-11e9-8e44-00****
&LocalIpv6GatewayIp=2001:XXXX:3c4d:0015:0000:0000:0000:1a2b
&PeerIpv6GatewayIp=2001:XXXX:3c4d:0015:0000:0000:0000:2a2b
&PeeringIpv6SubnetMask=2408:4004:cc:400::/56
&EnableIpv6=false
&Bandwidth=100
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyVirtualBorderRouterAttributeResponse>
<RequestId>980960B0-2969-40BF-8542-EBB34FD358AB</RequestId>
</ModifyVirtualBorderRouterAttributeResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "980960B0-2969-40BF-8542-EBB34FD358AB"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | IllegalParam.CidrBlock | The specified CidrBlock is illegal. | The error message returned because CidrBlock is set to an invalid value. |
400 | InvalidVbrId.NotFound | The specified VirutalBorderRouter is not found. | The error message returned because the specified VBR does not exist. Check whether the specified VBR is valid. |
400 | InvalidVlanId.Used | The specified VlanId has been used. | The error message returned because the specified VLAN ID is being used. |
400 | InvalidCircuitCode.Malformed | The specified CircuitCode is not valid. | The error message returned because CircuitCode is set to an invalid value. |
400 | InvalidVlanId.Malformed | The specified VlanId is not valid. | The error message returned because the VlanId parameter is set to an invalid value. |
400 | InvalidIp.Malformed | The specified ip address is not valid. | The error message returned because the specified private IP address is invalid. Check the private IP address. |
400 | InvalidPeeringSubnetMask.Malformed | The specified PeeringSubnetMask is not valid. | The error message returned because PeeringSubnetMask is set to an invalid value. Check whether PeeringSubnetMask is set to a valid value. |
400 | InvalidName.Malformed | The specified Name is not valid. | The error message returned because the Name parameter is set to an invalid value. |
400 | InvalidDescription.Malformed | The specifid Description is not valid. | The error message returned because the Description parameter is set to an invalid value. |
400 | MissingParameter | LocalGatewayIp, peerGatewayIp and peeringSubnetMask must not be null. | The error message returned because the following parameters are not set: LocalGatewayIp, peerGatewayIp, and peeringSubnetMask. |
400 | InvalidIp.NotSameSubnet | Local gateway ip and peer gateway ip are not in the same subnet. | The error message returned because the IP addresses of the local gateway and the peer gateway do not fall within the same subnet. |
400 | OperationFailed.VlanIdInUse | Operation failed because vlanId is in use. | The error message returned because the VLAN ID is already used. |
400 | OperationUnsupported.IPV6ForThisRegion | This Region do not support IPV6. | The error message returned because the region does not support IPv6. |
400 | OperationFailed.PconnTrafficNotEnable | The operation is failed because of PconnTrafficNotEnable. | The error message returned because outbound data transfer billing is disabled. |
400 | OperationDenied.VBRAssociateVPconn | The operation is not allowed because of VBRAssociateVPconn. | The error message returned because you cannot associate a VBR with the hosted connection. |
400 | OperationFailed.PhysicalConnectionFinancialLocked | Update failed, the physical connection is financial locked. | The error message returned because the shared port is locked due to overdue payments and you cannot modify the VLAN. |
400 | OperationFailed.PhysicalConnectionTerminated | Update failed, the physical connection is terminated. | The error message returned because the shared port is disabled and you cannot modify the VLAN. |
403 | Forbidden.CircuitCodeNotAllowedByCaller | The caller is not allowed to modify. | The error message returned because you are not allowed to modify CircuitCode. |
403 | Forbidden.CircuitCodeNotAllowedByCaller | The caller is not allowed to specify the CircuitCode parameter. | The error message returned because you are not allowed to set CircuitCode. |
403 | Forbidden.LocalGatewayIpNotAllowedByCaller | The caller is not allowed to specify the LocalGatewayIp parameter. | The error message returned because you are not allowed to set LocalGatewayIp. |
403 | Forbidden.PeerGatewayIpNotAllowedByCaller | The caller is not allowed to specify the PeerGatewayIp parameter. | The error message returned because you are not allowed to set PeerGatewayIp. |
403 | Forbidden.PeeringSubnetMaskNotAllowedByCaller | The caller is not allowed to specify the PeeringSubnetMask parameter. | The error message returned because you are not allowed to set PeeringSubnetMask. |
403 | Forbidden.VlanIdNotAllowedByCaller | The caller is not allowed to specify the VlanId. | The error message returned because you are not allowed to specify the VLAN ID. |
403 | Forbidden.NameNotAllowedByCaller | The caller is not allowed to specify the Name parameter. | The error message returned because you are not allowed to set Name. |
403 | Forbidden.DescriptionNotAllowedByCaller | The caller is not allowed to specify the Description parameter. | The error message returned because you are not allowed to set Description. |
404 | InvalidRegionId.NotFound | The specified RegionId is not found. | The error message returned because the specified region ID is invalid. Check whether the service is available in the specified region. |
For a list of error codes, see Service error codes.