|
| 1 | +{ |
| 2 | + "parameters": { |
| 3 | + "name": "cache1", |
| 4 | + "resourceGroupName": "rg1", |
| 5 | + "api-version": "2023-04-01", |
| 6 | + "subscriptionId": "subid", |
| 7 | + "parameters": { |
| 8 | + "location": "West US", |
| 9 | + "zones": [ |
| 10 | + "1" |
| 11 | + ], |
| 12 | + "properties": { |
| 13 | + "sku": { |
| 14 | + "name": "Premium", |
| 15 | + "family": "P", |
| 16 | + "capacity": 1 |
| 17 | + }, |
| 18 | + "redisVersion": "4", |
| 19 | + "enableNonSslPort": true, |
| 20 | + "shardCount": 2, |
| 21 | + "replicasPerPrimary": 2, |
| 22 | + "redisConfiguration": { |
| 23 | + "maxmemory-policy": "allkeys-lru" |
| 24 | + }, |
| 25 | + "subnetId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/network1/subnets/subnet1", |
| 26 | + "staticIP": "192.168.0.5", |
| 27 | + "minimumTlsVersion": "1.2" |
| 28 | + } |
| 29 | + } |
| 30 | + }, |
| 31 | + "responses": { |
| 32 | + "201": { |
| 33 | + "body": { |
| 34 | + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1", |
| 35 | + "location": "West US", |
| 36 | + "zones": [ |
| 37 | + "1" |
| 38 | + ], |
| 39 | + "name": "cache1", |
| 40 | + "type": "Microsoft.Cache/Redis", |
| 41 | + "tags": {}, |
| 42 | + "properties": { |
| 43 | + "accessKeys": { |
| 44 | + "primaryKey": "<primaryKey>", |
| 45 | + "secondaryKey": "<secondaryKey>" |
| 46 | + }, |
| 47 | + "provisioningState": "Succeeded", |
| 48 | + "redisVersion": "4.0.14", |
| 49 | + "sku": { |
| 50 | + "name": "Premium", |
| 51 | + "family": "P", |
| 52 | + "capacity": 1 |
| 53 | + }, |
| 54 | + "enableNonSslPort": false, |
| 55 | + "replicasPerMaster": 2, |
| 56 | + "replicasPerPrimary": 2, |
| 57 | + "redisConfiguration": { |
| 58 | + "maxmemory-policy": "allkeys-lru" |
| 59 | + }, |
| 60 | + "hostName": "cache1.redis.cache.windows.net", |
| 61 | + "port": 6379, |
| 62 | + "sslPort": 6380, |
| 63 | + "minimumTlsVersion": "1.2", |
| 64 | + "instances": [ |
| 65 | + { |
| 66 | + "sslPort": 15000, |
| 67 | + "nonSslPort": 13000, |
| 68 | + "zone": "1", |
| 69 | + "shardId": 0, |
| 70 | + "isMaster": true, |
| 71 | + "isPrimary": true |
| 72 | + }, |
| 73 | + { |
| 74 | + "sslPort": 15001, |
| 75 | + "nonSslPort": 13001, |
| 76 | + "zone": "1", |
| 77 | + "shardId": 0, |
| 78 | + "isMaster": false, |
| 79 | + "isPrimary": false |
| 80 | + }, |
| 81 | + { |
| 82 | + "sslPort": 15002, |
| 83 | + "nonSslPort": 13002, |
| 84 | + "zone": "1", |
| 85 | + "shardId": 0, |
| 86 | + "isMaster": false, |
| 87 | + "isPrimary": false |
| 88 | + }, |
| 89 | + { |
| 90 | + "sslPort": 15003, |
| 91 | + "nonSslPort": 13003, |
| 92 | + "zone": "1", |
| 93 | + "shardId": 1, |
| 94 | + "isMaster": true, |
| 95 | + "isPrimary": true |
| 96 | + }, |
| 97 | + { |
| 98 | + "sslPort": 15004, |
| 99 | + "nonSslPort": 13004, |
| 100 | + "zone": "1", |
| 101 | + "shardId": 1, |
| 102 | + "isMaster": false, |
| 103 | + "isPrimary": false |
| 104 | + }, |
| 105 | + { |
| 106 | + "sslPort": 15005, |
| 107 | + "nonSslPort": 13005, |
| 108 | + "zone": "1", |
| 109 | + "shardId": 1, |
| 110 | + "isMaster": false, |
| 111 | + "isPrimary": false |
| 112 | + } |
| 113 | + ] |
| 114 | + } |
| 115 | + } |
| 116 | + }, |
| 117 | + "200": { |
| 118 | + "body": { |
| 119 | + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1", |
| 120 | + "location": "West US", |
| 121 | + "zones": [ |
| 122 | + "1" |
| 123 | + ], |
| 124 | + "name": "cache1", |
| 125 | + "type": "Microsoft.Cache/Redis", |
| 126 | + "tags": {}, |
| 127 | + "properties": { |
| 128 | + "accessKeys": { |
| 129 | + "primaryKey": "<primaryKey>", |
| 130 | + "secondaryKey": "<secondaryKey>" |
| 131 | + }, |
| 132 | + "provisioningState": "Succeeded", |
| 133 | + "redisVersion": "4.0.14", |
| 134 | + "sku": { |
| 135 | + "name": "Premium", |
| 136 | + "family": "P", |
| 137 | + "capacity": 1 |
| 138 | + }, |
| 139 | + "enableNonSslPort": false, |
| 140 | + "replicasPerMaster": 2, |
| 141 | + "replicasPerPrimary": 2, |
| 142 | + "redisConfiguration": { |
| 143 | + "maxclients": "1000", |
| 144 | + "maxmemory-reserved": "50", |
| 145 | + "maxmemory-delta": "50" |
| 146 | + }, |
| 147 | + "hostName": "cache1.redis.cache.windows.net", |
| 148 | + "port": 6379, |
| 149 | + "sslPort": 6380, |
| 150 | + "minimumTlsVersion": "1.2", |
| 151 | + "instances": [ |
| 152 | + { |
| 153 | + "sslPort": 15000, |
| 154 | + "nonSslPort": 13000, |
| 155 | + "zone": "1", |
| 156 | + "shardId": 0, |
| 157 | + "isMaster": true, |
| 158 | + "isPrimary": true |
| 159 | + }, |
| 160 | + { |
| 161 | + "sslPort": 15001, |
| 162 | + "nonSslPort": 13001, |
| 163 | + "zone": "1", |
| 164 | + "shardId": 0, |
| 165 | + "isMaster": false, |
| 166 | + "isPrimary": false |
| 167 | + }, |
| 168 | + { |
| 169 | + "sslPort": 15002, |
| 170 | + "nonSslPort": 13002, |
| 171 | + "zone": "1", |
| 172 | + "shardId": 0, |
| 173 | + "isMaster": false, |
| 174 | + "isPrimary": false |
| 175 | + }, |
| 176 | + { |
| 177 | + "sslPort": 15003, |
| 178 | + "nonSslPort": 13003, |
| 179 | + "zone": "1", |
| 180 | + "shardId": 1, |
| 181 | + "isMaster": true, |
| 182 | + "isPrimary": true |
| 183 | + }, |
| 184 | + { |
| 185 | + "sslPort": 15004, |
| 186 | + "nonSslPort": 13004, |
| 187 | + "zone": "1", |
| 188 | + "shardId": 1, |
| 189 | + "isMaster": false, |
| 190 | + "isPrimary": false |
| 191 | + }, |
| 192 | + { |
| 193 | + "sslPort": 15005, |
| 194 | + "nonSslPort": 13005, |
| 195 | + "zone": "1", |
| 196 | + "shardId": 1, |
| 197 | + "isMaster": false, |
| 198 | + "isPrimary": false |
| 199 | + } |
| 200 | + ] |
| 201 | + } |
| 202 | + } |
| 203 | + } |
| 204 | + } |
| 205 | +} |
0 commit comments