SubscriptionResource.GetSubscriptionPolicyDefinitionAsync Método

Definição

Essa operação recupera a definição de política na assinatura fornecida com o nome fornecido.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}
  • Operação IdPolicyDefinitions_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.SubscriptionPolicyDefinitionResource>> GetSubscriptionPolicyDefinitionAsync (string policyDefinitionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSubscriptionPolicyDefinitionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.SubscriptionPolicyDefinitionResource>>
override this.GetSubscriptionPolicyDefinitionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.SubscriptionPolicyDefinitionResource>>
Public Overridable Function GetSubscriptionPolicyDefinitionAsync (policyDefinitionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SubscriptionPolicyDefinitionResource))

Parâmetros

policyDefinitionName
String

O nome da definição de política a ser obtido.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

policyDefinitionName é nulo.

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

Aplica-se a