SapDatabaseInstanceCollection.CreateOrUpdateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Workloads.SapDatabaseInstanceResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string databaseInstanceName, Azure.ResourceManager.Workloads.SapDatabaseInstanceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Workloads.SapDatabaseInstanceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Workloads.SapDatabaseInstanceResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Workloads.SapDatabaseInstanceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Workloads.SapDatabaseInstanceResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, databaseInstanceName As String, data As SapDatabaseInstanceData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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.
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
Azure SDK for .NET