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

FlexibleServersExtensions.CheckMySqlFlexibleServerNameAvailabilityWithoutLocationAsync 方法

定义

检查服务器名称的可用性

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

参数

subscriptionResource
SubscriptionResource

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

content
MySqlFlexibleServerNameAvailabilityContent

用于检查服务器名称是否可用所需的参数。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

content 为 null。

适用于