Share via


ConnectedVMwarevSphereExtensions.GetVMwareVCenters Method

Definition

Overloads

GetVMwareVCenters(ResourceGroupResource)

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

GetVMwareVCenters(SubscriptionResource, CancellationToken)

List of vCenters in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/vcenters
  • Operation Id: VCenters_List
  • Default Api Version: 2023-12-01
  • Resource: VMwareVCenterResource

GetVMwareVCenters(ResourceGroupResource)

Source:
ConnectedVMwarevSphereExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of VMwareVCenterResources and their operations over a VMwareVCenterResource.

Exceptions

resourceGroupResource is null.

Applies to

GetVMwareVCenters(SubscriptionResource, CancellationToken)

Source:
ConnectedVMwarevSphereExtensions.cs

List of vCenters in a subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to