Dela via


VMwareHostCollection.CreateOrUpdateAsync Method

Definition

Create Or Update host.

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

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.

hostName
String

Name of the host.

data
VMwareHostData

Request payload.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

hostName or data is null.

Applies to