RedisEnterpriseExtensions.GetRedisEnterpriseClusters Method

Definition

Overloads

GetRedisEnterpriseClusters(ResourceGroupResource)

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

GetRedisEnterpriseClusters(SubscriptionResource, CancellationToken)

Lists all Redis Enterprise clusters in the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Cache/redisEnterprise
  • Operation Id: RedisEnterprise_List
  • Default Api Version: 2024-09-01-preview
  • Resource: RedisEnterpriseClusterResource

GetRedisEnterpriseClusters(ResourceGroupResource)

Source:
RedisEnterpriseExtensions.cs
Source:
RedisEnterpriseExtensions.cs

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

C#
public static Azure.ResourceManager.RedisEnterprise.RedisEnterpriseClusterCollection GetRedisEnterpriseClusters(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of RedisEnterpriseClusterResources and their operations over a RedisEnterpriseClusterResource.

Exceptions

resourceGroupResource is null.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

GetRedisEnterpriseClusters(SubscriptionResource, CancellationToken)

Source:
RedisEnterpriseExtensions.cs
Source:
RedisEnterpriseExtensions.cs

Lists all Redis Enterprise clusters in the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Cache/redisEnterprise
  • Operation Id: RedisEnterprise_List
  • Default Api Version: 2024-09-01-preview
  • Resource: RedisEnterpriseClusterResource
C#
public static Azure.Pageable<Azure.ResourceManager.RedisEnterprise.RedisEnterpriseClusterResource> GetRedisEnterpriseClusters(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview