Share via


SqlServerDnsAliasResource.AcquireAsync Method

Definition

Acquires server DNS alias from another server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases/{dnsAliasName}/acquire
  • Operation Id: ServerDnsAliases_Acquire
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerDnsAliasResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerDnsAliasResource>> AcquireAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Sql.Models.ServerDnsAliasAcquisition serverDnsAliasAcquisition, System.Threading.CancellationToken cancellationToken = default);
abstract member AcquireAsync : Azure.WaitUntil * Azure.ResourceManager.Sql.Models.ServerDnsAliasAcquisition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerDnsAliasResource>>
override this.AcquireAsync : Azure.WaitUntil * Azure.ResourceManager.Sql.Models.ServerDnsAliasAcquisition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerDnsAliasResource>>
Public Overridable Function AcquireAsync (waitUntil As WaitUntil, serverDnsAliasAcquisition As ServerDnsAliasAcquisition, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SqlServerDnsAliasResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

serverDnsAliasAcquisition
ServerDnsAliasAcquisition

The ServerDnsAliasAcquisition to use.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

serverDnsAliasAcquisition is null.

Applies to