MockableSqlSubscriptionResource.CheckSqlServerNameAvailability Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 Azure.Response<Azure.ResourceManager.Sql.Models.SqlNameAvailabilityResponse> CheckSqlServerNameAvailability (Azure.ResourceManager.Sql.Models.SqlNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckSqlServerNameAvailability : Azure.ResourceManager.Sql.Models.SqlNameAvailabilityContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Sql.Models.SqlNameAvailabilityResponse>
override this.CheckSqlServerNameAvailability : Azure.ResourceManager.Sql.Models.SqlNameAvailabilityContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Sql.Models.SqlNameAvailabilityResponse>
Public Overridable Function CheckSqlServerNameAvailability (content As SqlNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As 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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET