共用方式為


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