diff --git a/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/examples/RedisEnterpriseDatabasesNoClusterCacheCreate.json b/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/examples/RedisEnterpriseDatabasesNoClusterCacheCreate.json new file mode 100644 index 000000000000..83d09d1a0c0b --- /dev/null +++ b/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/examples/RedisEnterpriseDatabasesNoClusterCacheCreate.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "databaseName": "default", + "clusterName": "cache1", + "resourceGroupName": "rg1", + "api-version": "2025-05-01-preview", + "subscriptionId": "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f", + "parameters": { + "properties": { + "clientProtocol": "Encrypted", + "clusteringPolicy": "NoCluster", + "evictionPolicy": "NoEviction", + "port": 10000 + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default", + "name": "cache1/default", + "type": "Microsoft.Cache/redisEnterprise/databases", + "properties": { + "clientProtocol": "Encrypted", + "port": 10000, + "provisioningState": "Creating", + "resourceState": "Creating", + "clusteringPolicy": "NoCluster", + "evictionPolicy": "NoEviction", + "keySpaceNotification": "", + "deferUpgrade": "NotDeferred", + "redisVersion": "7.2", + "accessKeysAuthentication": "Enabled" + } + } + } + } +} \ No newline at end of file diff --git a/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/examples/RedisEnterpriseDatabasesNoClusterCacheUpdateClustering.json b/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/examples/RedisEnterpriseDatabasesNoClusterCacheUpdateClustering.json new file mode 100644 index 000000000000..bc2ec52d0a12 --- /dev/null +++ b/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/examples/RedisEnterpriseDatabasesNoClusterCacheUpdateClustering.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "databaseName": "default", + "clusterName": "cache1", + "resourceGroupName": "rg1", + "api-version": "2025-05-01-preview", + "subscriptionId": "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f", + "parameters": { + "properties": { + "clientProtocol": "Encrypted", + "clusteringPolicy": "EnterpriseCluster", + "evictionPolicy": "NoEviction", + "port": 10000 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default", + "name": "cache1/default", + "type": "Microsoft.Cache/redisEnterprise/databases", + "properties": { + "clientProtocol": "Encrypted", + "port": 10000, + "provisioningState": "Updating", + "resourceState": "Updating", + "clusteringPolicy": "EnterpriseCluster", + "evictionPolicy": "NoEviction", + "keySpaceNotification": "", + "deferUpgrade": "NotDeferred", + "redisVersion": "7.2", + "accessKeysAuthentication": "Enabled" + } + } + } + } +} \ No newline at end of file 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 27ca479068c4..c6f7014e69a1 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 @@ -485,6 +485,9 @@ }, "RedisEnterpriseDatabasesCreate With Active Geo Replication": { "$ref": "./examples/RedisEnterpriseDatabasesCreateWithGeoReplication.json" + }, + "RedisEnterpriseDatabasesCreate No Cluster Cache": { + "$ref": "./examples/RedisEnterpriseDatabasesNoClusterCacheCreate.json" } }, "parameters": [ @@ -548,6 +551,9 @@ "x-ms-examples": { "RedisEnterpriseDatabasesUpdate": { "$ref": "./examples/RedisEnterpriseDatabasesUpdate.json" + }, + "RedisEnterpriseDatabasesUpdate Clustering on No Cluster Cache": { + "$ref": "./examples/RedisEnterpriseDatabasesNoClusterCacheUpdateClustering.json" } }, "parameters": [ @@ -2137,14 +2143,16 @@ }, "clusteringPolicy": { "type": "string", - "description": "Clustering policy - default is OSSCluster. This property must be chosen at create time, and cannot be changed without deleting the database.", + "description": "Clustering policy - default is OSSCluster. This property can be updated only if the current value is NoCluster. If the value is OSSCluster or EnterpriseCluster, it cannot be updated without deleting the database.", "enum": [ "EnterpriseCluster", - "OSSCluster" + "OSSCluster", + "NoCluster" ], "x-ms-mutability": [ "read", - "create" + "create", + "update" ], "x-ms-enum": { "name": "ClusteringPolicy", @@ -2159,6 +2167,11 @@ "value": "OSSCluster", "name": "OSSCluster", "description": "OSS clustering policy follows the redis cluster specification, and requires all clients to support redis clustering." + }, + { + "value": "NoCluster", + "name": "NoCluster", + "description": "The NoCluster policy is used for non-clustered Redis instances that do not require clustering features." } ] }