Skip to main content

incident_tasks

Creates, updates, deletes, gets or lists an incident_tasks resource.

Overview

Nameincident_tasks
TypeResource
Idazure.sentinel.incident_tasks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
etagstringEtag of the azure resource
propertiesobjectDescribes the properties of an incident task

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, workspaceName, incidentId, incidentTaskIdGets an incident task.
listselectsubscriptionId, resourceGroupName, workspaceName, incidentIdGets all incident tasks.
create_or_updateinsertsubscriptionId, resourceGroupName, workspaceName, incidentId, incidentTaskId, data__propertiesCreates or updates the incident task.
deletedeletesubscriptionId, resourceGroupName, workspaceName, incidentId, incidentTaskIdDelete the incident task.

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.

NameDatatypeDescription
incidentIdstringIncident ID
incidentTaskIdstringIncident task ID
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
workspaceNamestringThe name of the workspace.

SELECT examples

Gets an incident task.

SELECT
etag,
properties
FROM azure.sentinel.incident_tasks
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
AND incidentId = '{{ incidentId }}' -- required
AND incidentTaskId = '{{ incidentTaskId }}' -- required
;

INSERT examples

Creates or updates the incident task.

INSERT INTO azure.sentinel.incident_tasks (
data__etag,
data__properties,
subscriptionId,
resourceGroupName,
workspaceName,
incidentId,
incidentTaskId
)
SELECT
'{{ etag }}',
'{{ properties }}' /* required */,
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ workspaceName }}',
'{{ incidentId }}',
'{{ incidentTaskId }}'
RETURNING
etag,
properties
;

DELETE examples

Delete the incident task.

DELETE FROM azure.sentinel.incident_tasks
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND workspaceName = '{{ workspaceName }}' --required
AND incidentId = '{{ incidentId }}' --required
AND incidentTaskId = '{{ incidentTaskId }}' --required
;