查詢指定地域下的BGP鄰居。
請求參數
名稱 | 類型 | 是否必須 | 描述 |
---|---|---|---|
Action | String | 是 | 要執行的操作。 取值: DescribeBgpPeers |
RegionId | String | 是 | BGP組所在的地域。 您可以通過調用 DescribeRegions介面獲取地域ID。 |
BgpPeerId | String | 否 | BGP鄰居的ID。 |
RouterId | String | 否 | VBR的ID。 |
PageNumber | Integer | 否 | 列表的頁碼,預設值為1。 |
PageSize | Integer | 否 | 分頁查詢時每頁的行數,最大值為50,預設值為10。 |
返回參數
名稱 | 類型 | 描述 |
---|---|---|
RequestId | String | 請求ID。 |
TotalCount | String | 列表條條目數。 |
PageNumber | Integer | 當前頁碼。 |
PageSize | String | 每頁包含多少條目。 |
BgpPeers | List | BGP鄰居的詳細資料。 |
名稱 | 類型 | 描述 |
---|---|---|
BGPPeerId | String | BGP鄰居的ID。 |
Name | String | BGP鄰居的名稱。 |
LocalIpAddress | String | 阿里雲側的IP地址。 |
PeerIpAddress | String | BGP鄰居的IP地址。 |
PeerASN | String | BGP鄰居的ASN。 |
BGPStatus | Integer | BGP的串連狀態。 |
AuthKey | String | BGP組的認證密鑰。 |
RouterId | String | BGP鄰居的狀態。 |
樣本
請求樣本
https://vpc.aliyuncs.com/?Action=DescribeBgpPeers
&RegionId=cn-beijing
&公共請求參數
返回樣本
-
XML格式
<<?xml version="1.0" encoding="UTF-8" ?> <DescribeBgpGroupsResponse> <TotalCount>2</TotalCount> <PageSize>10</PageSize> <RequestId>16DFA5E6-9771-41B7-B079-DD7C2DF49BE6</RequestId> <BgpPeers> <BgpPeer> <BgpGroupId>bgpg-2zev8h2wo414sfhjgdlhh</BgpGroupId> <LocalAsn>45104</LocalAsn> <PeerIpAddress>11.11.11.1</PeerIpAddress> <Hold>30</Hold> <Description></Description> <AuthKey></AuthKey> <IsFake>true</IsFake> <PeerAsn>234</PeerAsn> <Keepalive>10</Keepalive> <RouteLimit>99</RouteLimit> <BgpPeerId>bgp-2ze3un0ft1jd1xdppusul</BgpPeerId> <Name></Name> <Status>Available</Status> <BgpStatus></BgpStatus> <RouterId>vbr-2zecmmvg5gvu8i4telkhw</RouterId> <RegionId>cn-beijing</RegionId> </BgpPeer> <BgpPeer> <BgpGroupId>bgpg-2zev8h2wo414sfhjgdlhh</BgpGroupId> <LocalAsn>45104</LocalAsn> <PeerIpAddress>11.11.11.2</PeerIpAddress> <Hold>30</Hold> <Description></Description> <AuthKey></AuthKey> <IsFake>true</IsFake> <PeerAsn>234</PeerAsn> <Keepalive>10</Keepalive> <RouteLimit>99</RouteLimit> <BgpPeerId>bgp-2zeu54rbreqqzyb5bg1hq</BgpPeerId> <Name></Name> <Status>Available</Status> <BgpStatus></BgpStatus> <RouterId>vbr-2zecmmvg5gvu8i4telkhw</RouterId> <RegionId>cn-beijing</RegionId> </BgpPeer> </BgpPeers> </DescribeBgpGroupsResponse>
-
JSON格式
{ "TotalCount": 2, "PageSize": 10, "RequestId": "16DFA5E6-9771-41B7-B079-DD7C2DF49BE6", "BgpPeers": { "BgpPeer": [ { "BgpGroupId": "bgpg-2zev8h2wo414sfhjgdlhh", "LocalAsn": 45104, "PeerIpAddress": "11.11.11.1", "Hold": 30, "Description": "", "AuthKey": "", "IsFake": true, "PeerAsn": 234, "Keepalive": 10, "RouteLimit": 99, "BgpPeerId": "bgp-2ze3un0ft1jd1xdppusul", "Name": "", "Status": "Available", "BgpStatus": "", "RouterId": "vbr-2zecmmvg5gvu8i4telkhw", "RegionId": "cn-beijing" }, { "BgpGroupId": "bgpg-2zev8h2wo414sfhjgdlhh", "LocalAsn": 45104, "PeerIpAddress": "11.11.11.2", "Hold": 30, "Description": "", "AuthKey": "", "IsFake": true, "PeerAsn": 234, "Keepalive": 10, "RouteLimit": 99, "BgpPeerId": "bgp-2zeu54rbreqqzyb5bg1hq", "Name": "", "Status": "Available", "BgpStatus": "", "RouterId": "vbr-2zecmmvg5gvu8i4telkhw", "RegionId": "cn-beijing" } ] } }