Skip to content

Commit 8a5b0cd

Browse files
juliawelbornaviyerMSFT
authored andcommitted
Update roleManagementAlertOperations properties (Azure#22642)
* 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
1 parent 139d136 commit 8a5b0cd

File tree

6 files changed

+38
-91
lines changed

6 files changed

+38
-91
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2714,3 +2714,4 @@ Mebibytes
27142714
UTURN
27152715
Isochrone
27162716
Ochestrator
2717+
remediatable

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

Lines changed: 22 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -738,47 +738,6 @@
738738
}
739739
}
740740
}
741-
},
742-
"/{scope}/providers/Microsoft.Authorization/roleManagementAlertOperations": {
743-
"get": {
744-
"tags": [
745-
"AlertOperations"
746-
],
747-
"operationId": "AlertOperation_ListForScope",
748-
"description": "Gets alert operations for a resource scope.",
749-
"parameters": [
750-
{
751-
"name": "scope",
752-
"in": "path",
753-
"required": true,
754-
"type": "string",
755-
"description": "The scope of the alert operation.",
756-
"x-ms-skip-url-encoding": true
757-
},
758-
{
759-
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
760-
}
761-
],
762-
"responses": {
763-
"200": {
764-
"description": "OK - Returns an array of the operations.",
765-
"schema": {
766-
"$ref": "#/definitions/AlertOperationListResult"
767-
}
768-
},
769-
"default": {
770-
"description": "Error response describing why the operation failed.",
771-
"schema": {
772-
"$ref": "#/definitions/CloudError"
773-
}
774-
}
775-
},
776-
"x-ms-examples": {
777-
"GetAlertOperations": {
778-
"$ref": "./examples/GetAlertOperations.json"
779-
}
780-
}
781-
}
782741
}
783742
},
784743
"definitions": {
@@ -1328,6 +1287,28 @@
13281287
"type": "string",
13291288
"readOnly": true,
13301289
"description": "The status of the alert operation."
1290+
},
1291+
"statusDetail": {
1292+
"type": "string",
1293+
"readOnly": true,
1294+
"description": "The status detail of the alert operation."
1295+
},
1296+
"createdDateTime": {
1297+
"type": "string",
1298+
"format": "date-time",
1299+
"readOnly": true,
1300+
"description": "The created date of the alert operation."
1301+
},
1302+
"lastActionDateTime": {
1303+
"type": "string",
1304+
"format": "date-time",
1305+
"readOnly": true,
1306+
"description": "The last action date of the alert operation."
1307+
},
1308+
"resourceLocation": {
1309+
"type": "string",
1310+
"readOnly": true,
1311+
"description": "The location of the alert associated with the operation."
13311312
}
13321313
},
13331314
"type": "object",
@@ -1343,23 +1324,6 @@
13431324
"type": "object",
13441325
"description": "An error response from the service."
13451326
},
1346-
"AlertOperationListResult": {
1347-
"properties": {
1348-
"value": {
1349-
"type": "array",
1350-
"items": {
1351-
"$ref": "#/definitions/AlertOperationResult"
1352-
},
1353-
"description": "Alert operation list"
1354-
},
1355-
"nextLink": {
1356-
"type": "string",
1357-
"description": "The URL to use for getting the next set of results."
1358-
}
1359-
},
1360-
"type": "object",
1361-
"description": "Alert operation list operation result."
1362-
},
13631327
"CloudErrorBody": {
13641328
"x-ms-external": true,
13651329
"properties": {

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
"200": {
99
"body": {
1010
"id": "{operationId}",
11-
"status": "Running"
11+
"status": "Running",
12+
"statusDetail": "{\"result\":[{\"name\":\"DuplicateRoleCreated\",\"statusDetail\":\"Alert scan is not yet started.\"}]}",
13+
"lastActionDateTime": "2022-04-05T03:04:06.467+00:00",
14+
"createdDateTime": "2022-04-05T03:04:06.467+00:00",
15+
"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"
1216
}
1317
}
1418
}

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

Lines changed: 0 additions & 30 deletions
This file was deleted.

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
},
1212
"body": {
1313
"id": "{operationId}",
14-
"status": "NotStarted"
14+
"status": "Running",
15+
"statusDetail": "{\"result\":[{\"name\":\"AzureRolesAssignedOutsidePimAlert\",\"statusDetail\":\"Alert scan is running.\"}]}",
16+
"lastActionDateTime": "2022-04-05T03:04:06.467+00:00",
17+
"createdDateTime": "2022-04-05T03:04:06.467+00:00",
18+
"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"
1519
}
1620
}
1721
}

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
},
1111
"body": {
1212
"id": "{operationId}",
13-
"status": "NotStarted"
13+
"status": "notStarted",
14+
"statusDetail": "{\"result\":[{\"name\":\"AzureRolesAssignedOutsidePimAlert\",\"statusDetail\":\"Alert scan is not yet started.\"}, {\"name\":\"DuplicateRoleCreated\",\"statusDetail\":\"Alert scan is not yet started.\"}]}",
15+
"lastActionDateTime": "2022-04-05T03:04:06.467+00:00",
16+
"createdDateTime": "2022-04-05T03:04:06.467+00:00",
17+
"resourceLocation": "https://management.azure.com/providers/Microsoft.Subscription/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts?api-version=2022-08-01-preview"
1418
}
1519
}
1620
}

0 commit comments

Comments
 (0)