Skip to content

Commit e52be70

Browse files
Add virtual hub bgp connections subresources virtualRouterPeerAdverti… (#10434)
* Add virtual hub bgp connections subresources virtualRouterPeerAdvertisedRoute and virtualRouterPeerLearnedRoute with POST opertion * Add examples * Change name of operationid * change output of advertised route
1 parent 8c7fcf4 commit e52be70

File tree

3 files changed

+256
-0
lines changed

3 files changed

+256
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"parameters": {
3+
"api-version": "2020-06-01",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "rg1",
6+
"hubName": "virtualRouter1",
7+
"connectionName": "peer1"
8+
},
9+
"responses": {
10+
"202": {},
11+
"200": {
12+
"body": {
13+
"value": [
14+
{
15+
"localAddress": "10.85.3.4",
16+
"network": "10.45.0.0/16",
17+
"nextHop": "10.85.3.4",
18+
"sourcePeer": "10.85.3.4",
19+
"origin": "Igp",
20+
"asPath": "65515",
21+
"weight": 0
22+
},
23+
{
24+
"localAddress": "10.85.3.4",
25+
"network": "10.85.0.0/16",
26+
"nextHop": "10.85.3.4",
27+
"sourcePeer": "10.85.3.4",
28+
"origin": "Igp",
29+
"asPath": "65515",
30+
"weight": 0
31+
},
32+
{
33+
"localAddress": "10.85.3.4",
34+
"network": "10.100.0.0/16",
35+
"nextHop": "10.85.3.4",
36+
"sourcePeer": "10.85.3.4",
37+
"origin": "Igp",
38+
"asPath": "65515",
39+
"weight": 0
40+
}
41+
]
42+
}
43+
}
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"api-version": "2020-06-01",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "rg1",
6+
"hubName": "virtualRouter1",
7+
"connectionName": "peer1"
8+
},
9+
"responses": {
10+
"202": {},
11+
"200": {
12+
"body": {
13+
"value": [
14+
{
15+
"localAddress": "10.85.3.4",
16+
"network": "10.101.0.0/16",
17+
"nextHop": "10.85.4.4",
18+
"sourcePeer": "10.85.4.4",
19+
"origin": "EBgp",
20+
"asPath": "65002-65001",
21+
"weight": 32768
22+
},
23+
{
24+
"localAddress": "10.85.3.5",
25+
"network": "10.101.0.0/16",
26+
"nextHop": "10.85.4.4",
27+
"sourcePeer": "10.85.4.4",
28+
"origin": "EBgp",
29+
"asPath": "65002-65001",
30+
"weight": 32768
31+
}
32+
]
33+
}
34+
}
35+
}
36+
}

specification/network/resource-manager/Microsoft.Network/stable/2020-06-01/virtualWan.json

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4362,6 +4362,128 @@
43624362
}
43634363
}
43644364
},
4365+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{hubName}/bgpConnections/{connectionName}/learnedRoutes": {
4366+
"post": {
4367+
"operationId": "VirtualHubBgpConnections_ListLearnedRoutes",
4368+
"description": "Retrieves a list of routes the virtual hub bgp connection has learned.",
4369+
"parameters": [
4370+
{
4371+
"name": "resourceGroupName",
4372+
"in": "path",
4373+
"required": true,
4374+
"type": "string",
4375+
"description": "The name of the resource group."
4376+
},
4377+
{
4378+
"name": "hubName",
4379+
"in": "path",
4380+
"required": true,
4381+
"type": "string",
4382+
"description": "The name of the virtual hub."
4383+
},
4384+
{
4385+
"name": "connectionName",
4386+
"in": "path",
4387+
"required": true,
4388+
"type": "string",
4389+
"description": "The name of the virtual hub bgp connection."
4390+
},
4391+
{
4392+
"$ref": "./network.json#/parameters/ApiVersionParameter"
4393+
},
4394+
{
4395+
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
4396+
}
4397+
],
4398+
"responses": {
4399+
"200": {
4400+
"description": "List of advertised BGP routes.",
4401+
"schema": {
4402+
"$ref": "#/definitions/PeerRouteList"
4403+
}
4404+
},
4405+
"202": {
4406+
"description": "Accepted and the operation will complete asynchronously."
4407+
},
4408+
"default": {
4409+
"description": "Error response describing why the operation failed.",
4410+
"schema": {
4411+
"$ref": "./network.json#/definitions/CloudError"
4412+
}
4413+
}
4414+
},
4415+
"x-ms-examples": {
4416+
"VirtualRouterPeerListLearnedRoutes": {
4417+
"$ref": "./examples/VirtualRouterPeerListLearnedRoute.json"
4418+
}
4419+
},
4420+
"x-ms-long-running-operation": true,
4421+
"x-ms-long-running-operation-options": {
4422+
"final-state-via": "location"
4423+
}
4424+
}
4425+
},
4426+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{hubName}/bgpConnections/{connectionName}/advertisedRoutes": {
4427+
"post": {
4428+
"operationId": "VirtualHubBgpConnections_ListAdvertisedRoutes",
4429+
"description": "Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer.",
4430+
"parameters": [
4431+
{
4432+
"name": "resourceGroupName",
4433+
"in": "path",
4434+
"required": true,
4435+
"type": "string",
4436+
"description": "The name of the resource group."
4437+
},
4438+
{
4439+
"name": "hubName",
4440+
"in": "path",
4441+
"required": true,
4442+
"type": "string",
4443+
"description": "The name of the virtual hub."
4444+
},
4445+
{
4446+
"name": "connectionName",
4447+
"in": "path",
4448+
"required": true,
4449+
"type": "string",
4450+
"description": "The name of the virtual hub bgp connection."
4451+
},
4452+
{
4453+
"$ref": "./network.json#/parameters/ApiVersionParameter"
4454+
},
4455+
{
4456+
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
4457+
}
4458+
],
4459+
"responses": {
4460+
"200": {
4461+
"description": "List of learned BGP routes.",
4462+
"schema": {
4463+
"$ref": "#/definitions/PeerRouteList"
4464+
}
4465+
},
4466+
"202": {
4467+
"description": "Accepted and the operation will complete asynchronously."
4468+
},
4469+
"default": {
4470+
"description": "Error response describing why the operation failed.",
4471+
"schema": {
4472+
"$ref": "./network.json#/definitions/CloudError"
4473+
}
4474+
}
4475+
},
4476+
"x-ms-examples": {
4477+
"VirtualRouterPeerListAdvertisedRoutes": {
4478+
"$ref": "./examples/VirtualRouterPeerListAdvertisedRoute.json"
4479+
}
4480+
},
4481+
"x-ms-long-running-operation": true,
4482+
"x-ms-long-running-operation-options": {
4483+
"final-state-via": "location"
4484+
}
4485+
}
4486+
},
43654487
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/ipConfigurations/{ipConfigName}": {
43664488
"get": {
43674489
"operationId": "VirtualHubIpConfiguration_Get",
@@ -5342,6 +5464,59 @@
53425464
},
53435465
"description": "Properties of the bgp connection."
53445466
},
5467+
"PeerRoute": {
5468+
"properties": {
5469+
"localAddress": {
5470+
"type": "string",
5471+
"readOnly": true,
5472+
"description": "The peer's local address."
5473+
},
5474+
"network": {
5475+
"type": "string",
5476+
"readOnly": true,
5477+
"description": "The route's network prefix."
5478+
},
5479+
"nextHop": {
5480+
"type": "string",
5481+
"readOnly": true,
5482+
"description": "The route's next hop."
5483+
},
5484+
"sourcePeer": {
5485+
"type": "string",
5486+
"readOnly": true,
5487+
"description": "The peer this route was learned from."
5488+
},
5489+
"origin": {
5490+
"type": "string",
5491+
"readOnly": true,
5492+
"description": "The source this route was learned from."
5493+
},
5494+
"asPath": {
5495+
"type": "string",
5496+
"readOnly": true,
5497+
"description": "The route's AS path sequence."
5498+
},
5499+
"weight": {
5500+
"type": "integer",
5501+
"format": "int32",
5502+
"readOnly": true,
5503+
"description": "The route's weight."
5504+
}
5505+
},
5506+
"description": "Peer routing details."
5507+
},
5508+
"PeerRouteList": {
5509+
"properties": {
5510+
"value": {
5511+
"type": "array",
5512+
"items": {
5513+
"$ref": "#/definitions/PeerRoute"
5514+
},
5515+
"description": "List of peer routes."
5516+
}
5517+
},
5518+
"description": "List of virtual router peer routes."
5519+
},
53455520
"HubIpConfiguration": {
53465521
"properties": {
53475522
"properties": {

0 commit comments

Comments
 (0)