Skip to main content

incident_tasks

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

Overview

Nameincident_tasks
TypeResource
Idazure.sentinel.incident_tasks

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
created_bytextfield from the properties object
created_time_utctextfield from the properties object
etagtextEtag of the azure resource
incidentIdtextfield from the properties object
incidentTaskIdtextfield from the properties object
last_modified_bytextfield from the properties object
last_modified_time_utctextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
titletextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTincidentId, incidentTaskId, resourceGroupName, subscriptionId, workspaceNameGets an incident task.
listSELECTincidentId, resourceGroupName, subscriptionId, workspaceNameGets all incident tasks.
create_or_updateINSERTincidentId, incidentTaskId, resourceGroupName, subscriptionId, workspaceName, data__propertiesCreates or updates the incident task.
deleteDELETEincidentId, incidentTaskId, resourceGroupName, subscriptionId, workspaceNameDelete the incident task.

SELECT examples

Gets all incident tasks.

SELECT
description,
created_by,
created_time_utc,
etag,
incidentId,
incidentTaskId,
last_modified_by,
last_modified_time_utc,
resourceGroupName,
status,
subscriptionId,
title,
workspaceName
FROM azure.sentinel.vw_incident_tasks
WHERE incidentId = '{{ incidentId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

Use the following StackQL query and manifest file to create a new incident_tasks resource.

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

DELETE example

Deletes the specified incident_tasks resource.

/*+ delete */
DELETE FROM azure.sentinel.incident_tasks
WHERE incidentId = '{{ incidentId }}'
AND incidentTaskId = '{{ incidentTaskId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';