vw_role_definitions
Creates, updates, deletes, gets or lists a vw_role_definitions
resource.
Overview
Name | vw_role_definitions |
Type | View |
Id | azure.authorization.vw_role_definitions |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
id as id,
name as name,
type as type,
JSON_EXTRACT(properties, '$.roleName') as "role_name",
JSON_EXTRACT(properties, '$.description') as "description",
JSON_EXTRACT(properties, '$.type') as "type",
JSON_EXTRACT(properties, '$.permissions') as "permissions",
JSON_EXTRACT(properties, '$.assignableScopes') as "assignable_scopes",
JSON_EXTRACT(properties, '$.createdOn') as "created_on",
JSON_EXTRACT(properties, '$.updatedOn') as "updated_on",
JSON_EXTRACT(properties, '$.createdBy') as "created_by",
JSON_EXTRACT(properties, '$.updatedBy') as "updated_by",
scope,
roleDefinitionId
FROM azure.authorization.role_definitions
WHERE scope = 'replace-me';
SELECT
id as id,
name as name,
type as type,
json_extract_path_text(properties, '$.roleName') as "role_name",
json_extract_path_text(properties, '$.description') as "description",
json_extract_path_text(properties, '$.type') as "type",
json_extract_path_text(properties, '$.permissions') as "permissions",
json_extract_path_text(properties, '$.assignableScopes') as "assignable_scopes",
json_extract_path_text(properties, '$.createdOn') as "created_on",
json_extract_path_text(properties, '$.updatedOn') as "updated_on",
json_extract_path_text(properties, '$.createdBy') as "created_by",
json_extract_path_text(properties, '$.updatedBy') as "updated_by",
scope,
roleDefinitionId
FROM azure.authorization.role_definitions
WHERE scope = 'replace-me';