Skip to main content

incident_comments

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

Overview

Nameincident_comments
TypeResource
Idazure.sentinel.incident_comments

Fields

The following fields are returned by SELECT queries:

OK, Operation successfully completed

NameDatatypeDescription
etagstringEtag of the azure resource
propertiesobjectIncident comment properties

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, workspaceName, incidentId, incidentCommentIdGets a comment for a given incident.
listselectsubscriptionId, resourceGroupName, workspaceName, incidentId$filter, $orderby, $top, $skipTokenGets all comments for a given incident.
create_or_updateinsertsubscriptionId, resourceGroupName, workspaceName, incidentId, incidentCommentIdCreates or updates a comment for a given incident.
deletedeletesubscriptionId, resourceGroupName, workspaceName, incidentId, incidentCommentIdDeletes a comment for a given incident.

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
incidentCommentIdstringIncident comment ID
incidentIdstringIncident ID
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
workspaceNamestringThe name of the workspace.
$filterstringFilters the results, based on a Boolean condition. Optional.
$orderbystringSorts the results. Optional.
$skipTokenstringSkiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. Optional.
$topinteger (int32)Returns only the first n results. Optional.

SELECT examples

Gets a comment for a given incident.

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

INSERT examples

Creates or updates a comment for a given incident.

INSERT INTO azure.sentinel.incident_comments (
data__etag,
data__properties,
subscriptionId,
resourceGroupName,
workspaceName,
incidentId,
incidentCommentId
)
SELECT
'{{ etag }}',
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ workspaceName }}',
'{{ incidentId }}',
'{{ incidentCommentId }}'
RETURNING
etag,
properties
;

DELETE examples

Deletes a comment for a given incident.

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