Skip to main content

incidents

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

Overview

Nameincidents
TypeResource
Idazure.sentinel.incidents

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
additional_datatextfield from the properties object
classificationtextfield from the properties object
classification_commenttextfield from the properties object
classification_reasontextfield from the properties object
created_time_utctextfield from the properties object
etagtextEtag of the azure resource
first_activity_time_utctextfield from the properties object
incidentIdtextfield from the properties object
incident_numbertextfield from the properties object
incident_urltextfield from the properties object
labelstextfield from the properties object
last_activity_time_utctextfield from the properties object
last_modified_time_utctextfield from the properties object
ownertextfield from the properties object
provider_incident_idtextfield from the properties object
provider_nametextfield from the properties object
related_analytic_rule_idstextfield from the properties object
resourceGroupNametextfield from the properties object
severitytextfield 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, resourceGroupName, subscriptionId, workspaceNameGets a given incident.
listSELECTresourceGroupName, subscriptionId, workspaceNameGets all incidents.
create_or_updateINSERTincidentId, resourceGroupName, subscriptionId, workspaceNameCreates or updates an incident.
deleteDELETEincidentId, resourceGroupName, subscriptionId, workspaceNameDeletes a given incident.
run_playbookEXECincidentIdentifier, resourceGroupName, subscriptionId, workspaceName, data__logicAppsResourceIdTriggers playbook on a specific incident

SELECT examples

Gets all incidents.

SELECT
description,
additional_data,
classification,
classification_comment,
classification_reason,
created_time_utc,
etag,
first_activity_time_utc,
incidentId,
incident_number,
incident_url,
labels,
last_activity_time_utc,
last_modified_time_utc,
owner,
provider_incident_id,
provider_name,
related_analytic_rule_ids,
resourceGroupName,
severity,
status,
subscriptionId,
title,
workspaceName
FROM azure.sentinel.vw_incidents
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

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

DELETE example

Deletes the specified incidents resource.

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