sql_pool_blob_auditing_policies
Creates, updates, deletes, gets or lists a sql_pool_blob_auditing_policies
resource.
Overview
Name | sql_pool_blob_auditing_policies |
Type | Resource |
Id | azure.synapse.sql_pool_blob_auditing_policies |
Fields
- vw_sql_pool_blob_auditing_policies
- sql_pool_blob_auditing_policies
Name | Datatype | Description |
---|---|---|
audit_actions_and_groups | text | field from the properties object |
blobAuditingPolicyName | text | field from the properties object |
is_azure_monitor_target_enabled | text | field from the properties object |
is_storage_secondary_key_in_use | text | field from the properties object |
kind | text | Resource kind. |
resourceGroupName | text | field from the properties object |
retention_days | text | field from the properties object |
sqlPoolName | text | field from the properties object |
state | text | field from the properties object |
storage_account_access_key | text | field from the properties object |
storage_account_subscription_id | text | field from the properties object |
storage_endpoint | text | field from the properties object |
subscriptionId | text | field from the properties object |
workspaceName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
kind | string | Resource kind. |
properties | object | Properties of a Sql pool blob auditing policy. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | blobAuditingPolicyName, resourceGroupName, sqlPoolName, subscriptionId, workspaceName | Get a SQL pool's blob auditing policy. |
list_by_sql_pool | SELECT | resourceGroupName, sqlPoolName, subscriptionId, workspaceName | Lists auditing settings of a Sql pool. |
create_or_update | INSERT | blobAuditingPolicyName, resourceGroupName, sqlPoolName, subscriptionId, workspaceName | Creates or updates a SQL pool's blob auditing policy. |
SELECT
examples
Lists auditing settings of a Sql pool.
- vw_sql_pool_blob_auditing_policies
- sql_pool_blob_auditing_policies
SELECT
audit_actions_and_groups,
blobAuditingPolicyName,
is_azure_monitor_target_enabled,
is_storage_secondary_key_in_use,
kind,
resourceGroupName,
retention_days,
sqlPoolName,
state,
storage_account_access_key,
storage_account_subscription_id,
storage_endpoint,
subscriptionId,
workspaceName
FROM azure.synapse.vw_sql_pool_blob_auditing_policies
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND sqlPoolName = '{{ sqlPoolName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';
SELECT
kind,
properties
FROM azure.synapse.sql_pool_blob_auditing_policies
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND sqlPoolName = '{{ sqlPoolName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new sql_pool_blob_auditing_policies
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.synapse.sql_pool_blob_auditing_policies (
blobAuditingPolicyName,
resourceGroupName,
sqlPoolName,
subscriptionId,
workspaceName,
properties
)
SELECT
'{{ blobAuditingPolicyName }}',
'{{ resourceGroupName }}',
'{{ sqlPoolName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: kind
value: string
- name: properties
value:
- name: state
value: string
- name: storageEndpoint
value: string
- name: storageAccountAccessKey
value: string
- name: retentionDays
value: integer
- name: auditActionsAndGroups
value:
- string
- name: storageAccountSubscriptionId
value: string
- name: isStorageSecondaryKeyInUse
value: boolean
- name: isAzureMonitorTargetEnabled
value: boolean