Skip to main content

alerts

Creates, updates, deletes, gets or lists a alerts resource.

Overview

Namealerts
TypeResource
Idazure.authorization.alerts

Fields

NameDatatypeDescription
idtextThe alert ID.
nametextThe alert name.
alertIdtextfield from the properties object
alert_configurationtextfield from the properties object
alert_definitiontextfield from the properties object
alert_incidentstextfield from the properties object
incident_counttextfield from the properties object
is_activetextfield from the properties object
last_modified_date_timetextfield from the properties object
last_scanned_date_timetextfield from the properties object
scopetextfield from the properties object
typetextThe alert type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTalertId, scopeGet the specified alert.
list_for_scopeSELECTscopeGets alerts for a resource scope.
updateUPDATEalertId, scopeUpdate an alert.
refreshEXECalertId, scopeRefresh an alert.
refresh_allEXECscopeRefresh all alerts for a resource scope.

SELECT examples

Gets alerts for a resource scope.

SELECT
id,
name,
alertId,
alert_configuration,
alert_definition,
alert_incidents,
incident_count,
is_active,
last_modified_date_time,
last_scanned_date_time,
scope,
type
FROM azure.authorization.vw_alerts
WHERE scope = '{{ scope }}';

UPDATE example

Updates a alerts resource.

/*+ update */
UPDATE azure.authorization.alerts
SET
properties = '{{ properties }}'
WHERE
alertId = '{{ alertId }}'
AND scope = '{{ scope }}';