PermissionsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AuthorizationManagementClient's

<xref:permissions> attribute.

Inheritance
builtins.object
PermissionsOperations

Constructor

PermissionsOperations(*args, **kwargs)

Methods

list_for_resource

Gets all permissions the caller has for a resource.

list_for_resource_group

Gets all permissions the caller has for a resource group.

list_for_resource

Gets all permissions the caller has for a resource.

list_for_resource(resource_group_name: str, resource_provider_namespace: str, parent_resource_path: str, resource_type: str, resource_name: str, **kwargs: Any) -> Iterable[Permission]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

resource_provider_namespace
Required
str

The namespace of the resource provider. Required.

parent_resource_path
Required
str

The parent resource identity. Required.

resource_type
Required
str

The resource type of the resource. Required.

resource_name
Required
str

The name of the resource to get the permissions for. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either Permission or the result of cls(response)

Exceptions

Type Description

list_for_resource_group

Gets all permissions the caller has for a resource group.

list_for_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[Permission]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either Permission or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.authorization.v2018_01_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\authorization\\v2018_01_01_preview\\models\\__init__.py'>