调用AddBgpNetwork宣告BGP网络。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
vpc:AddBgpNetwork |
get |
*VirtualBorderRouter
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
VBR 组所在的地域。 您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-shanghai |
| DstCidrBlock |
string |
是 |
需要和本地 IDC 互连的 VPC 或交换机的网段。 |
10.10.XX.XX/32 |
| VpcId |
string |
否 |
VPC 的 ID。 |
vpc-bp1qpo0kug3a2***** |
| RouterId |
string |
是 |
路由器接口关联的路由器 ID。 |
vrt-2zeo3xzyf38r4u****** |
| ClientToken |
string |
否 |
客户端 Token,用于保证请求的幂等性。 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。 说明
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样。 |
123e4567-e89b-12d3-a456-426655440000 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
请求 ID。 |
||
| RequestId |
string |
请求 ID。 |
9C7FA9D6-72E0-48A9-A9C3-2DA8569CD5EB |
示例
正常返回示例
JSON格式
{
"RequestId": "9C7FA9D6-72E0-48A9-A9C3-2DA8569CD5EB"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | QuotaExceeded.Bgp | bgp peer count per vbr quota exceed. | 边界路由器的BGP邻居数量已达到配额。 |
| 400 | QuotaExceeded.Nqa | nqa count per vbr quota exceed. | |
| 400 | QuotaExceeded.BgpNetwork | bgp network count per vbr quota exceed. | |
| 400 | InvalidPeerIpAddress | multi pconn peer ip can not be null. | |
| 400 | InvalidVbrNetwork | vbr netowrk not exists | |
| 400 | InvalidBgpGroup | bgp group not exists | |
| 400 | InvalidBgpName.Malformed | Specified Bgp Group name is not valid. | |
| 400 | InvalidBgpDiscription.Malformed | Specified Bgp Group description is not valid. | |
| 400 | InvalidBgpAuthkey.Malformed | Specified Bgp Group authkey is not valid. | |
| 400 | InvalidIP.Malformed | Ip malformed. | |
| 400 | InvalidPeerAsn.Malformed | invalid peer asn cannot equals aliyun asn:45104 | |
| 400 | InvalidParams.NotNull | parameter must not null. | |
| 400 | InvalidParams.NotFound | instance not found | |
| 400 | InvalidParams.AlreadyExists | bgp network already exists | BGP网络已经存在。 |
| 400 | InvalidStatus.CannotOperate | invalid status cannot operate | |
| 400 | InvalidParams.PeerIpAddressMustPointOut | vbr has 0 or more than 1 subif ,point out peerIpAddress. | 请指出PeerIpAddress |
| 400 | InvalidParams.PeerIpAddressInUse | peer ip address in use ,cannot create bgp peer. | 对等IP地址正在使用,无法创建BGP对等。 |
| 400 | Duplicated.CidrBlock | bgp network cidr already exists. | |
| 400 | InvalidIP.IpInSnatPool | Multi ip in snat pool cannot remove ip from bandwidth package. | |
| 400 | InvalidDestCidrBlock.Malformed | Specified dstCidrBlock is not valid. | |
| 400 | IllegalParam.ConflictWithDClass | DClass IP can not support. | |
| 400 | OperationFailed.PconnTrafficNotEnable | The operation is failed because of PconnTrafficNotEnable. | 操作失败,因为出方向流量未开通。 |
| 400 | OperationFailed.NoActiveRouterInterface | there's not active routerInterface,cannot add bgp network. | |
| 400 | IllegalParamFormat.DstCidrBlock | The format of the specified destination CIDR block is invalid. | 目的CIDR格式不正确。 |
| 400 | IllegalParam.IpVersion | The parameter of IpVersion is illegal. | 参数IpVersion非法。 |
| 400 | IllegalParam.ipVersion | The IP version does not match. | ip version不匹配 |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。