Advertises a BGP network.


By using API Explorer, you can easily debug APIs, automatically generate SDK code examples, and quickly search for APIs.

Request parameters

Parameter Type Required? Example value Description
Action String Yes AddBgpNetwork

The name of this action. Value:


DstCidrBlock String Yes

The CIDR block of the VPC or VSwitch to be connected to the on-premises data center.

RegionId String Yes cn-shanghai

The region to which the VBR group belongs.

To query the region ID, call DescribeRegions.

RouterId String Yes vrt-2zeo3xzyf38r4urzdpvfs

The ID of the VBR.

ClientToken String No 02fb3da4-130e-11e9-8e44-0016e04115b

The client token that guarantees the idempotence of the request.

This parameter value is generated by the client and must be unique. It mus be 1 to 64 ASCII characters in length.

VpcId String No vpc-bp1qpo0kug3a20qqe9h7v

The ID of the VPC.

Response parameters

Parameter Type Example value Description
RequestId String 9C7FA9D6-72E0-48A9-A9C3-2DA8569CD5EB The ID of the request.


Request example
Response example
  • XML format

  • JSON format


Error codes

HTTP status code Error code Error message Description
400 QuotaExceeded.Bgp bgp peer count per vbr quota exceed. The BGP group quota of the VBR has been reached.
400 QuotaExceeded.Nqa nqa count per vbr quota exceed. The NQA quota of the VBR has been reached.
400 QuotaExceeded.BgpNetwork bgp network count per vbr quota exceed. The BGP network quota of the VBR has been reached.
400 InvalidPeerIpAddress multi pconn peer ip can not be null. The peer IP address of multiple physical connections cannot be null.
400 InvalidVbrNetwork vbr netowrk not exists The specified VBR does not exist.
400 InvalidBgpName.Malformed Specified Bgp Group name is not valid. The name of the BGP group is invalid.
400 InvalidBgpDiscription.Malformed Specified Bgp Group description is not valid. The description of the BGP group is invalid.
400 InvalidBgpAuthkey.Malformed Specified Bgp Group authkey is not valid. The authentication key of the BGP group is invalid.
400 InvalidIP.Malformed Ip malformed. The IP address format is invalid.
400 InvalidPeerAsn.Malformed invalid peer asn cannot equals aliyun asn:45104 The specified ASN cannot be the same as the Alibaba Cloud ASN.
400 InvalidParams.NotNull parameter must not null. This parameter cannot be null.
400 InvalidParams.NotFound vpc instance not found The specified VPC does not exist.
400 InvalidParams.AlreadyExists bgp network already exists The specified BGP network already exists.
400 InvalidStatus.CannotOperate invalid status cannot operate The status of the resource does not permit this operation.
404 InvalidRegionId.NotFound The specified RegionId does not exist in our records. The specified region ID does not exist.

See common error codes