共用方式為


SearchExtensions.CheckSearchServiceNameAvailabilityAsync Method

Definition

Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://<name>.search.windows.net).

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Search/checkNameAvailability
  • Operation Id: Services_CheckNameAvailability
  • Default Api Version: 2024-03-01-preview
  • Resource: SearchServiceResource
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Search.Models.SearchServiceNameAvailabilityResult>> CheckSearchServiceNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Search.Models.SearchServiceNameAvailabilityContent content, Azure.ResourceManager.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member CheckSearchServiceNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Search.Models.SearchServiceNameAvailabilityContent * Azure.ResourceManager.Search.Models.SearchManagementRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Search.Models.SearchServiceNameAvailabilityResult>>
<Extension()>
Public Function CheckSearchServiceNameAvailabilityAsync (subscriptionResource As SubscriptionResource, content As SearchServiceNameAvailabilityContent, Optional searchManagementRequestOptions As SearchManagementRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SearchServiceNameAvailabilityResult))

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

content
SearchServiceNameAvailabilityContent

The resource name and type to check.

searchManagementRequestOptions
SearchManagementRequestOptions

Parameter group.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource or content is null.

Applies to