-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add examples and default responses in locks * fix management * fix management * remove default error responses per KPI owner guidance
- Loading branch information
Showing
18 changed files
with
479 additions
and
4 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...ce-manager/Microsoft.Authorization/stable/2016-09-01/examples/ListProviderOperations.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": { | ||
"api-version": "2016-09-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.Authorization/locks/read", | ||
"display": { | ||
"provider": "Microsoft.Authorization", | ||
"resource": "locks", | ||
"operation": "read" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...zation/stable/2016-09-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.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,35 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscriptionId", | ||
"resourceGroupName": "resourcegroupname", | ||
"lockName": "testlock", | ||
"api-version": "2016-09-01", | ||
"parameters": { | ||
"properties": { | ||
"level": "ReadOnly" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"level": "ReadOnly" | ||
}, | ||
"id": "/providers/Microsoft.Authorization/locks/testlock", | ||
"type": "Microsoft.Authorization/locks", | ||
"name": "testlock" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"level": "ReadOnly" | ||
}, | ||
"id": "/providers/Microsoft.Authorization/locks/testlock", | ||
"type": "Microsoft.Authorization/locks", | ||
"name": "testlock" | ||
} | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...thorization/stable/2016-09-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.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": { | ||
"subscriptionId": "subscriptionId", | ||
"resourceGroupName": "resourcegroupname", | ||
"resourceProviderNamespace": "Microsoft.Storage", | ||
"parentResourcePath": "parentResourcePath", | ||
"resourceType": "storageAccounts", | ||
"resourceName": "teststorageaccount", | ||
"lockName": "testlock", | ||
"api-version": "2016-09-01", | ||
"parameters": { | ||
"properties": { | ||
"level": "ReadOnly" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"level": "ReadOnly" | ||
}, | ||
"id": "/providers/Microsoft.Authorization/locks/testlock", | ||
"type": "Microsoft.Authorization/locks", | ||
"name": "testlock" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"level": "ReadOnly" | ||
}, | ||
"id": "/providers/Microsoft.Authorization/locks/testlock", | ||
"type": "Microsoft.Authorization/locks", | ||
"name": "testlock" | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...osoft.Authorization/stable/2016-09-01/examples/ManagementLocks_CreateOrUpdateAtScope.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,34 @@ | ||
{ | ||
"parameters": { | ||
"scope": "subscriptions/subscriptionId", | ||
"lockName": "testlock", | ||
"api-version": "2016-09-01", | ||
"parameters": { | ||
"properties": { | ||
"level": "ReadOnly" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"level": "ReadOnly" | ||
}, | ||
"id": "/providers/Microsoft.Authorization/locks/testlock", | ||
"type": "Microsoft.Authorization/locks", | ||
"name": "testlock" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"level": "ReadOnly" | ||
}, | ||
"id": "/providers/Microsoft.Authorization/locks/testlock", | ||
"type": "Microsoft.Authorization/locks", | ||
"name": "testlock" | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...ization/stable/2016-09-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.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,34 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscriptionId", | ||
"lockName": "testlock", | ||
"api-version": "2016-09-01", | ||
"parameters": { | ||
"properties": { | ||
"level": "ReadOnly" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"level": "ReadOnly" | ||
}, | ||
"id": "/providers/Microsoft.Authorization/locks/testlock", | ||
"type": "Microsoft.Authorization/locks", | ||
"name": "testlock" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"level": "ReadOnly" | ||
}, | ||
"id": "/providers/Microsoft.Authorization/locks/testlock", | ||
"type": "Microsoft.Authorization/locks", | ||
"name": "testlock" | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
....Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.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,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscriptionId", | ||
"resourceGroupName": "resourcegroupname", | ||
"lockName": "testlock", | ||
"api-version": "2016-09-01" | ||
}, | ||
"responses": { | ||
"204": {}, | ||
"200": {} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...osoft.Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtResourceLevel.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,16 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscriptionId", | ||
"resourceGroupName": "resourcegroupname", | ||
"resourceProviderNamespace": "Microsoft.Storage", | ||
"parentResourcePath": "parentResourcePath", | ||
"resourceType": "storageAccounts", | ||
"resourceName": "teststorageaccount", | ||
"lockName": "testlock", | ||
"api-version": "2016-09-01" | ||
}, | ||
"responses": { | ||
"204": {}, | ||
"200": {} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...ger/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtScope.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,11 @@ | ||
{ | ||
"parameters": { | ||
"scope": "subscriptions/subscriptionId", | ||
"lockName": "testlock", | ||
"api-version": "2016-09-01" | ||
}, | ||
"responses": { | ||
"204": {}, | ||
"200": {} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...t.Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.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,11 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscriptionId", | ||
"lockName": "testlock", | ||
"api-version": "2016-09-01" | ||
}, | ||
"responses": { | ||
"204": {}, | ||
"200": {} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...oft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtResourceGroupLevel.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": { | ||
"subscriptionId": "subscriptionId", | ||
"resourceGroupName": "resourcegroupname", | ||
"lockName": "testlock", | ||
"api-version": "2016-09-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"level": "ReadOnly" | ||
}, | ||
"id": "/providers/Microsoft.Authorization/locks/testlock", | ||
"type": "Microsoft.Authorization/locks", | ||
"name": "testlock" | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...icrosoft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtResourceLevel.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": { | ||
"subscriptionId": "subscriptionId", | ||
"resourceGroupName": "resourcegroupname", | ||
"resourceProviderNamespace": "Microsoft.Storage", | ||
"parentResourcePath": "parentResourcePath", | ||
"resourceType": "storageAccounts", | ||
"resourceName": "teststorageaccount", | ||
"lockName": "testlock", | ||
"api-version": "2016-09-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"level": "ReadOnly" | ||
}, | ||
"id": "/providers/Microsoft.Authorization/locks/testlock", | ||
"type": "Microsoft.Authorization/locks", | ||
"name": "testlock" | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...anager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtScope.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,19 @@ | ||
{ | ||
"parameters": { | ||
"scope": "subscriptions/subscriptionId", | ||
"lockName": "testlock", | ||
"api-version": "2016-09-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"level": "ReadOnly" | ||
}, | ||
"id": "/providers/Microsoft.Authorization/locks/testlock", | ||
"type": "Microsoft.Authorization/locks", | ||
"name": "testlock" | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...soft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtSubscriptionLevel.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": { | ||
"subscriptionId": "subscriptionId", | ||
"resourceGroupName": "resourcegroupname", | ||
"lockName": "testlock", | ||
"api-version": "2016-09-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"level": "ReadOnly" | ||
}, | ||
"id": "/providers/Microsoft.Authorization/locks/testlock", | ||
"type": "Microsoft.Authorization/locks", | ||
"name": "testlock" | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...ft.Authorization/stable/2016-09-01/examples/ManagementLocks_ListAtResourceGroupLevel.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,23 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscriptionId", | ||
"resourceGroupName": "resourcegroupname", | ||
"api-version": "2016-09-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"level": "ReadOnly" | ||
}, | ||
"id": "/providers/Microsoft.Authorization/locks/testlock", | ||
"type": "Microsoft.Authorization/locks", | ||
"name": "testlock" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...crosoft.Authorization/stable/2016-09-01/examples/ManagementLocks_ListAtResourceLevel.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,27 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscriptionId", | ||
"resourceGroupName": "resourcegroupname", | ||
"resourceProviderNamespace": "Microsoft.Storage", | ||
"parentResourcePath": "parentResourcePath", | ||
"resourceType": "storageAccounts", | ||
"resourceName": "teststorageaccount", | ||
"api-version": "2016-09-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"level": "ReadOnly" | ||
}, | ||
"id": "/providers/Microsoft.Authorization/locks/testlock", | ||
"type": "Microsoft.Authorization/locks", | ||
"name": "testlock" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...nager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_ListAtScope.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,22 @@ | ||
{ | ||
"parameters": { | ||
"scope": "subscriptions/subscriptionId", | ||
"api-version": "2016-09-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"level": "ReadOnly" | ||
}, | ||
"id": "/providers/Microsoft.Authorization/locks/testlock", | ||
"type": "Microsoft.Authorization/locks", | ||
"name": "testlock" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.