다음을 통해 공유


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.

public static Azure.ResourceManager.RedisEnterprise.RedisEnterpriseClusterCollection GetRedisEnterpriseClusters (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetRedisEnterpriseClusters : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.RedisEnterprise.RedisEnterpriseClusterCollection
<Extension()>
Public Function GetRedisEnterpriseClusters (resourceGroupResource As ResourceGroupResource) As RedisEnterpriseClusterCollection

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

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
public static Azure.Pageable<Azure.ResourceManager.RedisEnterprise.RedisEnterpriseClusterResource> GetRedisEnterpriseClusters (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetRedisEnterpriseClusters : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.RedisEnterprise.RedisEnterpriseClusterResource>
<Extension()>
Public Function GetRedisEnterpriseClusters (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of RedisEnterpriseClusterResource)

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