Dela via


SapDatabaseInstanceCollection.CreateOrUpdate Method

Definition

Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. <br><br>This will be used by service only. PUT by end user will return a Bad Request error.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}/databaseInstances/{databaseInstanceName}
  • Operation Id: SAPDatabaseInstances_Create
  • Default Api Version: 2023-04-01
  • Resource: SapDatabaseInstanceResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Workloads.SapDatabaseInstanceResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string databaseInstanceName, Azure.ResourceManager.Workloads.SapDatabaseInstanceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Workloads.SapDatabaseInstanceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Workloads.SapDatabaseInstanceResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Workloads.SapDatabaseInstanceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Workloads.SapDatabaseInstanceResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, databaseInstanceName As String, data As SapDatabaseInstanceData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of SapDatabaseInstanceResource)

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.

databaseInstanceName
String

Database resource name string modeled as parameter for auto generation to work correctly.

data
SapDatabaseInstanceData

Request body of Database resource of a SAP system.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

databaseInstanceName or data is null.

Applies to