From c34a6317140ac2c0a788725b7ad7ae27b38c226a Mon Sep 17 00:00:00 2001 From: Julia Welborn Date: Fri, 2 Dec 2022 08:35:57 -0800 Subject: [PATCH 1/4] Start updating paths --- .../preview/2022-08-01-preview/RoleManagementAlerts.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json index fe96424d78f7..166ed2147014 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json @@ -34,7 +34,7 @@ } }, "paths": { - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}": { "get": { "tags": [ "Alerts" From 5b309b7ab94cc3214531d5ef7f3630635e1cb4e0 Mon Sep 17 00:00:00 2001 From: Julia Welborn Date: Fri, 2 Dec 2022 08:47:15 -0800 Subject: [PATCH 2/4] update all paths and examples --- .../RoleManagementAlerts.json | 20 ++++++------- .../examples/GetAlertById.json | 14 +++++----- .../examples/GetAlertConfigurationById.json | 4 +-- .../examples/GetAlertConfigurations.json | 16 +++++------ .../examples/GetAlertDefinitionById.json | 4 +-- .../examples/GetAlertDefinitions.json | 16 +++++------ .../examples/GetAlertIncidentById.json | 2 +- .../examples/GetAlertIncidents.json | 2 +- .../examples/GetAlerts.json | 28 +++++++++---------- .../examples/UpdateAlert.json | 14 +++++----- .../examples/UpdateAlertConfiguration.json | 4 +-- 11 files changed, 62 insertions(+), 62 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json index 166ed2147014..8cb9ea9566cb 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json @@ -139,7 +139,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts": { "get": { "tags": [ "Alerts" @@ -183,7 +183,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/refresh": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/refresh": { "post": { "tags": [ "Alerts" @@ -241,7 +241,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/refresh": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/refresh": { "post": { "tags": [ "Alerts" @@ -291,7 +291,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/{alertId}": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations/{alertId}": { "get": { "tags": [ "AlertConfigurations" @@ -396,7 +396,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations": { "get": { "tags": [ "AlertConfigurations" @@ -440,7 +440,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/{alertDefinitionId}": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlertDefinitions/{alertDefinitionId}": { "get": { "tags": [ "AlertDefinitions" @@ -489,7 +489,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlertDefinitions": { "get": { "tags": [ "AlertDefinitions" @@ -533,7 +533,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/alertIncidents/{alertIncidentId}": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents/{alertIncidentId}": { "get": { "tags": [ "AlertIncidents" @@ -590,7 +590,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/alertIncidents": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents": { "get": { "tags": [ "AlertIncidents" @@ -642,7 +642,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/alertIncidents/{alertIncidentId}/remediate": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents/{alertIncidentId}/remediate": { "post": { "tags": [ "AlertIncidents" diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertById.json index c039b8799fd9..cfd18ee1ccad 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertById.json @@ -26,8 +26,8 @@ "isConfigurable": true }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertDefinitions" }, "alertIncidents": [ { @@ -38,7 +38,7 @@ }, "name": "a9f38501-74ec-43ea-8663-6c538602150d", "type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d" } ], "alertConfiguration": { @@ -51,13 +51,13 @@ "thresholdPercentageOfOwnersOutOfAllRoleMembers": 3 }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" } }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alerts" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlerts" } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertConfigurationById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertConfigurationById.json index 7059ce6b9cdb..ea7ecb4fbbea 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertConfigurationById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertConfigurationById.json @@ -16,8 +16,8 @@ "thresholdPercentageOfOwnersOutOfAllRoleMembers": 40 }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertConfigurations.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertConfigurations.json index aca0d8403ae7..c34d499db59a 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertConfigurations.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertConfigurations.json @@ -15,8 +15,8 @@ "isEnabled": true }, "name": "DuplicateRoleCreated", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/DuplicateRoleCreated", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/DuplicateRoleCreated", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" }, { "properties": { @@ -28,8 +28,8 @@ "thresholdPercentageOfOwnersOutOfAllRoleMembers": 3 }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" }, { "properties": { @@ -41,8 +41,8 @@ "thresholdPercentageOfPermanentOwnersOutOfAllOwners": 10 }, "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyPermanentOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" }, { "properties": { @@ -52,8 +52,8 @@ "isEnabled": true }, "name": "AzureRolesAssignedOutsidePimAlert", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/AzureRolesAssignedOutsidePimAlert", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/AzureRolesAssignedOutsidePimAlert", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" } ] } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertDefinitionById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertDefinitionById.json index ab9a7dc9beb4..e9857a01c790 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertDefinitionById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertDefinitionById.json @@ -19,8 +19,8 @@ "isConfigurable": true }, "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyPermanentOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertDefinitions" } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertDefinitions.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertDefinitions.json index de858b4cea61..0f09581cf849 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertDefinitions.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertDefinitions.json @@ -20,8 +20,8 @@ "isConfigurable": true }, "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyPermanentOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertDefinitions" }, { "properties": { @@ -36,8 +36,8 @@ "isConfigurable": true }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertDefinitions" }, { "properties": { @@ -52,8 +52,8 @@ "isConfigurable": false }, "name": "DuplicateRoleCreated", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/DuplicateRoleCreated", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/DuplicateRoleCreated", + "type": "Microsoft.Authorization/roleManagementAlertDefinitions" }, { "properties": { @@ -68,8 +68,8 @@ "isConfigurable": false }, "name": "AzureRolesAssignedOutsidePimAlert", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/AzureRolesAssignedOutsidePimAlert", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/AzureRolesAssignedOutsidePimAlert", + "type": "Microsoft.Authorization/roleManagementAlertDefinitions" } ] } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertIncidentById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertIncidentById.json index 2fa50d25cf39..e3cc22437122 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertIncidentById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertIncidentById.json @@ -14,7 +14,7 @@ "assigneeType": "User" }, "name": "5cf9ee65-d22e-4784-8b17-3de1c3b7bdcc", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyOwnersAssignedToResource/alertIncidents/5cf9ee65-d22e-4784-8b17-3de1c3b7bdcc", + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyOwnersAssignedToResource/alertIncidents/5cf9ee65-d22e-4784-8b17-3de1c3b7bdcc", "type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents" } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertIncidents.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertIncidents.json index 8ed06d75a624..aaa265e35af4 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertIncidents.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertIncidents.json @@ -15,7 +15,7 @@ "assigneeType": "User" }, "name": "5cf9ee65-d22e-4784-8b17-3de1c3b7bdcc", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyOwnersAssignedToResource/alertIncidents/5cf9ee65-d22e-4784-8b17-3de1c3b7bdcc", + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyOwnersAssignedToResource/alertIncidents/5cf9ee65-d22e-4784-8b17-3de1c3b7bdcc", "type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents" } ] diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlerts.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlerts.json index 7d6ae2add74d..3fcc5233cb2a 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlerts.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlerts.json @@ -27,8 +27,8 @@ "isConfigurable": true }, "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyPermanentOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertDefinitions" }, "alertIncidents": [ { @@ -39,7 +39,7 @@ }, "name": "a9f38501-74ec-43ea-8663-6c538602150d", "type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyPermanentOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyPermanentOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d" } ], "alertConfiguration": { @@ -52,13 +52,13 @@ "thresholdPercentageOfPermanentOwnersOutOfAllOwners": 10 }, "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyPermanentOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" } }, "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alerts" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyPermanentOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlerts" }, { "properties": { @@ -80,8 +80,8 @@ "isConfigurable": true }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertDefinitions" }, "alertIncidents": [ { @@ -92,7 +92,7 @@ }, "name": "a9f38501-74ec-43ea-8663-6c538602150d", "type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d" } ], "alertConfiguration": { @@ -105,13 +105,13 @@ "thresholdPercentageOfOwnersOutOfAllRoleMembers": 3 }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" } }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alerts" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlerts" } ] } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlert.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlert.json index c146529e8837..84eead67ac88 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlert.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlert.json @@ -31,8 +31,8 @@ "isConfigurable": true }, "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyPermanentOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertDefinitions" }, "alertIncidents": [ { @@ -43,7 +43,7 @@ }, "name": "a9f38501-74ec-43ea-8663-6c538602150d", "type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyPermanentOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyPermanentOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d" } ], "alertConfiguration": { @@ -56,13 +56,13 @@ "thresholdPercentageOfPermanentOwnersOutOfAllOwners": 10 }, "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyPermanentOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" } }, "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alerts" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyPermanentOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlerts" } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlertConfiguration.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlertConfiguration.json index d736f8ba8a26..65ec55021833 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlertConfiguration.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlertConfiguration.json @@ -23,8 +23,8 @@ "thresholdPercentageOfOwnersOutOfAllRoleMembers": 3 }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" } } } From f48e3a685bceddb5a38c917735f7a454c28eb8e7 Mon Sep 17 00:00:00 2001 From: Julia Welborn Date: Fri, 2 Dec 2022 08:54:06 -0800 Subject: [PATCH 3/4] Change patch operations to 204 instead of 200 --- .../RoleManagementAlerts.json | 14 ++--- .../examples/UpdateAlert.json | 56 +------------------ .../examples/UpdateAlertConfiguration.json | 16 +----- 3 files changed, 6 insertions(+), 80 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json index 8cb9ea9566cb..0e846d6c93ef 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json @@ -119,11 +119,8 @@ } ], "responses": { - "200": { - "description": "OK - Returns information about the updated alert.", - "schema": { - "$ref": "#/definitions/Alert" - } + "204": { + "description": "NoContent - Successfully updated the alert." }, "default": { "description": "Error response describing why the operation failed.", @@ -376,11 +373,8 @@ } ], "responses": { - "200": { - "description": "OK - Returns information about the updated alert configuration.", - "schema": { - "$ref": "#/definitions/AlertConfiguration" - } + "204": { + "description": "NoContent - Successfully updated the alert." }, "default": { "description": "Error response describing why the operation failed.", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlert.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlert.json index 84eead67ac88..4f32d78ff079 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlert.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlert.json @@ -10,60 +10,6 @@ } }, "responses": { - "200": { - "body": { - "properties": { - "scope": "subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f", - "incidentCount": 1, - "lastModifiedDateTime": "2022-04-05T03:04:06.467+00:00", - "lastScannedDateTime": "2022-04-06T18:25:00.38+00:00", - "isActive": false, - "alertDefinition": { - "properties": { - "displayName": "Too many permanent owners assigned to a resource", - "scope": "subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f", - "description": "The number of users set to never expire is too high. To enhance the security of your resources, we recommend requiring activation for role use. Take a moment to review the list of users, and suggested changes here.", - "severityLevel": "Medium", - "securityImpact": "Providing users permanent access in a role may leave resources vulnerable to accidental or malicious activity.", - "mitigationSteps": "To mitigate this issue, require the user to activate the role before use.", - "howToPrevent": "Enable “Activation Required” in the role settings menu. This will ensure newly added users must activate their role.", - "isRemediatable": true, - "isConfigurable": true - }, - "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlertDefinitions" - }, - "alertIncidents": [ - { - "properties": { - "alertIncidentType": "TooManyPermanentOwnersAssignedToResourceAlertIncident", - "assigneeName": "testUser", - "assigneeType": "User" - }, - "name": "a9f38501-74ec-43ea-8663-6c538602150d", - "type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyPermanentOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d" - } - ], - "alertConfiguration": { - "properties": { - "alertConfigurationType": "TooManyPermanentOwnersAssignedToResourceAlertConfiguration", - "alertDefinitionId": "TooManyPermanentOwnersAssignedToResource", - "scope": "subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f", - "isEnabled": true, - "thresholdNumberOfPermanentOwners": 10, - "thresholdPercentageOfPermanentOwnersOutOfAllOwners": 10 - }, - "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlertConfigurations" - } - }, - "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts" - } - } + "204": {} } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlertConfiguration.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlertConfiguration.json index 65ec55021833..7e40bdf61266 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlertConfiguration.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlertConfiguration.json @@ -12,20 +12,6 @@ } }, "responses": { - "200": { - "body": { - "properties": { - "alertConfigurationType": "TooManyOwnersAssignedToResourceAlertConfiguration", - "alertDefinitionId": "TooManyOwnersAssignedToResource", - "scope": "subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f", - "isEnabled": true, - "thresholdNumberOfOwners": 2, - "thresholdPercentageOfOwnersOutOfAllRoleMembers": 3 - }, - "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlertConfigurations" - } - } + "204": {} } } From e0f40fd9932274282af34643aaf64d1e6f8d0cc5 Mon Sep 17 00:00:00 2001 From: Julia Welborn Date: Fri, 2 Dec 2022 09:03:29 -0800 Subject: [PATCH 4/4] Update operations paths --- .../preview/2022-08-01-preview/RoleManagementAlerts.json | 4 ++-- .../preview/2022-08-01-preview/examples/RefreshAlert.json | 2 +- .../preview/2022-08-01-preview/examples/RefreshAllAlerts.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json index 0e846d6c93ef..fc5f10405394 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json @@ -690,7 +690,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/operations/{operationId}": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlertOperations/{operationId}": { "get": { "tags": [ "AlertOperations" @@ -739,7 +739,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/operations": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlertOperations": { "get": { "tags": [ "AlertOperations" diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json index 78243c6886ac..f05718a689d8 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json @@ -7,7 +7,7 @@ "responses": { "202": { "headers": { - "Location": "https://management.azure.com/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/operations/{operationId}?api-version=2022-04-01-preview" + "Location": "https://management.azure.com/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertOperations/{operationId}?api-version=2022-04-01-preview" }, "body": { "id": "{operationId}", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAllAlerts.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAllAlerts.json index c8d55d2349d6..b4308eae67e0 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAllAlerts.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAllAlerts.json @@ -6,7 +6,7 @@ "responses": { "202": { "headers": { - "Location": "https://management.azure.com/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/operations/{operationId}?api-version=2022-04-01-preview" + "Location": "https://management.azure.com/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertOperations/{operationId}?api-version=2022-04-01-preview" }, "body": { "id": "{operationId}",