forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add examples for Express Route Circuit APIs (Azure#3182)
* Add examples for Express Route Circuit APIs * Fix errors in expressRouteCircuit.json validations * Fix errors in validate examples for ExR Circuit
- Loading branch information
1 parent
d5508a8
commit 9cb0ed8
Showing
20 changed files
with
887 additions
and
13 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitARPTableList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"parameters": { | ||
"circuitName": "circuitName", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2017-11-01", | ||
"subscriptionId": "subid", | ||
"peeringName": "peeringName", | ||
"devicePath": "devicePath" | ||
}, | ||
"responses": { | ||
"200": { | ||
"value": [ | ||
{ | ||
"age": 0, | ||
"interface": "Microsoft", | ||
"ipAddress": "IPAddress", | ||
"macAddress": "macAddress" | ||
} | ||
] | ||
}, | ||
"202": { | ||
"value": [ | ||
{ | ||
"age": 0, | ||
"interface": "Microsoft", | ||
"ipAddress": "IPAddress", | ||
"macAddress": "macAddress" | ||
} | ||
] | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
.../Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitAuthorizationCreate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"parameters":{ | ||
"circuitName":"circuitName", | ||
"resourceGroupName":"rg1", | ||
"authorizationName":"authorizatinName", | ||
"api-version":"2017-11-01", | ||
"subscriptionId":"subid", | ||
"authorizationParameters":{ | ||
"properties": { | ||
"authorizationKey": "authKey", | ||
"authorizationUseStatus":"Available" | ||
} | ||
} | ||
}, | ||
"responses":{ | ||
"201":{ | ||
"body":{ | ||
"name":"authorizationName", | ||
"id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName", | ||
"etag":"W/\"e22dd4b2-4c24-44cf-b702-70a472b62914\"", | ||
"properties":{ | ||
"provisioningState":"Updating", | ||
"authorizationUseStatus":"Available" | ||
} | ||
} | ||
}, | ||
"200":{ | ||
"body":{ | ||
"name":"authorizationName", | ||
"id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/authorizations/authorizationName", | ||
"etag":"W/\"e22dd4b2-4c24-44cf-b702-70a472b62914\"", | ||
"properties":{ | ||
"provisioningState":"Updating", | ||
"authorizationUseStatus":"Available" | ||
} | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
.../Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitAuthorizationDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"parameters":{ | ||
"circuitName":"circuitName", | ||
"resourceGroupName":"rg1", | ||
"api-version":"2017-11-01", | ||
"subscriptionId":"subid", | ||
"authorizationName":"authorizationName" | ||
}, | ||
"responses":{ | ||
"200":{ | ||
|
||
}, | ||
"202":{ | ||
|
||
}, | ||
"204":{ | ||
|
||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...ger/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitAuthorizationGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"parameters": { | ||
"circuitName": "circuitName", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2017-11-01", | ||
"subscriptionId": "subid", | ||
"authorizationName": "authorizationName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"name": "MyAuthorization1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", | ||
"etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"authorizationKey": "authKey", | ||
"authorizationUseStatus": "Available" | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...er/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitAuthorizationList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"parameters": { | ||
"circuitName": "circuitName", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2017-11-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"value": [ | ||
{ | ||
"name": "MyAuthorization1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", | ||
"etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"authorizationKey": "authKey", | ||
"authorizationUseStatus": "Available" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
84 changes: 84 additions & 0 deletions
84
...ource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitCreate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"parameters": { | ||
"circuitName": "circuitName", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2017-11-01", | ||
"subscriptionId": "subid", | ||
"parameters": { | ||
"sku": { | ||
"name": "Standard_MeteredData", | ||
"tier": "Standard", | ||
"family": "MeteredData" | ||
}, | ||
"properties": { | ||
"authorizations": [], | ||
"peerings": [], | ||
"allowClassicOperations": false, | ||
"serviceProviderProperties": { | ||
"serviceProviderName": "providerName", | ||
"peeringLocation": "peeringLocation", | ||
"bandwidthInMbps": 200 | ||
} | ||
}, | ||
"location": "West US" | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"name": "circuitName", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName", | ||
"etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
"type": "Microsoft.Network/expressRouteCircuits", | ||
"location": "westus", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"peerings": [], | ||
"authorizations": [], | ||
"serviceProviderProperties": { | ||
"serviceProviderName": "providerName", | ||
"peeringLocation": "peeringLocation", | ||
"bandwidthInMbps": 200 | ||
}, | ||
"circuitProvisioningState": "Enabled", | ||
"allowClassicOperations": false, | ||
"serviceKey": "a1410692-0000-4ceb-b94a-b90b94d398d1", | ||
"serviceProviderProvisioningState": "NotProvisioned" | ||
}, | ||
"sku": { | ||
"name": "Standard_MeteredData", | ||
"tier": "Standard", | ||
"family": "MeteredData" | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "circuitName", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName", | ||
"etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
"type": "Microsoft.Network/expressRouteCircuits", | ||
"location": "westus", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"peerings": [], | ||
"authorizations": [], | ||
"serviceProviderProperties": { | ||
"serviceProviderName": "providerName", | ||
"peeringLocation": "peeringLocation", | ||
"bandwidthInMbps": 200 | ||
}, | ||
"circuitProvisioningState": "Enabled", | ||
"allowClassicOperations": false, | ||
"serviceKey": "a1410692-0000-4ceb-b94a-b90b94d398d1", | ||
"serviceProviderProvisioningState": "NotProvisioned" | ||
}, | ||
"sku": { | ||
"name": "Standard_MeteredData", | ||
"tier": "Standard", | ||
"family": "MeteredData" | ||
} | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"circuitName": "circuitName", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2017-11-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"parameters": { | ||
"circuitName": "circuitName", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2017-11-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "circuitName", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName", | ||
"etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
"type": "Microsoft.Network/expressRouteCircuits", | ||
"location": "westus", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"peerings": [], | ||
"authorizations": [], | ||
"serviceProviderProperties": { | ||
"serviceProviderName": "providerName", | ||
"peeringLocation": "peeringLocation", | ||
"bandwidthInMbps": 200 | ||
}, | ||
"circuitProvisioningState": "Enabled", | ||
"allowClassicOperations": false, | ||
"serviceKey": "a1410692-0000-4ceb-b94a-b90b94d398d1", | ||
"serviceProviderProvisioningState": "NotProvisioned" | ||
}, | ||
"sku": { | ||
"name": "Standard_MeteredData", | ||
"tier": "Standard", | ||
"family": "MeteredData" | ||
} | ||
} | ||
} | ||
} | ||
} |
91 changes: 91 additions & 0 deletions
91
.../Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitListByResourceGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "rg1", | ||
"api-version": "2017-11-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"value": [ | ||
{ | ||
"name": "circuitName1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", | ||
"etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", | ||
"type": "Microsoft.Network/expressRouteCircuits", | ||
"location": "westus", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", | ||
"peerings": [], | ||
"authorizations": [ | ||
{ | ||
"name": "MyAuthorization1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", | ||
"etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"authorizationKey": "authkey", | ||
"authorizationUseStatus": "Available" | ||
} | ||
} | ||
], | ||
"serviceProviderProperties": { | ||
"serviceProviderName": "providerName", | ||
"peeringLocation": "peeringLocation", | ||
"bandwidthInMbps": 200 | ||
}, | ||
"circuitProvisioningState": "Enabled", | ||
"allowClassicOperations": false, | ||
"gatewayManagerEtag": "113", | ||
"serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", | ||
"serviceProviderProvisioningState": "Provisioned" | ||
}, | ||
"sku": { | ||
"name": "Standard_MeteredData", | ||
"tier": "Standard", | ||
"family": "MeteredData" | ||
} | ||
}, | ||
{ | ||
"name": "circuitName2", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", | ||
"etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", | ||
"type": "Microsoft.Network/expressRouteCircuits", | ||
"location": "westus", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", | ||
"peerings": [], | ||
"authorizations": [ | ||
{ | ||
"name": "MyAuthorization2", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", | ||
"etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"authorizationKey": "authkey", | ||
"authorizationUseStatus": "Available" | ||
} | ||
} | ||
], | ||
"serviceProviderProperties": { | ||
"serviceProviderName": "providerName", | ||
"peeringLocation": "peeringLocation", | ||
"bandwidthInMbps": 200 | ||
}, | ||
"circuitProvisioningState": "Enabled", | ||
"allowClassicOperations": false, | ||
"gatewayManagerEtag": "", | ||
"serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", | ||
"serviceProviderProvisioningState": "NotProvisioned" | ||
}, | ||
"sku": { | ||
"name": "Standard_MeteredData", | ||
"tier": "Standard", | ||
"family": "MeteredData" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.