Skip to main content

role_management_policies

Creates, updates, deletes, gets or lists a role_management_policies resource.

Overview

Namerole_management_policies
TypeResource
Idazure.authorization.role_management_policies

Fields

NameDatatypeDescription
idtextThe role management policy Id.
nametextThe role management policy name.
descriptiontextfield from the properties object
display_nametextfield from the properties object
effective_rulestextfield from the properties object
is_organization_defaulttextfield from the properties object
last_modified_bytextfield from the properties object
last_modified_date_timetextfield from the properties object
policy_propertiestextfield from the properties object
roleManagementPolicyNametextfield from the properties object
rulestextfield from the properties object
scopetextfield from the properties object
typetextThe role management policy type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTroleManagementPolicyName, scopeGet the specified role management policy for a resource scope
list_for_scopeSELECTscopeGets role management policies for a resource scope.
deleteDELETEroleManagementPolicyName, scopeDelete a role management policy
updateUPDATEroleManagementPolicyName, scopeUpdate a role management policy

SELECT examples

Gets role management policies for a resource scope.

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 }}';

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 }}';