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..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 @@ -1213,6 +1213,51 @@ } } }, + "/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" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections": { "get": { "tags": [ @@ -1630,7 +1675,7 @@ { "name": "parameters", "in": "body", - "required": true, + "required": false, "schema": { "$ref": "#/definitions/FlushParameters" }, @@ -2645,6 +2690,41 @@ } }, "description": "Parameters for a Redis Enterprise active geo-replication flush operation" + }, + "SkuDetails": { + "title": "SKU details", + "description": "Details of a Redis Enterprise cluster SKU.", + "type": "object", + "properties": { + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the SKU." + }, + "customerFacingSizeInGb": { + "readOnly": true, + "type": "number", + "description": "The cache size in GB." + } + } + }, + "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": {