alert_definitions
Creates, updates, deletes, gets or lists an alert_definitions
resource.
Overview
Name | alert_definitions |
Type | Resource |
Id | azure.authorization.alert_definitions |
Fields
The following fields are returned by SELECT
queries:
- get
- list_for_scope
OK - Returns information about the alert definition.
Name | Datatype | Description |
---|---|---|
id | string | The alert definition ID. |
name | string | The alert definition name. |
properties | object | Alert definition properties. |
type | string | The alert definition type. |
OK - Returns an array of alert definitions.
Name | Datatype | Description |
---|---|---|
id | string | The alert definition ID. |
name | string | The alert definition name. |
properties | object | Alert definition properties. |
type | string | The alert definition type. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | scope , alertDefinitionId | Get the specified alert definition. | |
list_for_scope | select | scope | Gets alert definitions for a resource scope. |
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 |
---|---|---|
alertDefinitionId | string | The name of the alert definition to get. |
scope | string | The scope of the alert definition. |
SELECT
examples
- get
- list_for_scope
Get the specified alert definition.
SELECT
id,
name,
properties,
type
FROM azure.authorization.alert_definitions
WHERE scope = '{{ scope }}' -- required
AND alertDefinitionId = '{{ alertDefinitionId }}' -- required
;
Gets alert definitions for a resource scope.
SELECT
id,
name,
properties,
type
FROM azure.authorization.alert_definitions
WHERE scope = '{{ scope }}' -- required
;