Skip to content

Commit a380920

Browse files
authored
Davidgrebb redisenterprise microsoft.cache 2023 08 01 preview 3 (#25485)
* Adds base for updating Microsoft.Cache from version preview/2023-03-01-preview to version 2023-08-01-preview * Updates readme * Updates API version in new specs and examples * Adding CheckNameAvailability operation, and new resource states * Adding flush type to match stable release version
1 parent eee647a commit a380920

29 files changed

+3341
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-08-01-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"name": "Microsoft.Cache/redisEnterprise/read",
11+
"display": {
12+
"provider": "Microsoft Cache",
13+
"resource": "Redis Enterprise cache",
14+
"operation": "Manage Redis Enterprise cache (read)",
15+
"description": "View the Redis Enterprise cache's settings and configuration in the management portal"
16+
}
17+
},
18+
{
19+
"name": "Microsoft.Cache/redisEnterprise/write",
20+
"display": {
21+
"provider": "Microsoft Cache",
22+
"resource": "Redis Enterprise cache",
23+
"operation": "Manage Redis Enterprise cache (write)",
24+
"description": "Modify the Redis Enterprise cache's settings and configuration in the management portal"
25+
}
26+
}
27+
]
28+
}
29+
}
30+
}
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"location": "West US",
5+
"operationId": "testoperationid",
6+
"api-version": "2023-08-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/subid/providers/Microsoft.Cache/locations/westus/operationsStatus/testoperationid",
12+
"name": "testoperationid",
13+
"startTime": "2017-01-01T13:13:13.933Z",
14+
"endTime": "2017-01-01T16:13:13.933Z",
15+
"status": "Succeeded"
16+
}
17+
}
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-08-01-preview",
4+
"subscriptionId": "subid",
5+
"parameters": {
6+
"type": "Microsoft.Cache/redisenterprise",
7+
"name": "cacheName"
8+
}
9+
},
10+
"responses": {
11+
"204": {}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
{
2+
"parameters": {
3+
"clusterName": "cache1",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2023-08-01-preview",
6+
"subscriptionId": "subid",
7+
"parameters": {
8+
"location": "West US",
9+
"sku": {
10+
"name": "EnterpriseFlash_F300",
11+
"capacity": 3
12+
},
13+
"zones": [
14+
"1",
15+
"2",
16+
"3"
17+
],
18+
"identity": {
19+
"type": "UserAssigned",
20+
"userAssignedIdentities": {
21+
"/subscriptions/your-subscription/resourceGroups/your-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/your-identity": {}
22+
}
23+
},
24+
"properties": {
25+
"minimumTlsVersion": "1.2",
26+
"encryption": {
27+
"customerManagedKeyEncryption": {
28+
"keyEncryptionKeyIdentity": {
29+
"identityType": "userAssignedIdentity",
30+
"userAssignedIdentityResourceId": "/subscriptions/your-subscription/resourceGroups/your-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/your-identity"
31+
},
32+
"keyEncryptionKeyUrl": "https://your-kv.vault.azure.net/keys/your-key/your-key-version"
33+
}
34+
}
35+
},
36+
"tags": {
37+
"tag1": "value1"
38+
}
39+
}
40+
},
41+
"responses": {
42+
"201": {
43+
"body": {
44+
"name": "cache1",
45+
"type": "Microsoft.Cache/redisEnterprise",
46+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1",
47+
"location": "West US",
48+
"sku": {
49+
"name": "EnterpriseFlash_F300",
50+
"capacity": 3
51+
},
52+
"zones": [
53+
"1",
54+
"2",
55+
"3"
56+
],
57+
"identity": {
58+
"type": "UserAssigned",
59+
"userAssignedIdentities": {
60+
"/subscriptions/your-subscription/resourceGroups/your-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/your-identity": {
61+
"principalId": "00000000-0000-0000-0000-000000000000",
62+
"clientId": "00000000-0000-0000-0000-000000000000"
63+
}
64+
}
65+
},
66+
"properties": {
67+
"provisioningState": "Creating",
68+
"resourceState": "Creating",
69+
"hostName": "cache1.westus.something.azure.net",
70+
"redisVersion": "5",
71+
"minimumTlsVersion": "1.2",
72+
"encryption": {
73+
"customerManagedKeyEncryption": {
74+
"keyEncryptionKeyIdentity": {
75+
"userAssignedIdentityResourceId": "/subscriptions/your-subscription/resourceGroups/your-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/your-identity",
76+
"identityType": "userAssignedIdentity"
77+
},
78+
"keyEncryptionKeyUrl": "https://your-kv.vault.azure.net/keys/your-key/your-key-version"
79+
}
80+
}
81+
},
82+
"tags": {
83+
"tag1": "value1"
84+
}
85+
}
86+
},
87+
"200": {
88+
"body": {
89+
"name": "cache1",
90+
"type": "Microsoft.Cache/redisEnterprise",
91+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1",
92+
"location": "West US",
93+
"sku": {
94+
"name": "EnterpriseFlash_F300",
95+
"capacity": 3
96+
},
97+
"zones": [
98+
"1",
99+
"2",
100+
"3"
101+
],
102+
"identity": {
103+
"type": "UserAssigned",
104+
"userAssignedIdentities": {
105+
"/subscriptions/your-subscription/resourceGroups/your-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/your-identity": {
106+
"principalId": "00000000-0000-0000-0000-000000000000",
107+
"clientId": "00000000-0000-0000-0000-000000000000"
108+
}
109+
}
110+
},
111+
"properties": {
112+
"provisioningState": "Succeeded",
113+
"resourceState": "Running",
114+
"hostName": "cache1.westus.something.azure.net",
115+
"redisVersion": "5",
116+
"minimumTlsVersion": "1.2"
117+
},
118+
"tags": {
119+
"tag1": "value1"
120+
}
121+
}
122+
}
123+
}
124+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
{
2+
"parameters": {
3+
"databaseName": "default",
4+
"clusterName": "cache1",
5+
"resourceGroupName": "rg1",
6+
"api-version": "2023-08-01-preview",
7+
"subscriptionId": "subid",
8+
"parameters": {
9+
"properties": {
10+
"clientProtocol": "Encrypted",
11+
"clusteringPolicy": "EnterpriseCluster",
12+
"evictionPolicy": "AllKeysLRU",
13+
"persistence": {
14+
"aofEnabled": true,
15+
"aofFrequency": "1s"
16+
},
17+
"port": 10000,
18+
"modules": [
19+
{
20+
"name": "RedisBloom",
21+
"args": "ERROR_RATE 0.00 INITIAL_SIZE 400"
22+
},
23+
{
24+
"name": "RedisTimeSeries",
25+
"args": "RETENTION_POLICY 20"
26+
},
27+
{
28+
"name": "RediSearch"
29+
}
30+
]
31+
}
32+
}
33+
},
34+
"responses": {
35+
"200": {
36+
"body": {
37+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default",
38+
"name": "cache1/default",
39+
"type": "Microsoft.Cache/redisEnterprise/databases",
40+
"properties": {
41+
"provisioningState": "Updating",
42+
"resourceState": "Updating",
43+
"clientProtocol": "Encrypted",
44+
"clusteringPolicy": "EnterpriseCluster",
45+
"evictionPolicy": "AllKeysLRU",
46+
"persistence": {
47+
"aofEnabled": true,
48+
"aofFrequency": "1s"
49+
},
50+
"port": 10000,
51+
"modules": [
52+
{
53+
"name": "RedisBloom",
54+
"args": "ERROR_RATE 0.00 INITIAL_SIZE 400",
55+
"version": "1.0.0"
56+
},
57+
{
58+
"name": "RedisTimeSeries",
59+
"args": "RETENTION_POLICY 20",
60+
"version": "1.0.0"
61+
},
62+
{
63+
"name": "RediSearch",
64+
"args": "",
65+
"version": "1.0.0"
66+
}
67+
]
68+
}
69+
}
70+
},
71+
"201": {
72+
"body": {
73+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/db1",
74+
"name": "cache1/db1",
75+
"type": "Microsoft.Cache/redisEnterprise/databases",
76+
"properties": {
77+
"provisioningState": "Creating",
78+
"resourceState": "Creating",
79+
"clientProtocol": "Encrypted",
80+
"clusteringPolicy": "EnterpriseCluster",
81+
"evictionPolicy": "AllKeysLRU",
82+
"persistence": {
83+
"aofEnabled": true,
84+
"aofFrequency": "1s"
85+
},
86+
"port": 10000,
87+
"modules": [
88+
{
89+
"name": "RedisBloom",
90+
"args": "ERROR_RATE 0.00 INITIAL_SIZE 400",
91+
"version": "1.0.0"
92+
},
93+
{
94+
"name": "RedisTimeSeries",
95+
"args": "RETENTION_POLICY 20",
96+
"version": "1.0.0"
97+
},
98+
{
99+
"name": "RediSearch",
100+
"args": "",
101+
"version": "1.0.0"
102+
}
103+
]
104+
}
105+
}
106+
}
107+
}
108+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
"parameters": {
3+
"databaseName": "default",
4+
"clusterName": "cache1",
5+
"resourceGroupName": "rg1",
6+
"api-version": "2023-08-01-preview",
7+
"subscriptionId": "subid1",
8+
"parameters": {
9+
"properties": {
10+
"clientProtocol": "Encrypted",
11+
"clusteringPolicy": "EnterpriseCluster",
12+
"evictionPolicy": "NoEviction",
13+
"port": 10000,
14+
"geoReplication": {
15+
"groupNickname": "groupName",
16+
"linkedDatabases": [
17+
{
18+
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"
19+
},
20+
{
21+
"id": "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"
22+
}
23+
]
24+
}
25+
}
26+
}
27+
},
28+
"responses": {
29+
"200": {
30+
"body": {
31+
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default",
32+
"name": "cache1/default",
33+
"type": "Microsoft.Cache/redisEnterprise/databases",
34+
"properties": {
35+
"provisioningState": "Updating",
36+
"resourceState": "Updating",
37+
"clientProtocol": "Encrypted",
38+
"clusteringPolicy": "EnterpriseCluster",
39+
"evictionPolicy": "NoEviction",
40+
"port": 10000,
41+
"geoReplication": {
42+
"groupNickname": "groupName",
43+
"linkedDatabases": [
44+
{
45+
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default",
46+
"state": "Linking"
47+
},
48+
{
49+
"id": "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default",
50+
"state": "Linking"
51+
}
52+
]
53+
}
54+
}
55+
}
56+
},
57+
"201": {
58+
"body": {
59+
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/db1",
60+
"name": "cache1/db1",
61+
"type": "Microsoft.Cache/redisEnterprise/databases",
62+
"properties": {
63+
"provisioningState": "Creating",
64+
"resourceState": "Creating",
65+
"clientProtocol": "Plaintext",
66+
"clusteringPolicy": "EnterpriseCluster",
67+
"evictionPolicy": "NoEviction",
68+
"port": 10000,
69+
"geoReplication": {
70+
"groupNickname": "groupName",
71+
"linkedDatabases": [
72+
{
73+
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default",
74+
"state": "Linking"
75+
},
76+
{
77+
"id": "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default",
78+
"state": "Linking"
79+
}
80+
]
81+
}
82+
}
83+
}
84+
}
85+
}
86+
}

0 commit comments

Comments
 (0)