UserAssignedIdentitiesOperations Class

UserAssignedIdentitiesOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
UserAssignedIdentitiesOperations

Constructor

UserAssignedIdentitiesOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

create_or_update

Create or update an identity in the specified subscription and resource group.

delete

Deletes the identity.

get

Gets the identity.

list_associated_resources

Lists the associated resources for this identity.

list_by_resource_group

Lists all the userAssignedIdentities available under the specified ResourceGroup.

list_by_subscription

Lists all the userAssignedIdentities available under the specified subscription.

update

Update an identity in the specified subscription and resource group.

create_or_update

Create or update an identity in the specified subscription and resource group.

create_or_update(resource_group_name: str, resource_name: str, parameters: azure.mgmt.msi.models._models_py3.Identity, **kwargs: Any) -> azure.mgmt.msi.models._models_py3.Identity

Parameters

resource_group_name
str
Required

The name of the Resource Group to which the identity belongs.

resource_name
str
Required

The name of the identity resource.

parameters
Identity
Required

Parameters to create or update the identity.

cls
callable

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

Returns

Identity, or the result of cls(response)

Return type

Exceptions

delete

Deletes the identity.

delete(resource_group_name: str, resource_name: str, **kwargs: Any) -> None

Parameters

resource_group_name
str
Required

The name of the Resource Group to which the identity belongs.

resource_name
str
Required

The name of the identity resource.

cls
callable

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

Returns

None, or the result of cls(response)

Return type

Exceptions

get

Gets the identity.

get(resource_group_name: str, resource_name: str, **kwargs: Any) -> azure.mgmt.msi.models._models_py3.Identity

Parameters

resource_group_name
str
Required

The name of the Resource Group to which the identity belongs.

resource_name
str
Required

The name of the identity resource.

cls
callable

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

Returns

Identity, or the result of cls(response)

Return type

Exceptions

list_associated_resources

Lists the associated resources for this identity.

list_associated_resources(resource_group_name: str, resource_name: str, filter: Optional[str] = None, orderby: Optional[str] = None, top: Optional[int] = None, skip: Optional[int] = None, skiptoken: Optional[str] = None, **kwargs: Any) -> Iterable[azure.mgmt.msi.models._models_py3.AssociatedResourcesListResult]

Parameters

resource_group_name
str
Required

The name of the Resource Group to which the identity belongs.

resource_name
str
Required

The name of the identity resource.

filter
str
Required

OData filter expression to apply to the query.

orderby
str
Required

OData orderBy expression to apply to the query.

top
int
Required

Number of records to return.

skip
int
Required

Number of records to skip.

skiptoken
str
Required

A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.

cls
callable

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

Returns

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

Return type

Exceptions

list_by_resource_group

Lists all the userAssignedIdentities available under the specified ResourceGroup.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[azure.mgmt.msi.models._models_py3.UserAssignedIdentitiesListResult]

Parameters

resource_group_name
str
Required

The name of the Resource Group to which the identity belongs.

cls
callable

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

Returns

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

Return type

Exceptions

list_by_subscription

Lists all the userAssignedIdentities available under the specified subscription.

list_by_subscription(**kwargs: Any) -> Iterable[azure.mgmt.msi.models._models_py3.UserAssignedIdentitiesListResult]

Parameters

cls
callable

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

Returns

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

Return type

Exceptions

update

Update an identity in the specified subscription and resource group.

update(resource_group_name: str, resource_name: str, parameters: azure.mgmt.msi.models._models_py3.IdentityUpdate, **kwargs: Any) -> azure.mgmt.msi.models._models_py3.Identity

Parameters

resource_group_name
str
Required

The name of the Resource Group to which the identity belongs.

resource_name
str
Required

The name of the identity resource.

parameters
IdentityUpdate
Required

Parameters to update the identity.

cls
callable

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

Returns

Identity, or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.msi.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\msi\\models\\__init__.py'>