Skip to main content
alter_role(name=None, action=None, value=None, options=)[source]

Alters a Role.

Parameters

name (str) –

Name of the role to be altered. Must be an existing role.

action (str) –

Modification operation to be applied to the role. Allowed values are:

  • set_comment – Sets the comment for an internal role.

  • set_resource_group – Sets the resource group for an internal role. The resource group must exist, otherwise, an empty string assigns the role to the default resource group.

value (str) –

The value of the modification, depending on input parameter action.

options (dict of str to str) –

Optional parameters. The default value is an empty dict ( ).

Returns

A dict with the following entries–

name (str) –

Value of input parameter name.

info (dict of str to str) –

Additional information.