Udostępnij za pośrednictwem


DenyAssignmentsOperationsExtensions.GetByIdAsync Method

Definition

Gets a deny assignment by ID.

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

Parameters

operations
IDenyAssignmentsOperations

The operations group for this extension method.

denyAssignmentId
String

The fully qualified deny assignment ID. For example, use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for subscription level deny assignments, or /providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for tenant level deny assignments.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to