你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

FlexibleServersExtensions.CheckPostgreSqlFlexibleServerNameAvailabilityAsync 方法

定义

检查资源名称的可用性

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/checkNameAvailability
  • 操作IdCheckNameAvailability_Execute
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNameAvailabilityResult>> CheckPostgreSqlFlexibleServerNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckPostgreSqlFlexibleServerNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNameAvailabilityResult>>
<Extension()>
Public Function CheckPostgreSqlFlexibleServerNameAvailabilityAsync (subscriptionResource As SubscriptionResource, content As PostgreSqlFlexibleServerNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PostgreSqlFlexibleServerNameAvailabilityResult))

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

content
PostgreSqlFlexibleServerNameAvailabilityContent

用于检查资源名称是否可用所需的参数。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

content 为 null。

适用于