AddBgpNetwork - 宣告BGP网络

更新时间:
复制 MD 格式

调用AddBgpNetwork宣告BGP网络。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

vpc:AddBgpNetwork

get

*VirtualBorderRouter

acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}

请求参数

名称

类型

必填

描述

示例值

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.

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情