Partager via


RedisExtensions Class

Definition

A class to add extension methods to Azure.ResourceManager.Redis.

public static class RedisExtensions
type RedisExtensions = class
Public Module RedisExtensions
Inheritance
RedisExtensions

Methods

CheckRedisNameAvailability(SubscriptionResource, RedisNameAvailabilityContent, CancellationToken)

Checks that the redis cache name is valid and is not already in use.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Cache/CheckNameAvailability
  • Operation Id: Redis_CheckNameAvailability
  • Default Api Version: 2024-03-01
  • Resource: RedisResource
CheckRedisNameAvailabilityAsync(SubscriptionResource, RedisNameAvailabilityContent, CancellationToken)

Checks that the redis cache name is valid and is not already in use.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Cache/CheckNameAvailability
  • Operation Id: Redis_CheckNameAvailability
  • Default Api Version: 2024-03-01
  • Resource: RedisResource
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
GetAllRedisAsync(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
GetAsyncOperationStatus(SubscriptionResource, AzureLocation, String, CancellationToken)

For checking the ongoing status of an operation

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/asyncOperations/{operationId}
  • Operation Id: AsyncOperationStatus_Get
  • Default Api Version: 2024-03-01
GetAsyncOperationStatusAsync(SubscriptionResource, AzureLocation, String, CancellationToken)

For checking the ongoing status of an operation

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/asyncOperations/{operationId}
  • Operation Id: AsyncOperationStatus_Get
  • Default Api Version: 2024-03-01
GetRedis(ResourceGroupResource, String, CancellationToken)

Gets a Redis cache (resource description).

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}
  • Operation Id: Redis_Get
  • Default Api Version: 2024-03-01
  • Resource: RedisResource
GetRedisAsync(ResourceGroupResource, String, CancellationToken)

Gets a Redis cache (resource description).

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}
  • Operation Id: Redis_Get
  • Default Api Version: 2024-03-01
  • Resource: RedisResource
GetRedisCacheAccessPolicyAssignmentResource(ArmClient, ResourceIdentifier)

Gets an object representing a RedisCacheAccessPolicyAssignmentResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a RedisCacheAccessPolicyAssignmentResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetRedisCacheAccessPolicyAssignmentResource(ResourceIdentifier) instead.

GetRedisCacheAccessPolicyResource(ArmClient, ResourceIdentifier)

Gets an object representing a RedisCacheAccessPolicyResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a RedisCacheAccessPolicyResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetRedisCacheAccessPolicyResource(ResourceIdentifier) instead.

GetRedisFirewallRuleResource(ArmClient, ResourceIdentifier)

Gets an object representing a RedisFirewallRuleResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a RedisFirewallRuleResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetRedisFirewallRuleResource(ResourceIdentifier) instead.

GetRedisLinkedServerWithPropertyResource(ArmClient, ResourceIdentifier)

Gets an object representing a RedisLinkedServerWithPropertyResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a RedisLinkedServerWithPropertyResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetRedisLinkedServerWithPropertyResource(ResourceIdentifier) instead.

GetRedisPatchScheduleResource(ArmClient, ResourceIdentifier)

Gets an object representing a RedisPatchScheduleResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, RedisPatchScheduleDefaultName) to create a RedisPatchScheduleResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetRedisPatchScheduleResource(ResourceIdentifier) instead.

GetRedisPrivateEndpointConnectionResource(ArmClient, ResourceIdentifier)

Gets an object representing a RedisPrivateEndpointConnectionResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a RedisPrivateEndpointConnectionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetRedisPrivateEndpointConnectionResource(ResourceIdentifier) instead.

GetRedisResource(ArmClient, ResourceIdentifier)

Gets an object representing a RedisResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a RedisResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetRedisResource(ResourceIdentifier) instead.

Applies to