DataMigrationServiceResource.CheckChildrenNameAvailabilityAsync Method

Definition

This method checks whether a proposed nested resource name is valid and available.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/checkNameAvailability
  • Operation Id: Services_CheckChildrenNameAvailability
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataMigration.Models.NameAvailabilityResponse>> CheckChildrenNameAvailabilityAsync (Azure.ResourceManager.DataMigration.Models.NameAvailabilityRequest nameAvailabilityRequest, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckChildrenNameAvailabilityAsync : Azure.ResourceManager.DataMigration.Models.NameAvailabilityRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataMigration.Models.NameAvailabilityResponse>>
override this.CheckChildrenNameAvailabilityAsync : Azure.ResourceManager.DataMigration.Models.NameAvailabilityRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataMigration.Models.NameAvailabilityResponse>>
Public Overridable Function CheckChildrenNameAvailabilityAsync (nameAvailabilityRequest As NameAvailabilityRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NameAvailabilityResponse))

Parameters

nameAvailabilityRequest
NameAvailabilityRequest

Requested name to validate.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

nameAvailabilityRequest is null.

Applies to