Skip to content

Commit ba0e8fc

Browse files
authored
Microsoft and Private Peering
Add Sample API operations for creating Microsoft and Private Peering
1 parent f75deda commit ba0e8fc

File tree

1 file changed

+130
-1
lines changed

1 file changed

+130
-1
lines changed

articles/expressroute/cross-connections-api-development.md

Lines changed: 130 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,137 @@ C:\Users\kaanan\Documents\Expressroute\Partner APIs\ARMClient-master\ARMClient-m
250250
}
251251
```
252252

253-
4. **(Optional) PUT expressRouteCrossConnection to configure Microsoft and/or Private Peering:** If you manage layer-3 BGP connectivity, you can enable Microsoft and/or Private Peering.
253+
4. **(Optional) PUT expressRouteCrossConnection to configure Private Peering** If you manage layer-3 BGP connectivity, you can enable Private Peering
254254

255+
```PUT /subscriptions/8030cec9-2c0c-4361-9949-1655c6e4b0fa/resourceGroups/CrossConnection-EUAPTest/providers/Microsoft.Network/expressRouteCrossConnections/9ee700ad-50b2-4b98-a63a-4e52f855ac24/peerings/AzurePrivatePeering?api-version=2018-02-01 HTTP/1.1
256+
Host: management.azure.com
257+
Authorization: Bearer eyJ0eXAiOiJKV...
258+
User-Agent: ARMClient/1.2.0.0
259+
Accept: application/json
260+
x-ms-request-id: 9c1413a5-6d27-4e87-b075-1fedb15d63a3
261+
262+
{
263+
"properties": {
264+
"peeringType": "AzurePrivatePeering",
265+
"peerASN": 500,
266+
"primaryPeerAddressPrefix": "10.0.0.0/30",
267+
"secondaryPeerAddressPrefix": "10.0.0.4/30",
268+
"sharedKey": "A1B2C3D4",
269+
"vlanId": 200
270+
},
271+
"name": "AzurePrivatePeering"
272+
}
273+
---------- Response (2354 ms) ------------
274+
275+
HTTP/1.1 201 Created
276+
Pragma: no-cache
277+
Retry-After: 10
278+
x-ms-request-id: 344eccc8-2958-4958-aa6f-3958f3fd5648
279+
Azure-AsyncOperation: https://management.azure.com/subscriptions/8030cec9-2c0c-4361-9949-1655c6e4b0fa/providers/Microsoft.Network/locations/eastus2euap/operations/344eccc8-2958-4958-aa6f-3958f3fd5648?api-version=2018-02-01
280+
Strict-Transport-Security: max-age=31536000; includeSubDomains
281+
Cache-Control: no-cache
282+
Server: Microsoft-HTTPAPI/2.0; Microsoft-HTTPAPI/2.0
283+
x-ms-ratelimit-remaining-subscription-writes: 1199
284+
x-ms-correlation-request-id: b5d08e36-339c-423a-ac2c-b6ec2063c8a6
285+
x-ms-routing-request-id: WESTUS:20180501T194026Z:b5d08e36-339c-423a-ac2c-b6ec2063c8a6
286+
X-Content-Type-Options: nosniff
287+
Date: Tue, 01 May 2018 19:40:26 GMT
288+
289+
{
290+
"name": "AzurePrivatePeering",
291+
"id": "/subscriptions/8030cec9-2c0c-4361-9949-1655c6e4b0fa/resourceGroups/CrossConnection-EUAPTest/providers/Microsoft.Network/expressRouteCrossConnections/9ee700ad-50b2-4b98-a63a-4e52f855ac24/peerings/AzurePrivatePeering",
292+
"properties": {
293+
"provisioningState": "Updating",
294+
"peeringType": "AzurePrivatePeering",
295+
"azureASN": 0,
296+
"peerASN": 500,
297+
"primaryPeerAddressPrefix": "10.0.0.0/30",
298+
"secondaryPeerAddressPrefix": "10.0.0.4/30",
299+
"sharedKey": "A1B2C3D4",
300+
"state": "Disabled",
301+
"vlanId": 200,
302+
"lastModifiedBy": ""
303+
}
304+
}
305+
306+
C:\Users\kaanan\Documents\Expressroute\Partner APIs\ARMClient-master\ARMClient-master>armclient get https://management.azure.com/subscriptions/8030cec9-2c0c-4361-9949-1655c6e4b0fa/providers/Microsoft.Network/locations/eastus2euap/operations/344eccc8-2958-4958-aa6f-3958f3fd5648?api-version=2018-02-01
307+
{
308+
"status": "Succeeded"
309+
}
310+
```
311+
312+
5. **(Optional) PUT expressRouteCrossConnection to configure Microsoft Peering** If you manage layer-3 BGP connectivity, you can enable Microsoft Peering
313+
314+
```PUT /subscriptions/8030cec9-2c0c-4361-9949-1655c6e4b0fa/resourceGroups/CrossConnection-EUAPTest/providers/Microsoft.Network/expressRouteCrossConnections/9ee700ad-50b2-4b98-a63a-4e52f855ac24/peerings/MicrosoftPeering?api-version=2018-02-01 HTTP/1.1
315+
Host: management.azure.com
316+
Authorization: Bearer eyJ0eXAiOiJKV...
317+
User-Agent: ARMClient/1.2.0.0
318+
Accept: application/json
319+
x-ms-request-id: af4527eb-7b68-4a50-b953-c0606524d8f3
320+
321+
{
322+
"properties": {
323+
"peeringType": "MicrosoftPeering",
324+
"peerASN": 900,
325+
"primaryPeerAddressPrefix": "123.0.0.0/30",
326+
"secondaryPeerAddressPrefix": "123.0.0.4/30",
327+
"vlanId": 300,
328+
"microsoftPeeringConfig": {
329+
"advertisedPublicPrefixes": [
330+
"123.1.0.0/24"
331+
],
332+
"customerASN": 45,
333+
"routingRegistryName": "ARIN"
334+
}
335+
},
336+
"name": "MicrosoftPeering"
337+
}
338+
---------- Response (2530 ms) ------------
339+
340+
HTTP/1.1 201 Created
341+
Pragma: no-cache
342+
Retry-After: 10
343+
x-ms-request-id: e3aa0bbd-4709-4092-a1f1-aa78080929d0
344+
Azure-AsyncOperation: https://management.azure.com/subscriptions/8030cec9-2c0c-4361-9949-1655c6e4b0fa/providers/Microsoft.Network/locations/eastus2euap/operations/e3aa0bbd-4709-4092-a1f1-aa78080929d0?api-version=2018-02-01
345+
Strict-Transport-Security: max-age=31536000; includeSubDomains
346+
Cache-Control: no-cache
347+
Server: Microsoft-HTTPAPI/2.0; Microsoft-HTTPAPI/2.0
348+
x-ms-ratelimit-remaining-subscription-writes: 1199
349+
x-ms-correlation-request-id: 8e26bc5d-f1cd-4305-a373-860aaf7bb694
350+
x-ms-routing-request-id: WESTUS:20180501T213857Z:8e26bc5d-f1cd-4305-a373-860aaf7bb694
351+
X-Content-Type-Options: nosniff
352+
Date: Tue, 01 May 2018 21:38:56 GMT
353+
354+
{
355+
"name": "MicrosoftPeering",
356+
"id": "/subscriptions/8030cec9-2c0c-4361-9949-1655c6e4b0fa/resourceGroups/CrossConnection-EUAPTest/providers/Microsoft.Network/expressRouteCrossConnections/9ee700ad-50b2-4b98-a63a-4e52f855ac24/peerings/MicrosoftPeering",
357+
"properties": {
358+
"provisioningState": "Updating",
359+
"peeringType": "MicrosoftPeering",
360+
"azureASN": 0,
361+
"peerASN": 900,
362+
"primaryPeerAddressPrefix": "123.0.0.0/30",
363+
"secondaryPeerAddressPrefix": "123.0.0.4/30",
364+
"state": "Disabled",
365+
"vlanId": 300,
366+
"lastModifiedBy": "",
367+
"microsoftPeeringConfig": {
368+
"advertisedPublicPrefixes": [
369+
"123.1.0.0/24"
370+
],
371+
"advertisedPublicPrefixesState": "NotConfigured",
372+
"customerASN": 45,
373+
"legacyMode": 0,
374+
"routingRegistryName": "ARIN"
375+
}
376+
}
377+
}
378+
379+
C:\Users\kaanan\Documents\Expressroute\Partner APIs\ARMClient-master\ARMClient-master>armclient get https://management.azure.com/subscriptions/8030cec9-2c0c-4361-9949-1655c6e4b0fa/providers/Microsoft.Network/locations/eastus2euap/operations/e3aa0bbd-4709-4092-a1f1-aa78080929d0?api-version=2018-02-01
380+
{
381+
"status": "Succeeded"
382+
}
383+
```
255384
## REST API
256385

257386
See [ExpressRoute CrossConnections REST API](/rest/api/expressroute/expressroutecrossconnections) for REST API documentation.

0 commit comments

Comments
 (0)