Adds a BGP peer to a BGP group.
Debug
Use OpenAPI Explorer to perform debug operations and generate SDK code examples.
Request parameters
Parameter | Type | Required? | Example value | Description |
---|---|---|---|---|
Action | String | Yes | CreateBgpPeer |
The name of this action. Value: CreateBgpPeer |
BgpGroupId | String | Yes | bgpg-wz9f62v4fbgxxxxxxxx |
The ID of the BGP group to which you want to add a BGP peer. |
RegionId | String | Yes | cn-shanghai |
The region ID of the BGP group. To query the region ID, call DescribeRegions. |
ClientToken | String | No | 02fb3da4-130e-11e9-8e44-001xxxxxxxx |
Optional. Guarantees the idempotence of the request. The value of this parameter is generated by the client. The value is unique among all requests and can contain a maximum of 64 ASCII characters. |
EnableBfd | Boolean | No | true |
Optional. Indicates whether to enable the BFD function. Valid values:
|
PeerIpAddress | String | No | 116.62.xx.xx |
Optional. The IP address of the BGP peer to be added. |
Response parameters
Parameter | Type | Example value | Description |
---|---|---|---|
BgpPeerId | String | Bgp-awjhxxxxxxxx |
The ID of the BGP peer. |
RequestId | String | D4B7649A-61BB-4C64-A586-1DFF1EDA6A42 |
The ID of the request. |
Examples
Request example
https://vpc.aliyuncs.com/?Action=CreateBgpPeer
&BgpGroupId=bgpg-wz9f62v4fbgxxxxxxxx
&RegionId=cn-shanghai
&<CommonParameters>
Response examples
XML
format
<CreateBgpPeerResponse>
<RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
</CreateBgpPeerResponse>
JSON
format
{
"RequestId":"0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
404 | InvalidRegionId.NotFound | Specified value of "regionId" is not supported. | The specified region ID is invalid. Please check if the cloud service is available in the specified region. |
400 | QuotaExceeded.Bgp | bgp peer count per vbr quota exceed. | The number of BGP groups in the VBR has reached the quota. |
400 | QuotaExceeded.Bgp | bgp group count per vbr quota exceed. | The number of BGP groups in the VBR has reached the quota. |
400 | QuotaExceeded.Nqa | nqa count per vbr quota exceed. | The number of NQA instances has reached the quota. |
400 | QuotaExceeded.BgpNetwork | bgp network count per vbr quota exceed. | The number of BGP networks of the VBR has reached the quota. |
400 | InvalidPeerIpAddress | multi pconn peer ip can not be null. | The peer IP address cannot be left blank in the case of multiple physical connections. |
400 | InvalidVbrNetwork | vbr netowrk not exists | The specified VBR does not exist. |
400 | InvalidBgpGroup | bgp group not exists | The specified BGP group 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 | invalid peer asn cannot equals aliyun asn:45104 | The specified ASN cannot be the same as the Alibaba Cloud ASN. |
400 | InvalidParams.NotFound | instance not found | The specified instance does not exist. |
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. |