Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update roleManagementAlertOperations properties #22642

Merged
merged 20 commits into from
Feb 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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