Skip to content

Commit

Permalink
Adding express route port authorization apis (Azure#10491)
Browse files Browse the repository at this point in the history
* Adding express route port authorization apis

* adding left out changes for prev commit

* adding left out changes for prev commit

* removing name as its handled by upper class

* fixing model validation

* making port auth key read only

* making enum unique

* making authorizations child resource only

* part of last commit

* fixing last commit

* fixing last commit

* removing child resource authorizations from parent port request and response
  • Loading branch information
utbarn-ms authored Aug 28, 2020
1 parent ae2f4a2 commit 29a80fe
Show file tree
Hide file tree
Showing 7 changed files with 441 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"expressRoutePort": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName"
},
"authorizationKey": "b0be57f5-1fba-463b-adec-ffe767354cdd",
"bandwidthInGbps": 10
}
}
Expand All @@ -34,6 +35,7 @@
"expressRoutePort": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName"
},
"authorizationKey": "b0be57f5-1fba-463b-adec-ffe767354cdd",
"bandwidthInGbps": 10,
"circuitProvisioningState": "Enabled",
"allowClassicOperations": false,
Expand Down Expand Up @@ -61,6 +63,7 @@
"expressRoutePort": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName"
},
"authorizationKey": "b0be57f5-1fba-463b-adec-ffe767354cdd",
"bandwidthInGbps": 10,
"circuitProvisioningState": "Enabled",
"allowClassicOperations": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"expressRoutePortName": "expressRoutePortName",
"resourceGroupName": "rg1",
"authorizationName": "authorizatinName",
"api-version": "2020-07-01",
"subscriptionId": "subid",
"authorizationParameters": {
"properties": {}
}
},
"responses": {
"201": {
"body": {
"name": "authorizationName",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ExpressRoutePorts/expressRoutePortName/authorizations/authorizationName",
"etag": "W/\"e22dd4b2-4c24-44cf-b702-70a472b62914\"",
"properties": {
"provisioningState": "Updating",
"authorizationUseStatus": "Available",
"circuit": ""
},
"type": "Microsoft.Network/expressRoutePorts/authorizations"
}
},
"200": {
"body": {
"name": "authorizationName",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ExpressRoutePorts/expressRoutePortName/authorizations/authorizationName",
"etag": "W/\"e22dd4b2-4c24-44cf-b702-70a472b62914\"",
"properties": {
"provisioningState": "Updating",
"authorizationUseStatus": "Available",
"circuit": ""
},
"type": "Microsoft.Network/expressRoutePorts/authorizations"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"expressRoutePortName": "expressRoutePortName",
"resourceGroupName": "rg1",
"api-version": "2020-07-01",
"subscriptionId": "subid",
"authorizationName": "authorizationName"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"expressRoutePortName": "expressRoutePortName",
"resourceGroupName": "rg1",
"api-version": "2020-07-01",
"subscriptionId": "subid",
"authorizationName": "authorizationName"
},
"responses": {
"200": {
"body": {
"name": "authorizationName",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ExpressRoutePorts/expressRoutePortName/authorizations/authorizationName",
"etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"",
"properties": {
"provisioningState": "Succeeded",
"authorizationKey": "authKey",
"authorizationUseStatus": "Available",
"circuit": ""
},
"type": "Microsoft.Network/expressRoutePorts/authorizations"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"expressRoutePortName": "expressRoutePortName",
"resourceGroupName": "rg1",
"api-version": "2020-07-01",
"subscriptionId": "subid"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "authorizationName",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ExpressRoutePorts/expressRoutePortName/authorizations/authorizationName",
"etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"",
"properties": {
"provisioningState": "Succeeded",
"authorizationKey": "authKey",
"authorizationUseStatus": "Available",
"circuit": ""
},
"type": "Microsoft.Network/expressRoutePorts/authorizations"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2239,6 +2239,10 @@
"globalReachEnabled": {
"type": "boolean",
"description": "Flag denoting global reach status."
},
"authorizationKey": {
"type": "string",
"description": "The authorizationKey."
}
},
"description": "Properties of ExpressRouteCircuit."
Expand Down
Loading

0 comments on commit 29a80fe

Please sign in to comment.