Partager via


RoleAssignmentsOperationsExtensions.GetByIdAsync Méthode

Définition

Obtenir une attribution de rôle par ID.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Authorization.Models.RoleAssignment> GetByIdAsync (this Microsoft.Azure.Management.Authorization.IRoleAssignmentsOperations operations, string roleAssignmentId, string tenantId = default, System.Threading.CancellationToken cancellationToken = default);
static member GetByIdAsync : Microsoft.Azure.Management.Authorization.IRoleAssignmentsOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Authorization.Models.RoleAssignment>
<Extension()>
Public Function GetByIdAsync (operations As IRoleAssignmentsOperations, roleAssignmentId As String, Optional tenantId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RoleAssignment)

Paramètres

operations
IRoleAssignmentsOperations

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

roleAssignmentId
String

ID complet de l’attribution de rôle, y compris l’étendue, le nom de la ressource et le type de ressource. Format : /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Exemple : /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>

tenantId
String

ID de locataire pour la demande interlocataire

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

S’applique à