Compartilhar via


TenantPolicyDefinitionCollection.GetIfExistsAsync Método

Definição

Tenta obter detalhes desse recurso do serviço.

  • Caminho da Solicitação/provedores/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}
  • IdPolicyDefinitions_GetBuiltIn de operação
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Resources.TenantPolicyDefinitionResource>> GetIfExistsAsync (string policyDefinitionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Resources.TenantPolicyDefinitionResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Resources.TenantPolicyDefinitionResource>>
Public Overridable Function GetIfExistsAsync (policyDefinitionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of TenantPolicyDefinitionResource))

Parâmetros

policyDefinitionName
String

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

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

policyDefinitionName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

policyDefinitionName é nulo.

Aplica-se a