role_management_policies
Creates, updates, deletes, gets or lists a role_management_policies
resource.
Overview
Name | role_management_policies |
Type | Resource |
Id | azure.authorization.role_management_policies |
Fields
- vw_role_management_policies
- role_management_policies
Name | Datatype | Description |
---|---|---|
id | text | The role management policy Id. |
name | text | The role management policy name. |
description | text | field from the properties object |
display_name | text | field from the properties object |
effective_rules | text | field from the properties object |
is_organization_default | text | field from the properties object |
last_modified_by | text | field from the properties object |
last_modified_date_time | text | field from the properties object |
policy_properties | text | field from the properties object |
roleManagementPolicyName | text | field from the properties object |
rules | text | field from the properties object |
scope | text | field from the properties object |
type | text | The role management policy type. |
Name | Datatype | Description |
---|---|---|
id | string | The role management policy Id. |
name | string | The role management policy name. |
properties | object | Role management policy properties with scope. |
type | string | The role management policy type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | roleManagementPolicyName, scope | Get the specified role management policy for a resource scope |
list_for_scope | SELECT | scope | Gets role management policies for a resource scope. |
delete | DELETE | roleManagementPolicyName, scope | Delete a role management policy |
update | UPDATE | roleManagementPolicyName, scope | Update a role management policy |
SELECT
examples
Gets role management policies for a resource scope.
- vw_role_management_policies
- role_management_policies
SELECT
id,
name,
description,
display_name,
effective_rules,
is_organization_default,
last_modified_by,
last_modified_date_time,
policy_properties,
roleManagementPolicyName,
rules,
scope,
type
FROM azure.authorization.vw_role_management_policies
WHERE scope = '{{ scope }}';
SELECT
id,
name,
properties,
type
FROM azure.authorization.role_management_policies
WHERE scope = '{{ scope }}';
UPDATE
example
Updates a role_management_policies
resource.
/*+ update */
UPDATE azure.authorization.role_management_policies
SET
properties = '{{ properties }}'
WHERE
roleManagementPolicyName = '{{ roleManagementPolicyName }}'
AND scope = '{{ scope }}';
DELETE
example
Deletes the specified role_management_policies
resource.
/*+ delete */
DELETE FROM azure.authorization.role_management_policies
WHERE roleManagementPolicyName = '{{ roleManagementPolicyName }}'
AND scope = '{{ scope }}';