查詢指定地域下的BGP組。
請求參數
名稱 | 類型 | 是否必須 | 描述 |
---|---|---|---|
Action | String | 是 | 要執行的操作。 取值: DescribeBgpGroups |
RegionId | String | 否 | BGP組所在的地域。 您可以通過調用 DescribeRegions介面獲取地域ID。 |
BgpGroupId | String | 否 | BGP組的ID。 |
RouterId | String | 否 | BGP組關聯的VBR的ID。 |
PageNumber | Integer | 否 | 列表的頁碼,預設值為1。 |
PageSize | Integer | 否 | 分頁查詢時每頁的行數,最大值為50,預設值為10。 |
返回參數
名稱 | 類型 | 描述 |
---|---|---|
RequestId | String | 請求ID。 |
TotalCount | String | 列表條條目數。 |
PageNumber | Integer | 當前頁碼。 |
PageSize | String | 每頁包含多少條目。 |
BGPGroups | List | BGP組的詳細資料,詳細資料參見。 |
名稱 | 類型 | 描述 |
---|---|---|
BgpGroupId | String | BGP組ID。 |
Name | String | BGP組的名稱。 |
Status | String | BGP組的狀態。 |
RouterId | String | BGP組關聯的邊界路由器ID。 |
RegionId | String | BGP組的地域。 |
Description | Integer | BGP組的描述。 |
AuthKey | String | BGP組的認證密鑰。 |
PeerAsn | String | BGP鄰居的ASN。 |
樣本
請求樣本
https://vpc.aliyuncs.com/?Action=DescribeBgpGroups
&RegionId=cn-beijing
&公共請求參數
返回樣本
-
XML格式
<?xml version="1.0" encoding="UTF-8" ?> <DescribeBgpGroupsResponse> <TotalCount>1</TotalCount> <PageSize>10</PageSize> <RequestId>09E2C0FD-37FF-4737-80DF-517AC36D43DB</RequestId> <BgpGroups> <BgpGroup> <BgpGroupId>bgpg-2zev8h2wo414sfhjgdlhh</BgpGroupId> <LocalAsn>45104</LocalAsn> <Hold>30</Hold> <Description></Description> <AuthKey></AuthKey> <IsFake>true</IsFake> <PeerAsn>234</PeerAsn> <Keepalive>10</Keepalive> <RouteLimit>99</RouteLimit> <Name>Group1</Name> <Status>Pending</Status> <RouterId>vbr-2zecmmvg5gvu8i4telkhw</RouterId> <RegionId>cn-beijing</RegionId> </BgpGroup> </BgpGroups> </DescribeBgpGroupsResponse>
-
JSON格式
{ "TotalCount": 1, "PageSize": 10, "RequestId": "09E2C0FD-37FF-4737-80DF-517AC36D43DB", "BgpGroups": { "BgpGroup": [ { "BgpGroupId": "bgpg-2zev8h2wo414sfhjgdlhh", "LocalAsn": 45104, "Hold": 30, "Description": "", "AuthKey": "", "IsFake": true, "PeerAsn": 234, "Keepalive": 10, "RouteLimit": 99, "Name": "Group1", "Status": "Pending", "RouterId": "vbr-2zecmmvg5gvu8i4telkhw", "RegionId": "cn-beijing" } ] } }