다음을 통해 공유


SapInstanceCollection.CreateOrUpdate Method

Definition

Creates the SAP Instance resource. <br><br>This will be used by service only. PUT operation on this resource by end user will return a Bad Request error.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapDiscoverySites/{sapDiscoverySiteName}/sapInstances/{sapInstanceName}
  • Operation Id: SapInstances_Create
  • Default Api Version: 2023-10-01-preview
  • Resource: SapInstanceResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MigrationDiscoverySap.SapInstanceResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string sapInstanceName, Azure.ResourceManager.MigrationDiscoverySap.SapInstanceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.MigrationDiscoverySap.SapInstanceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MigrationDiscoverySap.SapInstanceResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.MigrationDiscoverySap.SapInstanceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MigrationDiscoverySap.SapInstanceResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, sapInstanceName As String, data As SapInstanceData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of SapInstanceResource)

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.

sapInstanceName
String

The name of SAP Instance resource for SAP Migration.

data
SapInstanceData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

sapInstanceName or data is null.

Applies to