MongoClusterExtensions.GetMongoClusters 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
GetMongoClusters(ResourceGroupResource) |
Gets a collection of MongoClusterResources in the ResourceGroupResource. MockingTo mock this method, please mock GetMongoClusters() instead. |
GetMongoClusters(SubscriptionResource, CancellationToken) |
List all the mongo clusters in a given subscription.
|
GetMongoClusters(ResourceGroupResource)
- Source:
- MongoClusterExtensions.cs
Gets a collection of MongoClusterResources in the ResourceGroupResource. MockingTo mock this method, please mock GetMongoClusters() instead.
public static Azure.ResourceManager.MongoCluster.MongoClusterCollection GetMongoClusters (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetMongoClusters : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.MongoCluster.MongoClusterCollection
<Extension()>
Public Function GetMongoClusters (resourceGroupResource As ResourceGroupResource) As MongoClusterCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of MongoClusterResources and their operations over a MongoClusterResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetMongoClusters(SubscriptionResource, CancellationToken)
- Source:
- MongoClusterExtensions.cs
List all the mongo clusters in a given subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/mongoClusters
- Operation Id: MongoCluster_List
- Default Api Version: 2024-07-01
- Resource: MongoClusterResource
public static Azure.Pageable<Azure.ResourceManager.MongoCluster.MongoClusterResource> GetMongoClusters (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetMongoClusters : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.MongoCluster.MongoClusterResource>
<Extension()>
Public Function GetMongoClusters (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of MongoClusterResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of MongoClusterResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET