vw_vaults
Creates, updates, deletes, gets or lists a vw_vaults
resource.
Overview
Name | vw_vaults |
Type | View |
Id | azure.key_vault.vw_vaults |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
id as id,
name as name,
location as location,
type as type,
tags as tags,
systemData as system_data,
JSON_EXTRACT(properties, '$.tenantId') as "tenant_id",
JSON_EXTRACT(properties, '$.sku') as "sku",
JSON_EXTRACT(properties, '$.accessPolicies') as "access_policies",
JSON_EXTRACT(properties, '$.vaultUri') as "vault_uri",
JSON_EXTRACT(properties, '$.hsmPoolResourceId') as "hsm_pool_resource_id",
JSON_EXTRACT(properties, '$.enabledForDeployment') as "enabled_for_deployment",
JSON_EXTRACT(properties, '$.enabledForDiskEncryption') as "enabled_for_disk_encryption",
JSON_EXTRACT(properties, '$.enabledForTemplateDeployment') as "enabled_for_template_deployment",
JSON_EXTRACT(properties, '$.enableSoftDelete') as "enable_soft_delete",
JSON_EXTRACT(properties, '$.softDeleteRetentionInDays') as "soft_delete_retention_in_days",
JSON_EXTRACT(properties, '$.enableRbacAuthorization') as "enable_rbac_authorization",
JSON_EXTRACT(properties, '$.createMode') as "create_mode",
JSON_EXTRACT(properties, '$.enablePurgeProtection') as "enable_purge_protection",
JSON_EXTRACT(properties, '$.networkAcls') as "network_acls",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
JSON_EXTRACT(properties, '$.privateEndpointConnections') as "private_endpoint_connections",
JSON_EXTRACT(properties, '$.publicNetworkAccess') as "public_network_access",
subscriptionId,
resourceGroupName,
vaultName
FROM azure.key_vault.vaults
WHERE subscriptionId = 'replace-me';
SELECT
id as id,
name as name,
location as location,
type as type,
tags as tags,
systemData as system_data,
json_extract_path_text(properties, '$.tenantId') as "tenant_id",
json_extract_path_text(properties, '$.sku') as "sku",
json_extract_path_text(properties, '$.accessPolicies') as "access_policies",
json_extract_path_text(properties, '$.vaultUri') as "vault_uri",
json_extract_path_text(properties, '$.hsmPoolResourceId') as "hsm_pool_resource_id",
json_extract_path_text(properties, '$.enabledForDeployment') as "enabled_for_deployment",
json_extract_path_text(properties, '$.enabledForDiskEncryption') as "enabled_for_disk_encryption",
json_extract_path_text(properties, '$.enabledForTemplateDeployment') as "enabled_for_template_deployment",
json_extract_path_text(properties, '$.enableSoftDelete') as "enable_soft_delete",
json_extract_path_text(properties, '$.softDeleteRetentionInDays') as "soft_delete_retention_in_days",
json_extract_path_text(properties, '$.enableRbacAuthorization') as "enable_rbac_authorization",
json_extract_path_text(properties, '$.createMode') as "create_mode",
json_extract_path_text(properties, '$.enablePurgeProtection') as "enable_purge_protection",
json_extract_path_text(properties, '$.networkAcls') as "network_acls",
json_extract_path_text(properties, '$.provisioningState') as "provisioning_state",
json_extract_path_text(properties, '$.privateEndpointConnections') as "private_endpoint_connections",
json_extract_path_text(properties, '$.publicNetworkAccess') as "public_network_access",
subscriptionId,
resourceGroupName,
vaultName
FROM azure.key_vault.vaults
WHERE subscriptionId = 'replace-me';