Compartilhar via


RoleAssignmentResource.GetAsync(String, CancellationToken) Método

Definição

Obtenha uma atribuição de função por escopo e nome.

  • Caminho da Solicitação/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}
  • Operação IdRoleAssignments_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.RoleAssignmentResource>> GetAsync (string tenantId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.RoleAssignmentResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.RoleAssignmentResource>>
Public Overridable Function GetAsync (Optional tenantId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RoleAssignmentResource))

Parâmetros

tenantId
String

ID do locatário para solicitação entre locatários.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a