Share via


ComputeFleetExtensions.GetComputeFleets Method

Definition

Overloads

GetComputeFleets(ResourceGroupResource)

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

GetComputeFleets(SubscriptionResource, CancellationToken)

List Fleet resources by subscription ID

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AzureFleet/fleets
  • Operation Id: Fleet_ListBySubscription
  • Default Api Version: 2024-11-01
  • Resource: ComputeFleetResource

GetComputeFleets(ResourceGroupResource)

Source:
ComputeFleetExtensions.cs
Source:
ComputeFleetExtensions.cs

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

public static Azure.ResourceManager.ComputeFleet.ComputeFleetCollection GetComputeFleets (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetComputeFleets : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ComputeFleet.ComputeFleetCollection
<Extension()>
Public Function GetComputeFleets (resourceGroupResource As ResourceGroupResource) As ComputeFleetCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ComputeFleetResources and their operations over a ComputeFleetResource.

Exceptions

resourceGroupResource is null.

Applies to

GetComputeFleets(SubscriptionResource, CancellationToken)

Source:
ComputeFleetExtensions.cs
Source:
ComputeFleetExtensions.cs

List Fleet resources by subscription ID

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AzureFleet/fleets
  • Operation Id: Fleet_ListBySubscription
  • Default Api Version: 2024-11-01
  • Resource: ComputeFleetResource
public static Azure.Pageable<Azure.ResourceManager.ComputeFleet.ComputeFleetResource> GetComputeFleets (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetComputeFleets : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ComputeFleet.ComputeFleetResource>
<Extension()>
Public Function GetComputeFleets (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ComputeFleetResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to