Freigeben über


ConnectedVMwarevSphereExtensions.GetVMwareHosts Method

Definition

Overloads

GetVMwareHosts(ResourceGroupResource)

Gets a collection of VMwareHostResources in the ResourceGroupResource. MockingTo mock this method, please mock GetVMwareHosts() instead.

GetVMwareHosts(SubscriptionResource, CancellationToken)

List of hosts in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/hosts
  • Operation Id: Hosts_List
  • Default Api Version: 2023-12-01
  • Resource: VMwareHostResource

GetVMwareHosts(ResourceGroupResource)

Source:
ConnectedVMwarevSphereExtensions.cs
Source:
ConnectedVMwarevSphereExtensions.cs

Gets a collection of VMwareHostResources in the ResourceGroupResource. MockingTo mock this method, please mock GetVMwareHosts() instead.

public static Azure.ResourceManager.ConnectedVMwarevSphere.VMwareHostCollection GetVMwareHosts (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetVMwareHosts : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ConnectedVMwarevSphere.VMwareHostCollection
<Extension()>
Public Function GetVMwareHosts (resourceGroupResource As ResourceGroupResource) As VMwareHostCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of VMwareHostResources and their operations over a VMwareHostResource.

Exceptions

resourceGroupResource is null.

Applies to

GetVMwareHosts(SubscriptionResource, CancellationToken)

Source:
ConnectedVMwarevSphereExtensions.cs
Source:
ConnectedVMwarevSphereExtensions.cs

List of hosts in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/hosts
  • Operation Id: Hosts_List
  • Default Api Version: 2023-12-01
  • Resource: VMwareHostResource
public static Azure.Pageable<Azure.ResourceManager.ConnectedVMwarevSphere.VMwareHostResource> GetVMwareHosts (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetVMwareHosts : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ConnectedVMwarevSphere.VMwareHostResource>
<Extension()>
Public Function GetVMwareHosts (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of VMwareHostResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of VMwareHostResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to