Skip to content

Commit

Permalink
Update RoleManagementAlerts paths (Azure#21735)
Browse files Browse the repository at this point in the history
* Start updating paths

* update all paths and examples

* Change patch operations to 204 instead of 200

* Update operations paths
  • Loading branch information
juliawelborn authored and anandanthony committed Dec 16, 2022
1 parent 1ce7c43 commit d3d75a5
Show file tree
Hide file tree
Showing 13 changed files with 64 additions and 138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
},
"paths": {
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}": {
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}": {
"get": {
"tags": [
"Alerts"
Expand Down Expand Up @@ -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.",
Expand All @@ -139,7 +136,7 @@
}
}
},
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts": {
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts": {
"get": {
"tags": [
"Alerts"
Expand Down Expand Up @@ -183,7 +180,7 @@
}
}
},
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/refresh": {
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/refresh": {
"post": {
"tags": [
"Alerts"
Expand Down Expand Up @@ -241,7 +238,7 @@
}
}
},
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/refresh": {
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/refresh": {
"post": {
"tags": [
"Alerts"
Expand Down Expand Up @@ -291,7 +288,7 @@
}
}
},
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/{alertId}": {
"/{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations/{alertId}": {
"get": {
"tags": [
"AlertConfigurations"
Expand Down Expand Up @@ -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.",
Expand All @@ -396,7 +390,7 @@
}
}
},
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations": {
"/{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations": {
"get": {
"tags": [
"AlertConfigurations"
Expand Down Expand Up @@ -440,7 +434,7 @@
}
}
},
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/{alertDefinitionId}": {
"/{scope}/providers/Microsoft.Authorization/roleManagementAlertDefinitions/{alertDefinitionId}": {
"get": {
"tags": [
"AlertDefinitions"
Expand Down Expand Up @@ -489,7 +483,7 @@
}
}
},
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions": {
"/{scope}/providers/Microsoft.Authorization/roleManagementAlertDefinitions": {
"get": {
"tags": [
"AlertDefinitions"
Expand Down Expand Up @@ -533,7 +527,7 @@
}
}
},
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/alertIncidents/{alertIncidentId}": {
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents/{alertIncidentId}": {
"get": {
"tags": [
"AlertIncidents"
Expand Down Expand Up @@ -590,7 +584,7 @@
}
}
},
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/alertIncidents": {
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents": {
"get": {
"tags": [
"AlertIncidents"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -696,7 +690,7 @@
}
}
},
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/operations/{operationId}": {
"/{scope}/providers/Microsoft.Authorization/roleManagementAlertOperations/{operationId}": {
"get": {
"tags": [
"AlertOperations"
Expand Down Expand Up @@ -745,7 +739,7 @@
}
}
},
"/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/operations": {
"/{scope}/providers/Microsoft.Authorization/roleManagementAlertOperations": {
"get": {
"tags": [
"AlertOperations"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand All @@ -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": {
Expand All @@ -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"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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": {
Expand All @@ -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": {
Expand All @@ -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"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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": {
Expand All @@ -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": {
Expand All @@ -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"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
Expand Down
Loading

0 comments on commit d3d75a5

Please sign in to comment.