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

The following fields are returned by SELECT queries:

OK - Returns information about the role management policy.

NameDatatypeDescription
idstringThe role management policy Id.
namestringThe role management policy name.
propertiesobjectRole management policy properties.
typestringThe role management policy type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscope, roleManagementPolicyNameGet the specified role management policy for a resource scope
list_for_scopeselectscopeGets role management policies for a resource scope.
updateupdatescope, roleManagementPolicyNameUpdate a role management policy
deletedeletescope, roleManagementPolicyNameDelete a role management policy

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
roleManagementPolicyNamestringThe name (guid) of the role management policy to upsert.
scopestringThe scope of the role management policy to upsert.

SELECT examples

Get the specified role management policy for a resource scope

SELECT
id,
name,
properties,
type
FROM azure.authorization.role_management_policies
WHERE scope = '{{ scope }}' -- required
AND roleManagementPolicyName = '{{ roleManagementPolicyName }}' -- required
;

UPDATE examples

Update a role management policy

UPDATE azure.authorization.role_management_policies
SET
data__properties = '{{ properties }}'
WHERE
scope = '{{ scope }}' --required
AND roleManagementPolicyName = '{{ roleManagementPolicyName }}' --required
RETURNING
id,
name,
properties,
type;

DELETE examples

Delete a role management policy

DELETE FROM azure.authorization.role_management_policies
WHERE scope = '{{ scope }}' --required
AND roleManagementPolicyName = '{{ roleManagementPolicyName }}' --required
;