Skip to main content

incident_tasks

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

Overview

Nameincident_tasks
TypeResource
Idazure.security_insight.incident_tasks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
createdByobjectInformation on the client (user or application) that made some action.
createdTimeUtcstring (date-time)The time the task was created.
descriptionstringThe description of the task.
etagstringEtag of the azure resource.
lastModifiedByobjectInformation on the client (user or application) that made some action.
lastModifiedTimeUtcstring (date-time)The last time the task was updated.
statusstringThe status of the task. Required. Known values are: "New" and "Completed". (New, Completed)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
titlestringThe title of the task. Required.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, incident_id, incident_task_id, subscription_idGets an incident task.
listselectresource_group_name, workspace_name, incident_id, subscription_idGets all incident tasks.
create_or_updateinsertresource_group_name, workspace_name, incident_id, incident_task_id, subscription_id, propertiesCreates or updates the incident task.
create_or_updatereplaceresource_group_name, workspace_name, incident_id, incident_task_id, subscription_id, propertiesCreates or updates the incident task.
deletedeleteresource_group_name, workspace_name, incident_id, incident_task_id, subscription_idDelete 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
incident_idstringIncident ID. Required.
incident_task_idstringIncident task ID. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of the monitor workspace. Required.

SELECT examples

Gets an incident task.

SELECT
id,
name,
createdBy,
createdTimeUtc,
description,
etag,
lastModifiedBy,
lastModifiedTimeUtc,
status,
systemData,
title,
type
FROM azure.security_insight.incident_tasks
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND incident_id = '{{ incident_id }}' -- required
AND incident_task_id = '{{ incident_task_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates the incident task.

INSERT INTO azure.security_insight.incident_tasks (
properties,
etag,
resource_group_name,
workspace_name,
incident_id,
incident_task_id,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ etag }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ incident_id }}',
'{{ incident_task_id }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

REPLACE examples

Creates or updates the incident task.

REPLACE azure.security_insight.incident_tasks
SET
properties = '{{ properties }}',
etag = '{{ etag }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND incident_id = '{{ incident_id }}' --required
AND incident_task_id = '{{ incident_task_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
etag,
properties,
systemData,
type;

DELETE examples

Delete the incident task.

DELETE FROM azure.security_insight.incident_tasks
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND incident_id = '{{ incident_id }}' --required
AND incident_task_id = '{{ incident_task_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;