Partilhar via


ConnectedVMwarevSphereExtensions.GetVMwareDatastores Method

Definition

Overloads

GetVMwareDatastores(ResourceGroupResource)

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

GetVMwareDatastores(SubscriptionResource, CancellationToken)

List of datastores in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/datastores
  • Operation Id: Datastores_List
  • Default Api Version: 2023-12-01
  • Resource: VMwareDatastoreResource

GetVMwareDatastores(ResourceGroupResource)

Source:
ConnectedVMwarevSphereExtensions.cs
Source:
ConnectedVMwarevSphereExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of VMwareDatastoreResources and their operations over a VMwareDatastoreResource.

Exceptions

resourceGroupResource is null.

Applies to

GetVMwareDatastores(SubscriptionResource, CancellationToken)

Source:
ConnectedVMwarevSphereExtensions.cs
Source:
ConnectedVMwarevSphereExtensions.cs

List of datastores in a subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to