SapDiscoveryServerInstanceCollection.CreateOrUpdateAsync Method

Definition

Creates the Server 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}/serverInstances/{serverInstanceName}
  • Operation Id: ServerInstances_Create
  • Default Api Version: 2023-10-01-preview
  • Resource: SapDiscoveryServerInstanceResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MigrationDiscoverySap.SapDiscoveryServerInstanceResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string serverInstanceName, Azure.ResourceManager.MigrationDiscoverySap.SapDiscoveryServerInstanceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.MigrationDiscoverySap.SapDiscoveryServerInstanceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MigrationDiscoverySap.SapDiscoveryServerInstanceResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.MigrationDiscoverySap.SapDiscoveryServerInstanceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MigrationDiscoverySap.SapDiscoveryServerInstanceResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, serverInstanceName As String, data As SapDiscoveryServerInstanceData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SapDiscoveryServerInstanceResource))

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.

serverInstanceName
String

The name of the Server instance resource for SAP Migration.

data
SapDiscoveryServerInstanceData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

serverInstanceName or data is null.

Applies to