Compartilhar via


FlexibleServersExtensions.CheckPostgreSqlFlexibleServerNameAvailabilityWithLocationAsync Método

Definição

Verificar a disponibilidade do nome do recurso

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkNameAvailability
  • IdCheckNameAvailabilityWithLocation_Execute de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNameAvailabilityResult>> CheckPostgreSqlFlexibleServerNameAvailabilityWithLocationAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckPostgreSqlFlexibleServerNameAvailabilityWithLocationAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNameAvailabilityResult>>
<Extension()>
Public Function CheckPostgreSqlFlexibleServerNameAvailabilityWithLocationAsync (subscriptionResource As SubscriptionResource, locationName As AzureLocation, content As PostgreSqlFlexibleServerNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PostgreSqlFlexibleServerNameAvailabilityResult))

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância na qual o método será executado.

locationName
AzureLocation

O nome do local.

content
PostgreSqlFlexibleServerNameAvailabilityContent

Os parâmetros necessários para verificar se o nome do recurso está disponível.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a