Partager via


DenyAssignmentsOperationsExtensions.GetByIdAsync Méthode

Définition

Obtient une attribution de refus par ID.

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

Paramètres

operations
IDenyAssignmentsOperations

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

denyAssignmentId
String

ID d’affectation de refus complet. Par exemple, utilisez le format /subscriptions/{guid}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} pour les attributions de refus au niveau de l’abonnement, ou /providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} pour les attributions de refus au niveau du locataire.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

S’applique à