Skip to main content

incident_relations

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

Overview

Nameincident_relations
TypeResource
Idazure.sentinel.incident_relations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
etagstringEtag of the azure resource
propertiesobjectRelation properties

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, workspaceName, incidentId, relationNameGets a relation for a given incident.
listselectsubscriptionId, resourceGroupName, workspaceName, incidentId$filter, $orderby, $top, $skipTokenGets all relations for a given incident.
create_or_updateinsertsubscriptionId, resourceGroupName, workspaceName, incidentId, relationNameCreates or updates a relation for a given incident.
deletedeletesubscriptionId, resourceGroupName, workspaceName, incidentId, relationNameDeletes a relation 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
incidentIdstringIncident ID
relationNamestringRelation Name
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 relation for a given incident.

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

INSERT examples

Creates or updates a relation for a given incident.

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

DELETE examples

Deletes a relation for a given incident.

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