vw_database_principal_assignments
Creates, updates, deletes, gets or lists a vw_database_principal_assignments
resource.
Overview
Name | vw_database_principal_assignments |
Type | View |
Id | azure.data_explorer.vw_database_principal_assignments |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
JSON_EXTRACT(properties, '$.principalId') as "principal_id",
JSON_EXTRACT(properties, '$.role') as "role",
JSON_EXTRACT(properties, '$.tenantId') as "tenant_id",
JSON_EXTRACT(properties, '$.principalType') as "principal_type",
JSON_EXTRACT(properties, '$.tenantName') as "tenant_name",
JSON_EXTRACT(properties, '$.principalName') as "principal_name",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
JSON_EXTRACT(properties, '$.aadObjectId') as "aad_object_id",
subscriptionId,
resourceGroupName,
clusterName,
databaseName,
principalAssignmentName
FROM azure.data_explorer.database_principal_assignments
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND clusterName = 'replace-me' AND databaseName = 'replace-me';
SELECT
json_extract_path_text(properties, '$.principalId') as "principal_id",
json_extract_path_text(properties, '$.role') as "role",
json_extract_path_text(properties, '$.tenantId') as "tenant_id",
json_extract_path_text(properties, '$.principalType') as "principal_type",
json_extract_path_text(properties, '$.tenantName') as "tenant_name",
json_extract_path_text(properties, '$.principalName') as "principal_name",
json_extract_path_text(properties, '$.provisioningState') as "provisioning_state",
json_extract_path_text(properties, '$.aadObjectId') as "aad_object_id",
subscriptionId,
resourceGroupName,
clusterName,
databaseName,
principalAssignmentName
FROM azure.data_explorer.database_principal_assignments
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND clusterName = 'replace-me' AND databaseName = 'replace-me';