Partager via


RoleAssignmentsOperationsExtensions.ListForResourceAsync Méthode

Définition

Obtient les attributions de rôles pour une ressource.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Graph.RBAC.Fluent.Models.RoleAssignmentInner>> ListForResourceAsync (this Microsoft.Azure.Management.Graph.RBAC.Fluent.IRoleAssignmentsOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.Graph.RBAC.Fluent.Models.RoleAssignmentFilter> odataQuery = default, System.Threading.CancellationToken cancellationToken = default);
static member ListForResourceAsync : Microsoft.Azure.Management.Graph.RBAC.Fluent.IRoleAssignmentsOperations * string * string * string * string * string * Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.Graph.RBAC.Fluent.Models.RoleAssignmentFilter> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Graph.RBAC.Fluent.Models.RoleAssignmentInner>>
<Extension()>
Public Function ListForResourceAsync (operations As IRoleAssignmentsOperations, resourceGroupName As String, resourceProviderNamespace As String, parentResourcePath As String, resourceType As String, resourceName As String, Optional odataQuery As ODataQuery(Of RoleAssignmentFilter) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of RoleAssignmentInner))

Paramètres

operations
IRoleAssignmentsOperations

Groupe d’opérations pour cette méthode d’extension.

resourceGroupName
String

Nom du groupe de ressources.

resourceProviderNamespace
String

Espace de noms du fournisseur de ressources.

parentResourcePath
String

Identité de ressource parente.

resourceType
String

Type de ressource de la ressource.

resourceName
String

Nom de la ressource pour laquelle obtenir des attributions de rôle.

odataQuery
ODataQuery<RoleAssignmentFilter>

Paramètres OData à appliquer à l’opération.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

S’applique à