SapMonitorCollection.CreateOrUpdateAsync Method

Definition

Creates a SAP monitor for the specified subscription, resource group, and resource name.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/monitors/{monitorName}
  • Operation Id: monitors_Create
  • Default Api Version: 2023-04-01
  • Resource: SapMonitorResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Workloads.SapMonitorResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string monitorName, Azure.ResourceManager.Workloads.SapMonitorData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Workloads.SapMonitorData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Workloads.SapMonitorResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Workloads.SapMonitorData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Workloads.SapMonitorResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, monitorName As String, data As SapMonitorData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SapMonitorResource))

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.

monitorName
String

Name of the SAP monitor resource.

data
SapMonitorData

Request body representing a SAP monitor.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

monitorName or data is null.

Applies to