Condividi tramite


CosmosDBExtensions.GetCassandraClusters Method

Definition

Overloads

GetCassandraClusters(ResourceGroupResource)

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

GetCassandraClusters(SubscriptionResource, CancellationToken)

List all managed Cassandra clusters in this subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/cassandraClusters
  • Operation Id: CassandraClusters_ListBySubscription
  • Default Api Version: 2024-09-01-preview
  • Resource: CassandraClusterResource

GetCassandraClusters(ResourceGroupResource)

Source:
CosmosDBExtensions.cs
Source:
CosmosDBExtensions.cs

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

public static Azure.ResourceManager.CosmosDB.CassandraClusterCollection GetCassandraClusters (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetCassandraClusters : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.CosmosDB.CassandraClusterCollection
<Extension()>
Public Function GetCassandraClusters (resourceGroupResource As ResourceGroupResource) As CassandraClusterCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of CassandraClusterResources and their operations over a CassandraClusterResource.

Exceptions

resourceGroupResource is null.

Applies to

GetCassandraClusters(SubscriptionResource, CancellationToken)

Source:
CosmosDBExtensions.cs
Source:
CosmosDBExtensions.cs

List all managed Cassandra clusters in this subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/cassandraClusters
  • Operation Id: CassandraClusters_ListBySubscription
  • Default Api Version: 2024-09-01-preview
  • Resource: CassandraClusterResource
public static Azure.Pageable<Azure.ResourceManager.CosmosDB.CassandraClusterResource> GetCassandraClusters (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetCassandraClusters : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CosmosDB.CassandraClusterResource>
<Extension()>
Public Function GetCassandraClusters (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of CassandraClusterResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to