Share via


SqlDatabaseResource.CreateOrUpdateDatabaseExtensionAsync Method

Definition

Perform a database extension operation, like polybase import

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions/{extensionName}
  • Operation Id: DatabaseExtensions_CreateOrUpdate
  • Default Api Version: 2021-02-01-preview
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.Models.ImportExportExtensionsOperationResult>> CreateOrUpdateDatabaseExtensionAsync (Azure.WaitUntil waitUntil, string extensionName, Azure.ResourceManager.Sql.Models.SqlDatabaseExtension sqlDatabaseExtension, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateDatabaseExtensionAsync : Azure.WaitUntil * string * Azure.ResourceManager.Sql.Models.SqlDatabaseExtension * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.Models.ImportExportExtensionsOperationResult>>
override this.CreateOrUpdateDatabaseExtensionAsync : Azure.WaitUntil * string * Azure.ResourceManager.Sql.Models.SqlDatabaseExtension * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.Models.ImportExportExtensionsOperationResult>>
Public Overridable Function CreateOrUpdateDatabaseExtensionAsync (waitUntil As WaitUntil, extensionName As String, sqlDatabaseExtension As SqlDatabaseExtension, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ImportExportExtensionsOperationResult))

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.

extensionName
String

The String to use.

sqlDatabaseExtension
SqlDatabaseExtension

The database import request parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

extensionName is an empty string, and was expected to be non-empty.

extensionName or sqlDatabaseExtension is null.

Applies to