storage_insight_configs
Creates, updates, deletes, gets or lists a storage_insight_configs
resource.
Overview
Name | storage_insight_configs |
Type | Resource |
Id | azure.log_analytics.storage_insight_configs |
Fields
- vw_storage_insight_configs
- storage_insight_configs
Name | Datatype | Description |
---|---|---|
containers | text | field from the properties object |
e_tag | text | field from the properties object |
resourceGroupName | text | field from the properties object |
status | text | field from the properties object |
storageInsightName | text | field from the properties object |
storage_account | text | field from the properties object |
subscriptionId | text | field from the properties object |
tables | text | field from the properties object |
tags | text | Resource tags. |
workspaceName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
eTag | string | The ETag of the storage insight. |
properties | object | Storage insight properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, storageInsightName, subscriptionId, workspaceName | Gets a storage insight instance. |
list_by_workspace | SELECT | resourceGroupName, subscriptionId, workspaceName | Lists the storage insight instances within a workspace |
create_or_update | INSERT | resourceGroupName, storageInsightName, subscriptionId, workspaceName | Create or update a storage insight. |
delete | DELETE | resourceGroupName, storageInsightName, subscriptionId, workspaceName | Deletes a storageInsightsConfigs resource |
SELECT
examples
Lists the storage insight instances within a workspace
- vw_storage_insight_configs
- storage_insight_configs
SELECT
containers,
e_tag,
resourceGroupName,
status,
storageInsightName,
storage_account,
subscriptionId,
tables,
tags,
workspaceName
FROM azure.log_analytics.vw_storage_insight_configs
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';
SELECT
eTag,
properties,
tags
FROM azure.log_analytics.storage_insight_configs
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new storage_insight_configs
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.log_analytics.storage_insight_configs (
resourceGroupName,
storageInsightName,
subscriptionId,
workspaceName,
properties,
eTag,
tags
)
SELECT
'{{ resourceGroupName }}',
'{{ storageInsightName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ properties }}',
'{{ eTag }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: containers
value:
- string
- name: tables
value:
- string
- name: storageAccount
value:
- name: id
value: string
- name: key
value: string
- name: status
value:
- name: state
value: string
- name: description
value: string
- name: eTag
value: string
- name: tags
value: object
DELETE
example
Deletes the specified storage_insight_configs
resource.
/*+ delete */
DELETE FROM azure.log_analytics.storage_insight_configs
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND storageInsightName = '{{ storageInsightName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';