Udostępnij za pośrednictwem


ManagedServiceIdentitiesExtensions.GetUserAssignedIdentities Method

Definition

Overloads

GetUserAssignedIdentities(ResourceGroupResource)

Gets a collection of UserAssignedIdentityResources in the ResourceGroupResource. MockingTo mock this method, please mock GetUserAssignedIdentities() instead.

GetUserAssignedIdentities(SubscriptionResource, CancellationToken)

Lists all the userAssignedIdentities available under the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ManagedIdentity/userAssignedIdentities
  • Operation Id: UserAssignedIdentities_ListBySubscription
  • Default Api Version: 2023-01-31
  • Resource: UserAssignedIdentityResource

GetUserAssignedIdentities(ResourceGroupResource)

Source:
ManagedServiceIdentitiesExtensions.cs
Source:
ManagedServiceIdentitiesExtensions.cs

Gets a collection of UserAssignedIdentityResources in the ResourceGroupResource. MockingTo mock this method, please mock GetUserAssignedIdentities() instead.

public static Azure.ResourceManager.ManagedServiceIdentities.UserAssignedIdentityCollection GetUserAssignedIdentities (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetUserAssignedIdentities : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ManagedServiceIdentities.UserAssignedIdentityCollection
<Extension()>
Public Function GetUserAssignedIdentities (resourceGroupResource As ResourceGroupResource) As UserAssignedIdentityCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of UserAssignedIdentityResources and their operations over a UserAssignedIdentityResource.

Exceptions

resourceGroupResource is null.

Applies to

GetUserAssignedIdentities(SubscriptionResource, CancellationToken)

Source:
ManagedServiceIdentitiesExtensions.cs
Source:
ManagedServiceIdentitiesExtensions.cs

Lists all the userAssignedIdentities available under the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ManagedIdentity/userAssignedIdentities
  • Operation Id: UserAssignedIdentities_ListBySubscription
  • Default Api Version: 2023-01-31
  • Resource: UserAssignedIdentityResource
public static Azure.Pageable<Azure.ResourceManager.ManagedServiceIdentities.UserAssignedIdentityResource> GetUserAssignedIdentities (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetUserAssignedIdentities : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ManagedServiceIdentities.UserAssignedIdentityResource>
<Extension()>
Public Function GetUserAssignedIdentities (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of UserAssignedIdentityResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of UserAssignedIdentityResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to