Compartilhar via


AuthorizationExtensions.GetAuthorizationRoleDefinition Método

Definição

Sobrecargas

GetAuthorizationRoleDefinition(ArmResource, ResourceIdentifier, CancellationToken)

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

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

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

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

GetAuthorizationRoleDefinition(ArmResource, ResourceIdentifier, CancellationToken)

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

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

Parâmetros

armResource
ArmResource

A ArmResource instância em que 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

GetAuthorizationRoleDefinition(ArmClient, ResourceIdentifier, ResourceIdentifier, CancellationToken)

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

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

Parâmetros

client
ArmClient

A ArmClient instância em que o método será executado.

scope
ResourceIdentifier

O escopo no 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