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.
Adding express route port authorization apis (Azure#10491)
* 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
Showing
7 changed files
with
441 additions
and
0 deletions.
There are no files selected for viewing
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
40 changes: 40 additions & 0 deletions
40
...ger/Microsoft.Network/stable/2020-07-01/examples/ExpressRoutePortAuthorizationCreate.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,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" | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ger/Microsoft.Network/stable/2020-07-01/examples/ExpressRoutePortAuthorizationDelete.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,14 @@ | ||
{ | ||
"parameters": { | ||
"expressRoutePortName": "expressRoutePortName", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-07-01", | ||
"subscriptionId": "subid", | ||
"authorizationName": "authorizationName" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...anager/Microsoft.Network/stable/2020-07-01/examples/ExpressRoutePortAuthorizationGet.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,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" | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...nager/Microsoft.Network/stable/2020-07-01/examples/ExpressRoutePortAuthorizationList.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,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" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.