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..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 @@ -34,7 +34,7 @@ } }, "paths": { - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}": { "get": { "tags": [ "Alerts" @@ -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.", @@ -139,7 +136,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts": { "get": { "tags": [ "Alerts" @@ -183,7 +180,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/refresh": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/refresh": { "post": { "tags": [ "Alerts" @@ -241,7 +238,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/refresh": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/refresh": { "post": { "tags": [ "Alerts" @@ -291,7 +288,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/{alertId}": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations/{alertId}": { "get": { "tags": [ "AlertConfigurations" @@ -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.", @@ -396,7 +390,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations": { "get": { "tags": [ "AlertConfigurations" @@ -440,7 +434,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/{alertDefinitionId}": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlertDefinitions/{alertDefinitionId}": { "get": { "tags": [ "AlertDefinitions" @@ -489,7 +483,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlertDefinitions": { "get": { "tags": [ "AlertDefinitions" @@ -533,7 +527,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/alertIncidents/{alertIncidentId}": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents/{alertIncidentId}": { "get": { "tags": [ "AlertIncidents" @@ -590,7 +584,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/alertIncidents": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents": { "get": { "tags": [ "AlertIncidents" @@ -642,7 +636,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/alertIncidents/{alertIncidentId}/remediate": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents/{alertIncidentId}/remediate": { "post": { "tags": [ "AlertIncidents" @@ -696,7 +690,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/operations/{operationId}": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlertOperations/{operationId}": { "get": { "tags": [ "AlertOperations" @@ -745,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/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/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}", 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..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/roleManagementAlerts/alertDefinitions/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" - }, - "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/alerts/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/roleManagementAlerts/alertConfigurations/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" - } - }, - "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alerts" - } - } + "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 d736f8ba8a26..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/roleManagementAlerts/alertConfigurations/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" - } - } + "204": {} } }