data_connectors
Creates, updates, deletes, gets or lists a data_connectors resource.
Overview
| Name | data_connectors |
| Type | Resource |
| Id | azure.security_insight.data_connectors |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
etag | string | Etag of the azure resource. |
kind | string | Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. Required. Known values are: "AzureActiveDirectory", "AzureSecurityCenter", "MicrosoftCloudAppSecurity", "ThreatIntelligence", "ThreatIntelligenceTaxii", "Office365", "OfficeATP", "OfficeIRM", "Office365Project", "MicrosoftPurviewInformationProtection", "OfficePowerBI", "AmazonWebServicesCloudTrail", "AmazonWebServicesS3", "AzureAdvancedThreatProtection", "MicrosoftDefenderAdvancedThreatProtection", "Dynamics365", "MicrosoftThreatProtection", "MicrosoftThreatIntelligence", "PremiumMicrosoftDefenderForThreatIntelligence", "GenericUI", "APIPolling", "IOT", "GCP", "RestApiPoller", and "PurviewAudit". |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
etag | string | Etag of the azure resource. |
kind | string | Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. Required. Known values are: "AzureActiveDirectory", "AzureSecurityCenter", "MicrosoftCloudAppSecurity", "ThreatIntelligence", "ThreatIntelligenceTaxii", "Office365", "OfficeATP", "OfficeIRM", "Office365Project", "MicrosoftPurviewInformationProtection", "OfficePowerBI", "AmazonWebServicesCloudTrail", "AmazonWebServicesS3", "AzureAdvancedThreatProtection", "MicrosoftDefenderAdvancedThreatProtection", "Dynamics365", "MicrosoftThreatProtection", "MicrosoftThreatIntelligence", "PremiumMicrosoftDefenderForThreatIntelligence", "GenericUI", "APIPolling", "IOT", "GCP", "RestApiPoller", and "PurviewAudit". |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, workspace_name, data_connector_id, subscription_id | Gets a data connector. | |
list | select | resource_group_name, workspace_name, subscription_id | Gets all data connectors. | |
create_or_update | insert | resource_group_name, workspace_name, data_connector_id, subscription_id, kind | Creates or updates the data connector. | |
create_or_update | replace | resource_group_name, workspace_name, data_connector_id, subscription_id, kind | Creates or updates the data connector. | |
delete | delete | resource_group_name, workspace_name, data_connector_id, subscription_id | Delete the data connector. | |
connect | exec | resource_group_name, workspace_name, data_connector_id, subscription_id | Connects a data connector. | |
disconnect | exec | resource_group_name, workspace_name, data_connector_id, subscription_id | Disconnect a data connector. |
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.
| Name | Datatype | Description |
|---|---|---|
data_connector_id | string | Connector ID. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string | |
workspace_name | string | The name of the monitor workspace. Required. |
SELECT examples
- get
- list
Gets a data connector.
SELECT
id,
name,
etag,
kind,
systemData,
type
FROM azure.security_insight.data_connectors
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND data_connector_id = '{{ data_connector_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Gets all data connectors.
SELECT
id,
name,
etag,
kind,
systemData,
type
FROM azure.security_insight.data_connectors
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Creates or updates the data connector.
INSERT INTO azure.security_insight.data_connectors (
kind,
etag,
resource_group_name,
workspace_name,
data_connector_id,
subscription_id
)
SELECT
'{{ kind }}' /* required */,
'{{ etag }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ data_connector_id }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
kind,
systemData,
type
;
# Description fields are for documentation purposes
- name: data_connectors
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the data_connectors resource.
- name: workspace_name
value: "{{ workspace_name }}"
description: Required parameter for the data_connectors resource.
- name: data_connector_id
value: "{{ data_connector_id }}"
description: Required parameter for the data_connectors resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the data_connectors resource.
- name: kind
value: "{{ kind }}"
description: |
Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. Required. Known values are: "AzureActiveDirectory", "AzureSecurityCenter", "MicrosoftCloudAppSecurity", "ThreatIntelligence", "ThreatIntelligenceTaxii", "Office365", "OfficeATP", "OfficeIRM", "Office365Project", "MicrosoftPurviewInformationProtection", "OfficePowerBI", "AmazonWebServicesCloudTrail", "AmazonWebServicesS3", "AzureAdvancedThreatProtection", "MicrosoftDefenderAdvancedThreatProtection", "Dynamics365", "MicrosoftThreatProtection", "MicrosoftThreatIntelligence", "PremiumMicrosoftDefenderForThreatIntelligence", "GenericUI", "APIPolling", "IOT", "GCP", "RestApiPoller", and "PurviewAudit".
- name: etag
value: "{{ etag }}"
description: |
Etag of the azure resource.
REPLACE examples
- create_or_update
Creates or updates the data connector.
REPLACE azure.security_insight.data_connectors
SET
kind = '{{ kind }}',
etag = '{{ etag }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND data_connector_id = '{{ data_connector_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND kind = '{{ kind }}' --required
RETURNING
id,
name,
etag,
kind,
systemData,
type;
DELETE examples
- delete
Delete the data connector.
DELETE FROM azure.security_insight.data_connectors
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND data_connector_id = '{{ data_connector_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;
Lifecycle Methods
- connect
- disconnect
Connects a data connector.
EXEC azure.security_insight.data_connectors.connect
@resource_group_name='{{ resource_group_name }}' --required,
@workspace_name='{{ workspace_name }}' --required,
@data_connector_id='{{ data_connector_id }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"kind": "{{ kind }}",
"apiKey": "{{ apiKey }}",
"dataCollectionEndpoint": "{{ dataCollectionEndpoint }}",
"dataCollectionRuleImmutableId": "{{ dataCollectionRuleImmutableId }}",
"outputStream": "{{ outputStream }}",
"clientSecret": "{{ clientSecret }}",
"clientId": "{{ clientId }}",
"authorizationCode": "{{ authorizationCode }}",
"userName": "{{ userName }}",
"password": "{{ password }}",
"requestConfigUserInputValues": "{{ requestConfigUserInputValues }}"
}'
;
Disconnect a data connector.
EXEC azure.security_insight.data_connectors.disconnect
@resource_group_name='{{ resource_group_name }}' --required,
@workspace_name='{{ workspace_name }}' --required,
@data_connector_id='{{ data_connector_id }}' --required,
@subscription_id='{{ subscription_id }}' --required
;