alert_configurations
Creates, updates, deletes, gets or lists an alert_configurations resource.
Overview
| Name | alert_configurations |
| Type | Resource |
| Id | azure.authorization.alert_configurations |
Fields
The following fields are returned by SELECT queries:
- get
- list_for_scope
OK - Returns information about the alert configuration.
| Name | Datatype | Description |
|---|---|---|
id | string | The alert configuration ID. |
name | string | The alert configuration name. |
properties | object | Alert configuration properties. |
type | string | The alert configuration type. |
OK - Returns an array of alert configurations.
| Name | Datatype | Description |
|---|---|---|
id | string | The alert configuration ID. |
name | string | The alert configuration name. |
properties | object | Alert configuration properties. |
type | string | The alert configuration type. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | scope, alertId | Get the specified alert configuration. | |
list_for_scope | select | scope | Gets alert configurations for a resource scope. | |
update | update | scope, alertId | Update an alert configuration. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
alertId | string | The name of the alert configuration to update. |
scope | string | The scope of the alert configuration. |
SELECT examples
- get
- list_for_scope
Get the specified alert configuration.
SELECT
id,
name,
properties,
type
FROM azure.authorization.alert_configurations
WHERE scope = '{{ scope }}' -- required
AND alertId = '{{ alertId }}' -- required
;
Gets alert configurations for a resource scope.
SELECT
id,
name,
properties,
type
FROM azure.authorization.alert_configurations
WHERE scope = '{{ scope }}' -- required
;
UPDATE examples
- update
Update an alert configuration.
UPDATE azure.authorization.alert_configurations
SET
data__properties = '{{ properties }}'
WHERE
scope = '{{ scope }}' --required
AND alertId = '{{ alertId }}' --required;