Compartilhar via


AuthorizationPolicyResourceFormatCollection.GetAsync Método

Definição

Obtém uma política de autorização no hub.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/authorizationPolicies/{authorizationPolicyName}
  • Operação IdAuthorizationPolicies_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CustomerInsights.AuthorizationPolicyResourceFormatResource>> GetAsync (string authorizationPolicyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CustomerInsights.AuthorizationPolicyResourceFormatResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CustomerInsights.AuthorizationPolicyResourceFormatResource>>
Public Overridable Function GetAsync (authorizationPolicyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AuthorizationPolicyResourceFormatResource))

Parâmetros

authorizationPolicyName
String

O nome da política.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

authorizationPolicyName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

authorizationPolicyName é nulo.

Aplica-se a