IServicesOperations.CheckNameAvailabilityWithHttpMessagesAsync メソッド

定義

指定された検索サービス名を使用できるかどうかを確認します。 Search Service名はサービス URI (https:// name.search.windows.net<>) の一部であるため、グローバルに一意である必要があります。 https://aka.ms/search-manage

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Search.Models.CheckNameAvailabilityOutput>> CheckNameAvailabilityWithHttpMessagesAsync (string name, Microsoft.Azure.Management.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckNameAvailabilityWithHttpMessagesAsync : string * Microsoft.Azure.Management.Search.Models.SearchManagementRequestOptions * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Search.Models.CheckNameAvailabilityOutput>>
Public Function CheckNameAvailabilityWithHttpMessagesAsync (name As String, Optional searchManagementRequestOptions As SearchManagementRequestOptions = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of CheckNameAvailabilityOutput))

パラメーター

name
String

検証する検索サービス名。 Search Service名には小文字、数字、ダッシュのみを含める必要があり、最初の 2 文字または最後の 1 文字としてダッシュを使用することはできません。連続するダッシュを含めることはできません。また、長さは 2 から 60 文字にする必要があります。

searchManagementRequestOptions
SearchManagementRequestOptions

操作の追加パラメーター

customHeaders
Dictionary<String,List<String>>

要求に追加されるヘッダー。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

例外

操作が無効な状態コードを返したときにスローされます

応答を逆シリアル化できない場合にスローされます

必須パラメーターが null の場合にスローされます

適用対象