AlertOperationGroup

Change the state of an alert. If scope is a deleted resource then please use scope as parent resource of the delete resource. For example if my alert id is '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.AlertsManagement/alerts/{alertId}' and 'vm1' is deleted then if you want to change state of this particular alert then use parent resource of scope. So in this example change state call will look like this: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AlertsManagement/alerts/{alertId}'.

post/{scope}/providers/Microsoft.AlertsManagement/alerts/{alertId}/changestate

Path parameters

scopestring required

undefined

alertIdstring required

Unique ID of an alert instance.

Query parameters

newState'New' | 'Acknowledged' | 'Closed' required

New state of the alert.

Parameters

../../../../../../common-types/resource-management/v5/types.json#/components/parameters/ApiVersionParameter — unresolved $ref

Request body

commentsstring

Response

Azure operation completed successfully.

Alert required— unresolved $ref