Skip to main content

data_connectors

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

Overview

Namedata_connectors
TypeResource
Idazure.sentinel.data_connectors

Fields

NameDatatypeDescription
etagstringEtag of the azure resource
kindstringThe kind of the data connector

Methods

NameAccessible byRequired ParamsDescription
getSELECTdataConnectorId, resourceGroupName, subscriptionId, workspaceNameGets a data connector.
listSELECTresourceGroupName, subscriptionId, workspaceNameGets all data connectors.
create_or_updateINSERTdataConnectorId, resourceGroupName, subscriptionId, workspaceName, data__kindCreates or updates the data connector.
deleteDELETEdataConnectorId, resourceGroupName, subscriptionId, workspaceNameDelete the data connector.

SELECT examples

Gets all data connectors.

SELECT
etag,
kind
FROM azure.sentinel.data_connectors
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.sentinel.data_connectors (
dataConnectorId,
resourceGroupName,
subscriptionId,
workspaceName,
data__kind,
etag,
kind
)
SELECT
'{{ dataConnectorId }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ data__kind }}',
'{{ etag }}',
'{{ kind }}'
;

DELETE example

Deletes the specified data_connectors resource.

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