Dela via


SqlDatabaseResource.CreateOrUpdateDatabaseExtension 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.Models.ImportExportExtensionsOperationResult> CreateOrUpdateDatabaseExtension (Azure.WaitUntil waitUntil, string extensionName, Azure.ResourceManager.Sql.Models.SqlDatabaseExtension sqlDatabaseExtension, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateDatabaseExtension : Azure.WaitUntil * string * Azure.ResourceManager.Sql.Models.SqlDatabaseExtension * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.Models.ImportExportExtensionsOperationResult>
override this.CreateOrUpdateDatabaseExtension : Azure.WaitUntil * string * Azure.ResourceManager.Sql.Models.SqlDatabaseExtension * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.Models.ImportExportExtensionsOperationResult>
Public Overridable Function CreateOrUpdateDatabaseExtension (waitUntil As WaitUntil, extensionName As String, sqlDatabaseExtension As SqlDatabaseExtension, Optional cancellationToken As CancellationToken = Nothing) As 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