ContainerServiceFleetExtensions.GetContainerServiceFleets 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
GetContainerServiceFleets(ResourceGroupResource) |
Gets a collection of ContainerServiceFleetResources in the ResourceGroupResource. MockingTo mock this method, please mock GetContainerServiceFleets() instead. |
GetContainerServiceFleets(SubscriptionResource, CancellationToken) |
Lists fleets in the specified subscription.
|
GetContainerServiceFleets(ResourceGroupResource)
Gets a collection of ContainerServiceFleetResources in the ResourceGroupResource. MockingTo mock this method, please mock GetContainerServiceFleets() instead.
public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetCollection GetContainerServiceFleets (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetContainerServiceFleets : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetCollection
<Extension()>
Public Function GetContainerServiceFleets (resourceGroupResource As ResourceGroupResource) As ContainerServiceFleetCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of ContainerServiceFleetResources and their operations over a ContainerServiceFleetResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetContainerServiceFleets(SubscriptionResource, CancellationToken)
Lists fleets in the specified subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/fleets
- Operation Id: Fleets_ListBySubscription
- Default Api Version: 2024-05-02-preview
- Resource: ContainerServiceFleetResource
public static Azure.Pageable<Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetResource> GetContainerServiceFleets (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetContainerServiceFleets : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetResource>
<Extension()>
Public Function GetContainerServiceFleets (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ContainerServiceFleetResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ContainerServiceFleetResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET