AuthorizationExtensions.GetRoleAssignments Method

Definition

Overloads

Name Description
GetRoleAssignments(ArmResource)

Gets a collection of RoleAssignmentCollection objects within the specified scope.

GetRoleAssignments(ArmClient, ResourceIdentifier)

Gets a collection of RoleAssignmentCollection objects within the specified scope. <item> Mocking. To mock this method, please mock GetRoleAssignments(ResourceIdentifier) instead. </item>

GetRoleAssignments(ArmResource)

Source:
AuthorizationExtensions.cs
Source:
AuthorizationExtensions.cs

Gets a collection of RoleAssignmentCollection objects within the specified scope.

public static Azure.ResourceManager.Authorization.RoleAssignmentCollection GetRoleAssignments(this Azure.ResourceManager.ArmResource armResource);
static member GetRoleAssignments : Azure.ResourceManager.ArmResource -> Azure.ResourceManager.Authorization.RoleAssignmentCollection
<Extension()>
Public Function GetRoleAssignments (armResource As ArmResource) As RoleAssignmentCollection

Parameters

armResource
ArmResource

The ArmResource instance the method will execute against.

Returns

Returns a collection of RoleAssignmentResource objects.

Exceptions

armResource is null.

Applies to

GetRoleAssignments(ArmClient, ResourceIdentifier)

Source:
AuthorizationExtensions.cs
Source:
AuthorizationExtensions.cs

Gets a collection of RoleAssignmentCollection objects within the specified scope. <item> Mocking. To mock this method, please mock GetRoleAssignments(ResourceIdentifier) instead. </item>

public static Azure.ResourceManager.Authorization.RoleAssignmentCollection GetRoleAssignments(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope);
static member GetRoleAssignments : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.Authorization.RoleAssignmentCollection
<Extension()>
Public Function GetRoleAssignments (client As ArmClient, scope As ResourceIdentifier) As RoleAssignmentCollection

Parameters

client
ArmClient

The ArmClient the method will execute against.

scope
ResourceIdentifier

The scope of the resource collection to get.

Returns

Returns a collection of RoleAssignmentResource objects.

Exceptions

client is null.

Applies to