data_exports
Creates, updates, deletes, gets or lists a data_exports
resource.
Overview
Name | data_exports |
Type | Resource |
Id | azure.log_analytics.data_exports |
Fields
- vw_data_exports
- data_exports
Name | Datatype | Description |
---|---|---|
created_date | text | field from the properties object |
dataExportName | text | field from the properties object |
data_export_id | text | field from the properties object |
destination | text | field from the properties object |
enable | text | field from the properties object |
last_modified_date | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
table_names | text | field from the properties object |
workspaceName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Data Export properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | dataExportName, resourceGroupName, subscriptionId, workspaceName | Gets a data export instance. |
list_by_workspace | SELECT | resourceGroupName, subscriptionId, workspaceName | Lists the data export instances within a workspace. |
create_or_update | INSERT | dataExportName, resourceGroupName, subscriptionId, workspaceName | Create or update a data export. |
delete | DELETE | dataExportName, resourceGroupName, subscriptionId, workspaceName | Deletes the specified data export in a given workspace.. |
SELECT
examples
Lists the data export instances within a workspace.
- vw_data_exports
- data_exports
SELECT
created_date,
dataExportName,
data_export_id,
destination,
enable,
last_modified_date,
resourceGroupName,
subscriptionId,
table_names,
workspaceName
FROM azure.log_analytics.vw_data_exports
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';
SELECT
properties
FROM azure.log_analytics.data_exports
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new data_exports
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.log_analytics.data_exports (
dataExportName,
resourceGroupName,
subscriptionId,
workspaceName,
properties
)
SELECT
'{{ dataExportName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: dataExportId
value: string
- name: tableNames
value:
- string
- name: destination
value:
- name: resourceId
value: string
- name: type
value: string
- name: metaData
value:
- name: eventHubName
value: string
- name: enable
value: boolean
- name: createdDate
value: string
- name: lastModifiedDate
value: string
DELETE
example
Deletes the specified data_exports
resource.
/*+ delete */
DELETE FROM azure.log_analytics.data_exports
WHERE dataExportName = '{{ dataExportName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';