edit-icon download-icon

DescribeBgpNetwork

Last Updated: Apr 09, 2018

Description

Query the advertised BGP networks.

Request parameters

Name Type Required Description
Action String Yes

The action to perform.

Valid value: DescribeBgpNetwork

RegionId String Yes

The region of the VBR.

You can obtain the region ID by calling the DescribeRegions API.

dstCidrBlock String Yes The advertised BGP network, which is the CIDR block of the VPC or VSwitch to be connected to the local IDC.
routeId String Yes The ID of the VBR.

Response parameters

Name Type Description
RequestId String The ID of the request.
BgpNetworks JSON string A list of queried BGP networks.
TotalCount Integer The number of queried entries.
PageNumber Integer The current page number.
PageSize Integer The number of entries on the current page.
BgpNetwork objects
dstCidrBlock String The advertised CIDR block.

Error codes

See VPC API Error Center.

Examples

Request example

  1. https://vpc.aliyuncs.com/?Action=DescribeBgpNetworks
  2. &RegionId=cn-beijing
  3. &RouterId=vbr-2zeff11o2sqhnp1u7ci93
  4. &DstCidrBlock=10.1.1.0%2F24
  5. &<CommonParameters>

Response example

XML format

  1. <DescribeBgpNetworksResponse>
  2. <BgpNetworks>
  3. <BgpNetwork>
  4. <DstCidrBlock>10.1.1.0/24</DstCidrBlock>
  5. <VpcId></VpcId>
  6. </BgpNetwork>
  7. </BgpNetworks>
  8. <RequestId>6F513A15-669F-419D-B511-08A85292059B</RequestId>
  9. <PageSize>10</PageSize>
  10. <TotalCount>1</TotalCount>
  11. </DescribeBgpNetworksResponse>

JSON format

  1. {
  2. "BgpNetworks": {
  3. "BgpNetwork": [
  4. {
  5. "DstCidrBlock": "10.1.1.0/24",
  6. "VpcId": ""
  7. }
  8. ]
  9. },
  10. "RequestId": "6F513A15-669F-419D-B511-08A85292059B",
  11. "PageSize": 10,
  12. "TotalCount": 1
  13. }
Thank you! We've received your feedback.