Partilhar via


AuthorizationExtensions.GetAuthorizationRoleDefinitionAsync Método

Definição

Sobrecargas

GetAuthorizationRoleDefinitionAsync(ArmResource, ResourceIdentifier, CancellationToken)

Obter definição de função por nome (GUID).

  • Caminho da Solicitação/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • IdRoleDefinitions_Get de operação
GetAuthorizationRoleDefinitionAsync(ArmClient, ResourceIdentifier, ResourceIdentifier, CancellationToken)

Obter definição de função por nome (GUID).

  • Caminho da Solicitação/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • IdRoleDefinitions_Get de operação

GetAuthorizationRoleDefinitionAsync(ArmResource, ResourceIdentifier, CancellationToken)

Obter definição de função por nome (GUID).

  • Caminho da Solicitação/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • IdRoleDefinitions_Get de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionResource>> GetAuthorizationRoleDefinitionAsync (this Azure.ResourceManager.ArmResource armResource, Azure.Core.ResourceIdentifier roleDefinitionId, System.Threading.CancellationToken cancellationToken = default);
static member GetAuthorizationRoleDefinitionAsync : Azure.ResourceManager.ArmResource * Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionResource>>
<Extension()>
Public Function GetAuthorizationRoleDefinitionAsync (armResource As ArmResource, roleDefinitionId As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AuthorizationRoleDefinitionResource))

Parâmetros

armResource
ArmResource

A ArmResource instância na qual o método será executado.

roleDefinitionId
ResourceIdentifier

A ID da definição de função.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

roleDefinitionId é nulo.

Aplica-se a

GetAuthorizationRoleDefinitionAsync(ArmClient, ResourceIdentifier, ResourceIdentifier, CancellationToken)

Obter definição de função por nome (GUID).

  • Caminho da Solicitação/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • IdRoleDefinitions_Get de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionResource>> GetAuthorizationRoleDefinitionAsync (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, Azure.Core.ResourceIdentifier roleDefinitionId, System.Threading.CancellationToken cancellationToken = default);
static member GetAuthorizationRoleDefinitionAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionResource>>
<Extension()>
Public Function GetAuthorizationRoleDefinitionAsync (client As ArmClient, scope As ResourceIdentifier, roleDefinitionId As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AuthorizationRoleDefinitionResource))

Parâmetros

client
ArmClient

A ArmClient instância na qual o método será executado.

scope
ResourceIdentifier

O escopo ao qual o recurso será aplicado.

roleDefinitionId
ResourceIdentifier

A ID da definição de função.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

roleDefinitionId é nulo.

Aplica-se a