다음을 통해 공유


MockableSqlSubscriptionResource.CheckSqlServerNameAvailabilityAsync Method

Definition

Determines whether a resource can be created with the specified name.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/checkNameAvailability
  • Operation Id: Servers_CheckNameAvailability
  • Default Api Version: 2023-05-01-preview
  • Resource: SqlServerResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.Models.SqlNameAvailabilityResponse>> CheckSqlServerNameAvailabilityAsync (Azure.ResourceManager.Sql.Models.SqlNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckSqlServerNameAvailabilityAsync : Azure.ResourceManager.Sql.Models.SqlNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.Models.SqlNameAvailabilityResponse>>
override this.CheckSqlServerNameAvailabilityAsync : Azure.ResourceManager.Sql.Models.SqlNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.Models.SqlNameAvailabilityResponse>>
Public Overridable Function CheckSqlServerNameAvailabilityAsync (content As SqlNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SqlNameAvailabilityResponse))

Parameters

content
SqlNameAvailabilityContent

The name availability request parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to