data_connectors
Creates, updates, deletes, gets or lists a data_connectors
resource.
Overview
Name | data_connectors |
Type | Resource |
Id | azure.sentinel.data_connectors |
Fields
Name | Datatype | Description |
---|---|---|
etag | string | Etag of the azure resource |
kind | string | The kind of the data connector |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | dataConnectorId, resourceGroupName, subscriptionId, workspaceName | Gets a data connector. |
list | SELECT | resourceGroupName, subscriptionId, workspaceName | Gets all data connectors. |
create_or_update | INSERT | dataConnectorId, resourceGroupName, subscriptionId, workspaceName, data__kind | Creates or updates the data connector. |
delete | DELETE | dataConnectorId, resourceGroupName, subscriptionId, workspaceName | Delete 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.sentinel.data_connectors (
dataConnectorId,
resourceGroupName,
subscriptionId,
workspaceName,
data__kind,
etag,
kind
)
SELECT
'{{ dataConnectorId }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ data__kind }}',
'{{ etag }}',
'{{ kind }}'
;
- name: your_resource_model_name
props:
- name: etag
value: string
- name: kind
value: []
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 }}';