Compartir a través de


AuthorizationExtensions.GetDenyAssignmentAsync Método

Definición

Sobrecargas

GetDenyAssignmentAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Obtiene la asignación de denegación especificada.

  • Ruta de acceso de solicitud/{scope}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}
  • IdDenyAssignments_Get de operación
GetDenyAssignmentAsync(ArmResource, String, CancellationToken)

Obtiene la asignación de denegación especificada.

  • Ruta de acceso de solicitud/{scope}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}
  • IdDenyAssignments_Get de operación

GetDenyAssignmentAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Obtiene la asignación de denegación especificada.

  • Ruta de acceso de solicitud/{scope}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}
  • IdDenyAssignments_Get de operación
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.DenyAssignmentResource>> GetDenyAssignmentAsync (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string denyAssignmentId, System.Threading.CancellationToken cancellationToken = default);
static member GetDenyAssignmentAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.DenyAssignmentResource>>
<Extension()>
Public Function GetDenyAssignmentAsync (client As ArmClient, scope As ResourceIdentifier, denyAssignmentId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DenyAssignmentResource))

Parámetros

client
ArmClient

Instancia ArmClient en la que se ejecutará el método.

scope
ResourceIdentifier

Ámbito en el que se aplicará el recurso.

denyAssignmentId
String

Identificador de la asignación de denegación que se va a obtener.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

denyAssignmentId es una cadena vacía y se espera que no esté vacía.

denyAssignmentId es null.

Se aplica a

GetDenyAssignmentAsync(ArmResource, String, CancellationToken)

Obtiene la asignación de denegación especificada.

  • Ruta de acceso de solicitud/{scope}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}
  • IdDenyAssignments_Get de operación
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.DenyAssignmentResource>> GetDenyAssignmentAsync (this Azure.ResourceManager.ArmResource armResource, string denyAssignmentId, System.Threading.CancellationToken cancellationToken = default);
static member GetDenyAssignmentAsync : Azure.ResourceManager.ArmResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.DenyAssignmentResource>>
<Extension()>
Public Function GetDenyAssignmentAsync (armResource As ArmResource, denyAssignmentId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DenyAssignmentResource))

Parámetros

armResource
ArmResource

Instancia ArmResource en la que se ejecutará el método.

denyAssignmentId
String

Identificador de la asignación de denegación que se va a obtener.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

denyAssignmentId es una cadena vacía y se espera que no esté vacía.

denyAssignmentId es null.

Se aplica a