SapMonitorCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Workloads.SapMonitorResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string monitorName, Azure.ResourceManager.Workloads.SapMonitorData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Workloads.SapMonitorData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Workloads.SapMonitorResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Workloads.SapMonitorData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Workloads.SapMonitorResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, monitorName As String, data As SapMonitorData, Optional cancellationToken As CancellationToken = Nothing) As 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