Skip to content

Commit be1d938

Browse files
authored
Auth locks examples (#13326)
* add examples and default responses in locks * fix management * fix management * remove default error responses per KPI owner guidance
1 parent 31dac82 commit be1d938

18 files changed

+479
-4
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parameters": {
3+
"api-version": "2016-09-01"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"name": "Microsoft.Authorization/locks/read",
11+
"display": {
12+
"provider": "Microsoft.Authorization",
13+
"resource": "locks",
14+
"operation": "read"
15+
}
16+
}
17+
]
18+
}
19+
}
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subscriptionId",
4+
"resourceGroupName": "resourcegroupname",
5+
"lockName": "testlock",
6+
"api-version": "2016-09-01",
7+
"parameters": {
8+
"properties": {
9+
"level": "ReadOnly"
10+
}
11+
}
12+
},
13+
"responses": {
14+
"201": {
15+
"body": {
16+
"properties": {
17+
"level": "ReadOnly"
18+
},
19+
"id": "/providers/Microsoft.Authorization/locks/testlock",
20+
"type": "Microsoft.Authorization/locks",
21+
"name": "testlock"
22+
}
23+
},
24+
"200": {
25+
"body": {
26+
"properties": {
27+
"level": "ReadOnly"
28+
},
29+
"id": "/providers/Microsoft.Authorization/locks/testlock",
30+
"type": "Microsoft.Authorization/locks",
31+
"name": "testlock"
32+
}
33+
}
34+
}
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subscriptionId",
4+
"resourceGroupName": "resourcegroupname",
5+
"resourceProviderNamespace": "Microsoft.Storage",
6+
"parentResourcePath": "parentResourcePath",
7+
"resourceType": "storageAccounts",
8+
"resourceName": "teststorageaccount",
9+
"lockName": "testlock",
10+
"api-version": "2016-09-01",
11+
"parameters": {
12+
"properties": {
13+
"level": "ReadOnly"
14+
}
15+
}
16+
},
17+
"responses": {
18+
"201": {
19+
"body": {
20+
"properties": {
21+
"level": "ReadOnly"
22+
},
23+
"id": "/providers/Microsoft.Authorization/locks/testlock",
24+
"type": "Microsoft.Authorization/locks",
25+
"name": "testlock"
26+
}
27+
},
28+
"200": {
29+
"body": {
30+
"properties": {
31+
"level": "ReadOnly"
32+
},
33+
"id": "/providers/Microsoft.Authorization/locks/testlock",
34+
"type": "Microsoft.Authorization/locks",
35+
"name": "testlock"
36+
}
37+
}
38+
}
39+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parameters": {
3+
"scope": "subscriptions/subscriptionId",
4+
"lockName": "testlock",
5+
"api-version": "2016-09-01",
6+
"parameters": {
7+
"properties": {
8+
"level": "ReadOnly"
9+
}
10+
}
11+
},
12+
"responses": {
13+
"201": {
14+
"body": {
15+
"properties": {
16+
"level": "ReadOnly"
17+
},
18+
"id": "/providers/Microsoft.Authorization/locks/testlock",
19+
"type": "Microsoft.Authorization/locks",
20+
"name": "testlock"
21+
}
22+
},
23+
"200": {
24+
"body": {
25+
"properties": {
26+
"level": "ReadOnly"
27+
},
28+
"id": "/providers/Microsoft.Authorization/locks/testlock",
29+
"type": "Microsoft.Authorization/locks",
30+
"name": "testlock"
31+
}
32+
}
33+
}
34+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subscriptionId",
4+
"lockName": "testlock",
5+
"api-version": "2016-09-01",
6+
"parameters": {
7+
"properties": {
8+
"level": "ReadOnly"
9+
}
10+
}
11+
},
12+
"responses": {
13+
"201": {
14+
"body": {
15+
"properties": {
16+
"level": "ReadOnly"
17+
},
18+
"id": "/providers/Microsoft.Authorization/locks/testlock",
19+
"type": "Microsoft.Authorization/locks",
20+
"name": "testlock"
21+
}
22+
},
23+
"200": {
24+
"body": {
25+
"properties": {
26+
"level": "ReadOnly"
27+
},
28+
"id": "/providers/Microsoft.Authorization/locks/testlock",
29+
"type": "Microsoft.Authorization/locks",
30+
"name": "testlock"
31+
}
32+
}
33+
}
34+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subscriptionId",
4+
"resourceGroupName": "resourcegroupname",
5+
"lockName": "testlock",
6+
"api-version": "2016-09-01"
7+
},
8+
"responses": {
9+
"204": {},
10+
"200": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subscriptionId",
4+
"resourceGroupName": "resourcegroupname",
5+
"resourceProviderNamespace": "Microsoft.Storage",
6+
"parentResourcePath": "parentResourcePath",
7+
"resourceType": "storageAccounts",
8+
"resourceName": "teststorageaccount",
9+
"lockName": "testlock",
10+
"api-version": "2016-09-01"
11+
},
12+
"responses": {
13+
"204": {},
14+
"200": {}
15+
}
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"scope": "subscriptions/subscriptionId",
4+
"lockName": "testlock",
5+
"api-version": "2016-09-01"
6+
},
7+
"responses": {
8+
"204": {},
9+
"200": {}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subscriptionId",
4+
"lockName": "testlock",
5+
"api-version": "2016-09-01"
6+
},
7+
"responses": {
8+
"204": {},
9+
"200": {}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subscriptionId",
4+
"resourceGroupName": "resourcegroupname",
5+
"lockName": "testlock",
6+
"api-version": "2016-09-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"properties": {
12+
"level": "ReadOnly"
13+
},
14+
"id": "/providers/Microsoft.Authorization/locks/testlock",
15+
"type": "Microsoft.Authorization/locks",
16+
"name": "testlock"
17+
}
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)