你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MongoClusterExtensions.GetMongoClusters Method

Definition

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.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/mongoClusters
  • Operation Id: MongoCluster_List
  • Default Api Version: 2024-07-01
  • Resource: MongoClusterResource

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