다음을 통해 공유


RedisExtensions.GetAllRedis Method

Definition

Overloads

GetAllRedis(ResourceGroupResource)

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

GetAllRedis(SubscriptionResource, CancellationToken)

Gets all Redis caches in the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Cache/redis
  • Operation Id: Redis_ListBySubscription
  • Default Api Version: 2024-03-01
  • Resource: RedisResource

GetAllRedis(ResourceGroupResource)

Source:
RedisExtensions.cs
Source:
RedisExtensions.cs

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

public static Azure.ResourceManager.Redis.RedisCollection GetAllRedis (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetAllRedis : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Redis.RedisCollection
<Extension()>
Public Function GetAllRedis (resourceGroupResource As ResourceGroupResource) As RedisCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of RedisResources and their operations over a RedisResource.

Exceptions

resourceGroupResource is null.

Applies to

GetAllRedis(SubscriptionResource, CancellationToken)

Source:
RedisExtensions.cs
Source:
RedisExtensions.cs

Gets all Redis caches in the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Cache/redis
  • Operation Id: Redis_ListBySubscription
  • Default Api Version: 2024-03-01
  • Resource: RedisResource
public static Azure.Pageable<Azure.ResourceManager.Redis.RedisResource> GetAllRedis (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetAllRedis : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Redis.RedisResource>
<Extension()>
Public Function GetAllRedis (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of RedisResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to