Partilhar via


HubResource.GetAuthorizationPolicyResourceFormatAsync 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>> GetAuthorizationPolicyResourceFormatAsync (string authorizationPolicyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAuthorizationPolicyResourceFormatAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CustomerInsights.AuthorizationPolicyResourceFormatResource>>
override this.GetAuthorizationPolicyResourceFormatAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CustomerInsights.AuthorizationPolicyResourceFormatResource>>
Public Overridable Function GetAuthorizationPolicyResourceFormatAsync (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