Skip to content

Commit bf8f54c

Browse files
authored
Update RoleManagementAlerts paths (#21735)
* Start updating paths * update all paths and examples * Change patch operations to 204 instead of 200 * Update operations paths
1 parent d89e212 commit bf8f54c

File tree

13 files changed

+64
-138
lines changed

13 files changed

+64
-138
lines changed

specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535
},
3636
"paths": {
37-
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}": {
37+
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}": {
3838
"get": {
3939
"tags": [
4040
"Alerts"
@@ -119,11 +119,8 @@
119119
}
120120
],
121121
"responses": {
122-
"200": {
123-
"description": "OK - Returns information about the updated alert.",
124-
"schema": {
125-
"$ref": "#/definitions/Alert"
126-
}
122+
"204": {
123+
"description": "NoContent - Successfully updated the alert."
127124
},
128125
"default": {
129126
"description": "Error response describing why the operation failed.",
@@ -139,7 +136,7 @@
139136
}
140137
}
141138
},
142-
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts": {
139+
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts": {
143140
"get": {
144141
"tags": [
145142
"Alerts"
@@ -183,7 +180,7 @@
183180
}
184181
}
185182
},
186-
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/refresh": {
183+
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/refresh": {
187184
"post": {
188185
"tags": [
189186
"Alerts"
@@ -241,7 +238,7 @@
241238
}
242239
}
243240
},
244-
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/refresh": {
241+
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/refresh": {
245242
"post": {
246243
"tags": [
247244
"Alerts"
@@ -291,7 +288,7 @@
291288
}
292289
}
293290
},
294-
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/{alertId}": {
291+
"/{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations/{alertId}": {
295292
"get": {
296293
"tags": [
297294
"AlertConfigurations"
@@ -376,11 +373,8 @@
376373
}
377374
],
378375
"responses": {
379-
"200": {
380-
"description": "OK - Returns information about the updated alert configuration.",
381-
"schema": {
382-
"$ref": "#/definitions/AlertConfiguration"
383-
}
376+
"204": {
377+
"description": "NoContent - Successfully updated the alert."
384378
},
385379
"default": {
386380
"description": "Error response describing why the operation failed.",
@@ -396,7 +390,7 @@
396390
}
397391
}
398392
},
399-
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations": {
393+
"/{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations": {
400394
"get": {
401395
"tags": [
402396
"AlertConfigurations"
@@ -440,7 +434,7 @@
440434
}
441435
}
442436
},
443-
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/{alertDefinitionId}": {
437+
"/{scope}/providers/Microsoft.Authorization/roleManagementAlertDefinitions/{alertDefinitionId}": {
444438
"get": {
445439
"tags": [
446440
"AlertDefinitions"
@@ -489,7 +483,7 @@
489483
}
490484
}
491485
},
492-
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions": {
486+
"/{scope}/providers/Microsoft.Authorization/roleManagementAlertDefinitions": {
493487
"get": {
494488
"tags": [
495489
"AlertDefinitions"
@@ -533,7 +527,7 @@
533527
}
534528
}
535529
},
536-
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/alertIncidents/{alertIncidentId}": {
530+
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents/{alertIncidentId}": {
537531
"get": {
538532
"tags": [
539533
"AlertIncidents"
@@ -590,7 +584,7 @@
590584
}
591585
}
592586
},
593-
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/alertIncidents": {
587+
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents": {
594588
"get": {
595589
"tags": [
596590
"AlertIncidents"
@@ -642,7 +636,7 @@
642636
}
643637
}
644638
},
645-
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/alertIncidents/{alertIncidentId}/remediate": {
639+
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents/{alertIncidentId}/remediate": {
646640
"post": {
647641
"tags": [
648642
"AlertIncidents"
@@ -696,7 +690,7 @@
696690
}
697691
}
698692
},
699-
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/operations/{operationId}": {
693+
"/{scope}/providers/Microsoft.Authorization/roleManagementAlertOperations/{operationId}": {
700694
"get": {
701695
"tags": [
702696
"AlertOperations"
@@ -745,7 +739,7 @@
745739
}
746740
}
747741
},
748-
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/operations": {
742+
"/{scope}/providers/Microsoft.Authorization/roleManagementAlertOperations": {
749743
"get": {
750744
"tags": [
751745
"AlertOperations"

specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertById.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"isConfigurable": true
2727
},
2828
"name": "TooManyOwnersAssignedToResource",
29-
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/TooManyOwnersAssignedToResource",
30-
"type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions"
29+
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyOwnersAssignedToResource",
30+
"type": "Microsoft.Authorization/roleManagementAlertDefinitions"
3131
},
3232
"alertIncidents": [
3333
{
@@ -38,7 +38,7 @@
3838
},
3939
"name": "a9f38501-74ec-43ea-8663-6c538602150d",
4040
"type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents",
41-
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d"
41+
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d"
4242
}
4343
],
4444
"alertConfiguration": {
@@ -51,13 +51,13 @@
5151
"thresholdPercentageOfOwnersOutOfAllRoleMembers": 3
5252
},
5353
"name": "TooManyOwnersAssignedToResource",
54-
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyOwnersAssignedToResource",
55-
"type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations"
54+
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyOwnersAssignedToResource",
55+
"type": "Microsoft.Authorization/roleManagementAlertConfigurations"
5656
}
5757
},
5858
"name": "TooManyOwnersAssignedToResource",
59-
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyOwnersAssignedToResource",
60-
"type": "Microsoft.Authorization/roleManagementAlerts/alerts"
59+
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyOwnersAssignedToResource",
60+
"type": "Microsoft.Authorization/roleManagementAlerts"
6161
}
6262
}
6363
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertConfigurationById.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"thresholdPercentageOfOwnersOutOfAllRoleMembers": 40
1717
},
1818
"name": "TooManyOwnersAssignedToResource",
19-
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyOwnersAssignedToResource",
20-
"type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations"
19+
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyOwnersAssignedToResource",
20+
"type": "Microsoft.Authorization/roleManagementAlertConfigurations"
2121
}
2222
}
2323
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertConfigurations.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"isEnabled": true
1616
},
1717
"name": "DuplicateRoleCreated",
18-
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/DuplicateRoleCreated",
19-
"type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations"
18+
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/DuplicateRoleCreated",
19+
"type": "Microsoft.Authorization/roleManagementAlertConfigurations"
2020
},
2121
{
2222
"properties": {
@@ -28,8 +28,8 @@
2828
"thresholdPercentageOfOwnersOutOfAllRoleMembers": 3
2929
},
3030
"name": "TooManyOwnersAssignedToResource",
31-
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyOwnersAssignedToResource",
32-
"type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations"
31+
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyOwnersAssignedToResource",
32+
"type": "Microsoft.Authorization/roleManagementAlertConfigurations"
3333
},
3434
{
3535
"properties": {
@@ -41,8 +41,8 @@
4141
"thresholdPercentageOfPermanentOwnersOutOfAllOwners": 10
4242
},
4343
"name": "TooManyPermanentOwnersAssignedToResource",
44-
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyPermanentOwnersAssignedToResource",
45-
"type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations"
44+
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyPermanentOwnersAssignedToResource",
45+
"type": "Microsoft.Authorization/roleManagementAlertConfigurations"
4646
},
4747
{
4848
"properties": {
@@ -52,8 +52,8 @@
5252
"isEnabled": true
5353
},
5454
"name": "AzureRolesAssignedOutsidePimAlert",
55-
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/AzureRolesAssignedOutsidePimAlert",
56-
"type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations"
55+
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/AzureRolesAssignedOutsidePimAlert",
56+
"type": "Microsoft.Authorization/roleManagementAlertConfigurations"
5757
}
5858
]
5959
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertDefinitionById.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"isConfigurable": true
2020
},
2121
"name": "TooManyPermanentOwnersAssignedToResource",
22-
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/TooManyPermanentOwnersAssignedToResource",
23-
"type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions"
22+
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyPermanentOwnersAssignedToResource",
23+
"type": "Microsoft.Authorization/roleManagementAlertDefinitions"
2424
}
2525
}
2626
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertDefinitions.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"isConfigurable": true
2121
},
2222
"name": "TooManyPermanentOwnersAssignedToResource",
23-
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/TooManyPermanentOwnersAssignedToResource",
24-
"type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions"
23+
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyPermanentOwnersAssignedToResource",
24+
"type": "Microsoft.Authorization/roleManagementAlertDefinitions"
2525
},
2626
{
2727
"properties": {
@@ -36,8 +36,8 @@
3636
"isConfigurable": true
3737
},
3838
"name": "TooManyOwnersAssignedToResource",
39-
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/TooManyOwnersAssignedToResource",
40-
"type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions"
39+
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyOwnersAssignedToResource",
40+
"type": "Microsoft.Authorization/roleManagementAlertDefinitions"
4141
},
4242
{
4343
"properties": {
@@ -52,8 +52,8 @@
5252
"isConfigurable": false
5353
},
5454
"name": "DuplicateRoleCreated",
55-
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/DuplicateRoleCreated",
56-
"type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions"
55+
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/DuplicateRoleCreated",
56+
"type": "Microsoft.Authorization/roleManagementAlertDefinitions"
5757
},
5858
{
5959
"properties": {
@@ -68,8 +68,8 @@
6868
"isConfigurable": false
6969
},
7070
"name": "AzureRolesAssignedOutsidePimAlert",
71-
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/AzureRolesAssignedOutsidePimAlert",
72-
"type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions"
71+
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/AzureRolesAssignedOutsidePimAlert",
72+
"type": "Microsoft.Authorization/roleManagementAlertDefinitions"
7373
}
7474
]
7575
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertIncidentById.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"assigneeType": "User"
1515
},
1616
"name": "5cf9ee65-d22e-4784-8b17-3de1c3b7bdcc",
17-
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyOwnersAssignedToResource/alertIncidents/5cf9ee65-d22e-4784-8b17-3de1c3b7bdcc",
17+
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyOwnersAssignedToResource/alertIncidents/5cf9ee65-d22e-4784-8b17-3de1c3b7bdcc",
1818
"type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents"
1919
}
2020
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertIncidents.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"assigneeType": "User"
1616
},
1717
"name": "5cf9ee65-d22e-4784-8b17-3de1c3b7bdcc",
18-
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyOwnersAssignedToResource/alertIncidents/5cf9ee65-d22e-4784-8b17-3de1c3b7bdcc",
18+
"id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyOwnersAssignedToResource/alertIncidents/5cf9ee65-d22e-4784-8b17-3de1c3b7bdcc",
1919
"type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents"
2020
}
2121
]

0 commit comments

Comments
 (0)