Skip to content

Commit f75deda

Browse files
authored
PUT expressRouteCrossConnection
Add sample API Operation for PUT expressRouteCrossConnection
1 parent e5f6462 commit f75deda

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

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

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,67 @@ Date: Tue, 01 May 2018 19:32:29 GMT
189189
```
190190
3. **PUT expressRouteCrossConnection:** Once you provision layer-2 connectivity, update the *ServiceProviderProvisioningState* to **Provisioned**. At this point, the customer can configure Microsoft or Private Peering and create a connection from the ExpressRoute circuit to a virtual network gateway deployed in the customer's subscription.
191191

192+
```PUT /subscriptions/<ProviderManagementSubscription>/resourceGroups/CrossConnection-EUAPTest/providers/Microsoft.Network/expressRouteCrossConnections/9ee700ad-50b2-4b98-a63a-4e52f855ac24?api-version=2018-02-01 HTTP/1.1
193+
Host: management.azure.com
194+
Authorization: Bearer eyJ0eXAiOiJKV...
195+
User-Agent: ARMClient/1.2.0.0
196+
Accept: application/json
197+
x-ms-request-id: d867c3c9-2acf-4c54-a0f0-d7ca50fc7b9b
198+
199+
{
200+
"properties": {
201+
"serviceProviderProvisioningState": "Provisioned",
202+
"peeringLocation": "EUAP Test",
203+
"expressRouteCircuit": {
204+
"id": "/subscriptions/<ProviderManagementSubscription>/resourceGroups/Karthikcrossconnectiontest/providers/Microsoft.Network/expressRouteCircuits/TestCircuitXYZ"
205+
},
206+
"bandwidthInMbps": 200
207+
},
208+
"location": "East US 2 EUAP"
209+
}
210+
---------- Response (1740 ms) ------------
211+
212+
HTTP/1.1 200 OK
213+
Pragma: no-cache
214+
Retry-After: 10
215+
x-ms-request-id: 0a8d458b-8fe3-44e6-89c9-1b156b946693
216+
Azure-AsyncOperation: https://management.azure.com/subscriptions/8030cec9-2c0c-4361-9949-1655c6e4b0fa/providers/Microsoft.Network/locations/eastus2euap/operations/0a8d458b-8fe3-44e6-89c9-1b156b946693?api-version=2018-02-01
217+
Strict-Transport-Security: max-age=31536000; includeSubDomains
218+
Cache-Control: no-cache
219+
Server: Microsoft-HTTPAPI/2.0; Microsoft-HTTPAPI/2.0
220+
x-ms-ratelimit-remaining-subscription-writes: 1199
221+
x-ms-correlation-request-id: d2d38c28-0dbe-4b40-8824-c74968c46b50
222+
x-ms-routing-request-id: WESTUS:20180501T222105Z:d2d38c28-0dbe-4b40-8824-c74968c46b50
223+
X-Content-Type-Options: nosniff
224+
Date: Tue, 01 May 2018 22:21:04 GMT
225+
226+
{
227+
"name": "9ee700ad-50b2-4b98-a63a-4e52f855ac24",
228+
"id": "/subscriptions/<ProviderManagementSubscription>/resourceGroups/CrossConnection-EUAPTest/providers/Microsoft.Network/expressRouteCrossConnections/9ee700ad-50b2-4b98-a63a-4e52f855ac24",
229+
"etag": "W/\"ecdcb1a4-873b-4dad-ae56-a4b17795a84a\"",
230+
"type": "Microsoft.Network/expressRouteCrossConnections",
231+
"location": "eastus2euap",
232+
"properties": {
233+
"provisioningState": "Updating",
234+
"expressRouteCircuit": {
235+
"id": "/subscriptions/<TargetCustomerSubscription>/resourceGroups/Karthikcrossconnectiontest/providers/Microsoft.Network/expressRouteCircuits/TestCircuitXYZ"
236+
},
237+
"peeringLocation": "EUAP Test",
238+
"bandwidthInMbps": 200,
239+
"serviceProviderProvisioningState": "Provisioned",
240+
"primaryAzurePort": "",
241+
"secondaryAzurePort": "",
242+
"sTag": 0,
243+
"peerings": []
244+
}
245+
}
246+
247+
C:\Users\kaanan\Documents\Expressroute\Partner APIs\ARMClient-master\ARMClient-master>armclient get https://management.azure.com/subscriptions/<ProviderManagementSubscription>/providers/Microsoft.Network/locations/eastus2euap/operations/0a8d458b-8fe3-44e6-89c9-1b156b946693?api-version=2018-02-01
248+
{
249+
"status": "Succeeded"
250+
}
251+
```
252+
192253
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.
193254

194255
## REST API

0 commit comments

Comments
 (0)