Skip to content

Commit

Permalink
Add examples for Express Route Circuit APIs (Azure#3182)
Browse files Browse the repository at this point in the history
* Add examples for Express Route Circuit APIs

* Fix errors in expressRouteCircuit.json validations

* Fix errors in validate examples for ExR Circuit
  • Loading branch information
gimotwanMSFT authored and EvgenyAgafonchikov committed Jun 19, 2018
1 parent d5508a8 commit 9cb0ed8
Show file tree
Hide file tree
Showing 20 changed files with 887 additions and 13 deletions.
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"
}
]
}
}
}
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"
}
}
}
}
}
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":{

}
}
}
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"
}
}
}
}
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"
}
}
]
}
}
}
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"
}
}
}
}
}
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": {}
}
}
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"
}
}
}
}
}
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"
}
}
]
}
}
}
Loading

0 comments on commit 9cb0ed8

Please sign in to comment.