Queries advertised BGP networks.
Debug
By using API Explorer, you can easily debug APIs, automatically generate SDK code examples, and quickly search for APIs.
Request parameters
Parameter | Type | Required? | Example value | Description |
---|---|---|---|---|
Action | String | Yes | DescribeBgpNetworks |
The name of this action. Value: DescribeBgpNetworks |
RegionId | String | Yes | cn-hangzhou |
The region to which the BGP network belongs. To query the region ID, call DescribeRegions. |
PageNumber | Integer | No | 2 |
The current page number. |
PageSize | Integer | No | 10 |
The number of entries on the current page. Maximum value: 50. Default value: 10. |
RouterId | String | No | vrt-2zeazning6tbzkm5c0jj2 |
The ID of the VBR. |
Response parameters
Parameter | Type | Example value | Description |
---|---|---|---|
BgpNetworks |
A list of BGP networks. |
||
└DstCidrBlock | String | 10.1.1.0/24 |
The advertised BGP network. |
└RouterId | String | vrt-bp1el837xkkakub7ci0tj |
The ID of the router. |
└VpcId | String | vpc-bp1qpo0kug3a20qqe9h7v | The ID of the VPC. |
PageNumber | Integer | 2 |
The current page number. |
PageSize | Integer | 12 |
The number of entries per page. |
RequestId | String | 6F513A15-669F-419D-B511-08A85292059B |
The ID of the request. |
TotalCount | Integer | 2 |
The total number of advertised BGP networks. |
Examples
Request example
https://vpc.aliyuncs.com/?Action=DescribeBgpNetworks
&RegionId=cn-hangzhou
&<CommonParameters>
Response example-
XML format
<DescribeBgpNetworksResponse> <BgpNetworks> <BgpNetwork> <DstCidrBlock>10.1.1.0/24</DstCidrBlock> <VpcId/> </BgpNetwork> </BgpNetworks> <RequestId>6F513A15-669F-419D-B511-08A85292059B</RequestId> <PageSize>10</PageSize> <TotalCount>1</TotalCount> </DescribeBgpNetworksResponse>
-
JSON format
{ "BgpNetworks":{ "BgpNetwork":[ { "DstCidrBlock":"10.1.1.0/24", "VpcId":"" } ] }, "TotalCount":1, "PageSize":10, "RequestId":"6F513A15-669F-419D-B511-08A85292059B" }
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
500 | InternalError | The request processing has failed due to some unknown error. | An error occurred while the request was being processed. |
404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | The specified region ID does not exist. |