Share via


HealthModelCollection.CreateOrUpdate Method

Definition

Create a HealthModel

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CloudHealth/healthmodels/{healthModelName}
  • Operation Id: HealthModel_Create
  • Default Api Version: 2025-05-01-preview
  • Resource: HealthModelResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CloudHealth.HealthModelResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string healthModelName, Azure.ResourceManager.CloudHealth.HealthModelData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.CloudHealth.HealthModelData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CloudHealth.HealthModelResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.CloudHealth.HealthModelData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CloudHealth.HealthModelResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, healthModelName As String, data As HealthModelData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of HealthModelResource)

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.

healthModelName
String

Name of health model resource.

data
HealthModelData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

healthModelName or data is null.

Applies to