Skip to content

Commit

Permalink
Update roleManagementAlertOperations properties (#22642)
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

* Add new properties to operation

* Update RoleManagementAlerts.json

* Delete GetAlertOperations.json

* Update GetAlertOperationById.json

* Fix accidental comma deletion

* Update GetAlertOperationById.json

* Update RefreshAlert.json

* Update RefreshAllAlerts.json

* Update RefreshAlert.json

* Fix date formatting

* Fix date format

* Fix date format

* Update RefreshAlert.json

* Remove unused type

* Add remediatable to custom words
  • Loading branch information
juliawelborn authored Feb 17, 2023
1 parent b6cdb7f commit 66e7f9b
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 91 deletions.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2713,3 +2713,4 @@ Mebibytes
UTURN
Isochrone
Ochestrator
remediatable
Original file line number Diff line number Diff line change
Expand Up @@ -738,47 +738,6 @@
}
}
}
},
"/{scope}/providers/Microsoft.Authorization/roleManagementAlertOperations": {
"get": {
"tags": [
"AlertOperations"
],
"operationId": "AlertOperation_ListForScope",
"description": "Gets alert operations for a resource scope.",
"parameters": [
{
"name": "scope",
"in": "path",
"required": true,
"type": "string",
"description": "The scope of the alert operation.",
"x-ms-skip-url-encoding": true
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK - Returns an array of the operations.",
"schema": {
"$ref": "#/definitions/AlertOperationListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"GetAlertOperations": {
"$ref": "./examples/GetAlertOperations.json"
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -1328,6 +1287,28 @@
"type": "string",
"readOnly": true,
"description": "The status of the alert operation."
},
"statusDetail": {
"type": "string",
"readOnly": true,
"description": "The status detail of the alert operation."
},
"createdDateTime": {
"type": "string",
"format": "date-time",
"readOnly": true,
"description": "The created date of the alert operation."
},
"lastActionDateTime": {
"type": "string",
"format": "date-time",
"readOnly": true,
"description": "The last action date of the alert operation."
},
"resourceLocation": {
"type": "string",
"readOnly": true,
"description": "The location of the alert associated with the operation."
}
},
"type": "object",
Expand All @@ -1343,23 +1324,6 @@
"type": "object",
"description": "An error response from the service."
},
"AlertOperationListResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/AlertOperationResult"
},
"description": "Alert operation list"
},
"nextLink": {
"type": "string",
"description": "The URL to use for getting the next set of results."
}
},
"type": "object",
"description": "Alert operation list operation result."
},
"CloudErrorBody": {
"x-ms-external": true,
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"200": {
"body": {
"id": "{operationId}",
"status": "Running"
"status": "Running",
"statusDetail": "{\"result\":[{\"name\":\"DuplicateRoleCreated\",\"statusDetail\":\"Alert scan is not yet started.\"}]}",
"lastActionDateTime": "2022-04-05T03:04:06.467+00:00",
"createdDateTime": "2022-04-05T03:04:06.467+00:00",
"resourceLocation": "https://management.azure.com/providers/Microsoft.Subscription/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/DuplicateRoleCreated?api-version=2022-08-01-preview"
}
}
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
},
"body": {
"id": "{operationId}",
"status": "NotStarted"
"status": "Running",
"statusDetail": "{\"result\":[{\"name\":\"AzureRolesAssignedOutsidePimAlert\",\"statusDetail\":\"Alert scan is running.\"}]}",
"lastActionDateTime": "2022-04-05T03:04:06.467+00:00",
"createdDateTime": "2022-04-05T03:04:06.467+00:00",
"resourceLocation": "https://management.azure.com/providers/Microsoft.Subscription/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/AzureRolesAssignedOutsidePimAlert?api-version=2022-08-01-preview"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
},
"body": {
"id": "{operationId}",
"status": "NotStarted"
"status": "notStarted",
"statusDetail": "{\"result\":[{\"name\":\"AzureRolesAssignedOutsidePimAlert\",\"statusDetail\":\"Alert scan is not yet started.\"}, {\"name\":\"DuplicateRoleCreated\",\"statusDetail\":\"Alert scan is not yet started.\"}]}",
"lastActionDateTime": "2022-04-05T03:04:06.467+00:00",
"createdDateTime": "2022-04-05T03:04:06.467+00:00",
"resourceLocation": "https://management.azure.com/providers/Microsoft.Subscription/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts?api-version=2022-08-01-preview"
}
}
}
Expand Down

0 comments on commit 66e7f9b

Please sign in to comment.