Share via


RoleAssignmentsOperationsExtensions.ListForScope Method

Definition

List all role assignments that apply to a scope.

public static Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Authorization.Models.RoleAssignment> ListForScope (this Microsoft.Azure.Management.Authorization.IRoleAssignmentsOperations operations, string scope, Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.Authorization.Models.RoleAssignmentFilter> odataQuery = default, string tenantId = default);
static member ListForScope : Microsoft.Azure.Management.Authorization.IRoleAssignmentsOperations * string * Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.Authorization.Models.RoleAssignmentFilter> * string -> Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Authorization.Models.RoleAssignment>
<Extension()>
Public Function ListForScope (operations As IRoleAssignmentsOperations, scope As String, Optional odataQuery As ODataQuery(Of RoleAssignmentFilter) = Nothing, Optional tenantId As String = Nothing) As IPage(Of RoleAssignment)

Parameters

operations
IRoleAssignmentsOperations

The operations group for this extension method.

scope
String

The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'

odataQuery
ODataQuery<RoleAssignmentFilter>

OData parameters to apply to the operation.

tenantId
String

Tenant ID for cross-tenant request

Returns

Applies to