ServiceFabricManagedClustersExtensions.GetServiceFabricManagedClusters 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
GetServiceFabricManagedClusters(ResourceGroupResource) |
Gets a collection of ServiceFabricManagedClusterResources in the ResourceGroupResource. MockingTo mock this method, please mock GetServiceFabricManagedClusters() instead. |
GetServiceFabricManagedClusters(SubscriptionResource, CancellationToken) |
Gets all Service Fabric cluster resources created or in the process of being created in the subscription.
|
GetServiceFabricManagedClusters(ResourceGroupResource)
Gets a collection of ServiceFabricManagedClusterResources in the ResourceGroupResource. MockingTo mock this method, please mock GetServiceFabricManagedClusters() instead.
public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedClusterCollection GetServiceFabricManagedClusters (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetServiceFabricManagedClusters : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedClusterCollection
<Extension()>
Public Function GetServiceFabricManagedClusters (resourceGroupResource As ResourceGroupResource) As ServiceFabricManagedClusterCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of ServiceFabricManagedClusterResources and their operations over a ServiceFabricManagedClusterResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetServiceFabricManagedClusters(SubscriptionResource, CancellationToken)
Gets all Service Fabric cluster resources created or in the process of being created in the subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/managedClusters
- Operation Id: ManagedClusters_ListBySubscription
- Default Api Version: 2024-09-01-preview
- Resource: ServiceFabricManagedClusterResource
public static Azure.Pageable<Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedClusterResource> GetServiceFabricManagedClusters (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetServiceFabricManagedClusters : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedClusterResource>
<Extension()>
Public Function GetServiceFabricManagedClusters (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ServiceFabricManagedClusterResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ServiceFabricManagedClusterResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.