From abb96eaac28107daccb8d0bf50298adfe95b8291 Mon Sep 17 00:00:00 2001 From: Mariano Rodriguez <1547454+marianor@users.noreply.github.com> Date: Fri, 28 Mar 2025 11:11:54 -0400 Subject: [PATCH 1/2] Add ListSkusForScaling API and make the Database.Flush request optional --- .../RedisEnterpriseListSkusForScaling.json | 28 +++++++ .../2025-05-01-preview/redisenterprise.json | 79 ++++++++++++++++++- 2 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/examples/RedisEnterpriseListSkusForScaling.json diff --git a/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/examples/RedisEnterpriseListSkusForScaling.json b/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/examples/RedisEnterpriseListSkusForScaling.json new file mode 100644 index 000000000000..e0b3b11e01c0 --- /dev/null +++ b/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/examples/RedisEnterpriseListSkusForScaling.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "clusterName": "cache1", + "resourceGroupName": "rg1", + "api-version": "2025-05-01-preview", + "subscriptionId": "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f" + }, + "responses": { + "200": { + "body": { + "skus": [ + { + "name": "MemoryOptimized_M100", + "customerFacingSizeInGb": 120.0 + }, + { + "name": "ComputeOptimized_X700", + "customerFacingSizeInGb": 720.0 + }, + { + "name": "Balanced_B5", + "customerFacingSizeInGb": 6.0 + } + ] + } + } + } +} diff --git a/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/redisenterprise.json b/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/redisenterprise.json index c6f7014e69a1..13fcb44b5e8c 100644 --- a/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/redisenterprise.json +++ b/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/redisenterprise.json @@ -1213,6 +1213,48 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/listskusforscaling": { + "post": { + "tags": [ + "RedisEnterprise" + ], + "operationId": "RedisEnterprise_ListSkusForScaling", + "description": "Lists the available SKUs for scaling the Redis Enterprise cluster.", + "x-ms-examples": { + "RedisEnterpriseListSkusForScaling": { + "$ref": "./examples/RedisEnterpriseListSkusForScaling.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Retuns the available SKUs for scaling up or scaling down.", + "schema": { + "$ref": "#/definitions/SkuDetailsList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections": { "get": { "tags": [ @@ -1630,7 +1672,7 @@ { "name": "parameters", "in": "body", - "required": true, + "required": false, "schema": { "$ref": "#/definitions/FlushParameters" }, @@ -2645,6 +2687,41 @@ } }, "description": "Parameters for a Redis Enterprise active geo-replication flush operation" + }, + "SkuDetails": { + "title": "SKU details", + "description": "The SKU details of every Redis Enterprise cluster.", + "type": "object", + "properties": { + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the SKU." + }, + "customerFacingSizeInGb": { + "readOnly": true, + "type": "number", + "description": "The size in GB of the cache." + } + } + }, + "SkuDetailsList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SkuDetails" + }, + "description": "List of SKUS available to scale up or scale down." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "The URI to fetch the next page of results." + } + }, + "description": "The response of a listskusforscaling operation." } }, "parameters": { From 0d4b5edbcfb79a0e350834ad02454ec3c7bd12cf Mon Sep 17 00:00:00 2001 From: Mariano Rodriguez <1547454+marianor@users.noreply.github.com> Date: Fri, 28 Mar 2025 13:45:18 -0400 Subject: [PATCH 2/2] Address PR comments --- .../preview/2025-05-01-preview/redisenterprise.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/redisenterprise.json b/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/redisenterprise.json index 13fcb44b5e8c..305c3c94cb89 100644 --- a/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/redisenterprise.json +++ b/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/redisenterprise.json @@ -1252,6 +1252,9 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -2690,7 +2693,7 @@ }, "SkuDetails": { "title": "SKU details", - "description": "The SKU details of every Redis Enterprise cluster.", + "description": "Details of a Redis Enterprise cluster SKU.", "type": "object", "properties": { "name": { @@ -2701,7 +2704,7 @@ "customerFacingSizeInGb": { "readOnly": true, "type": "number", - "description": "The size in GB of the cache." + "description": "The cache size in GB." } } },