ConnectedVMwarevSphereExtensions.GetVMwareHosts Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
|
GetVMwareHosts(ResourceGroupResource)
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)
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.