Alerts - Update Subscription Level Alert State

Update the alert's state

POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/{alertUpdateActionType}?api-version=2019-01-01

URI Parameters

Name In Required Type Description
subscriptionId
path True
  • string

Azure subscription ID

Regex pattern: ^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$

ascLocation
path True
  • string

The location where ASC stores the data of the subscription. can be retrieved from Get locations

alertName
path True
  • string

Name of the alert object

alertUpdateActionType
path True
  • string

Type of the action to do on the alert

api-version
query True
  • string

API version for the operation

Responses

Name Type Description
204 No Content

No Content

Other Status Codes

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Update security alert state on a subscription from a security data location

Sample Request

POST https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/westeurope/alerts/2518770965529163669_F144EE95-A3E5-42DA-A279-967D115809AA/Dismiss?api-version=2019-01-01

Sample Response

Definitions

CloudError

Error response structure.

Name Type Description
error.code
  • string

An identifier for the error. Codes are invariant and are intended to be consumed programmatically.

error.message
  • string

A message describing the error, intended to be suitable for display in a user interface.