|
| 1 | +{ |
| 2 | + "parameters": { |
| 3 | + "resourceGroupName": "scgroup", |
| 4 | + "cacheName": "sc1", |
| 5 | + "subscriptionId": "00000000-0000-0000-0000-000000000000", |
| 6 | + "api-version": "2023-05-01", |
| 7 | + "cache": { |
| 8 | + "tags": { |
| 9 | + "Dept": "Contoso" |
| 10 | + }, |
| 11 | + "location": "westus", |
| 12 | + "identity": { |
| 13 | + "type": "UserAssigned", |
| 14 | + "userAssignedIdentities": { |
| 15 | + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {} |
| 16 | + } |
| 17 | + }, |
| 18 | + "properties": { |
| 19 | + "cacheSizeGB": 3072, |
| 20 | + "subnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1", |
| 21 | + "encryptionSettings": { |
| 22 | + "keyEncryptionKey": { |
| 23 | + "keyUrl": "https://keyvault-cmk.vault.azure.net/keys/key2047/test", |
| 24 | + "sourceVault": { |
| 25 | + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk" |
| 26 | + } |
| 27 | + } |
| 28 | + }, |
| 29 | + "directoryServicesSettings": { |
| 30 | + "activeDirectory": { |
| 31 | + "primaryDnsIpAddress": "192.0.2.10", |
| 32 | + "secondaryDnsIpAddress": "192.0.2.11", |
| 33 | + "cacheNetBiosName": "contosoSmb", |
| 34 | + "domainName": "contosoAd.contoso.local", |
| 35 | + "domainNetBiosName": "contosoAd", |
| 36 | + "credentials": { |
| 37 | + "username": "consotoAdmin", |
| 38 | + "password": "<password>" |
| 39 | + } |
| 40 | + }, |
| 41 | + "usernameDownload": { |
| 42 | + "extendedGroups": true, |
| 43 | + "usernameSource": "LDAP", |
| 44 | + "ldapServer": "192.0.2.12", |
| 45 | + "ldapBaseDN": "dc=contosoad,dc=contoso,dc=local", |
| 46 | + "credentials": { |
| 47 | + "bindDn": "cn=ldapadmin,dc=contosoad,dc=contoso,dc=local", |
| 48 | + "bindPassword": "<bindPassword>" |
| 49 | + } |
| 50 | + } |
| 51 | + }, |
| 52 | + "securitySettings": { |
| 53 | + "accessPolicies": [ |
| 54 | + { |
| 55 | + "name": "default", |
| 56 | + "accessRules": [ |
| 57 | + { |
| 58 | + "scope": "default", |
| 59 | + "access": "rw", |
| 60 | + "suid": false, |
| 61 | + "submountAccess": true, |
| 62 | + "rootSquash": false |
| 63 | + } |
| 64 | + ] |
| 65 | + } |
| 66 | + ] |
| 67 | + }, |
| 68 | + "upgradeSettings": { |
| 69 | + "upgradeScheduleEnabled": true, |
| 70 | + "scheduledTime": "2022-04-26T18:25:43.511Z" |
| 71 | + } |
| 72 | + }, |
| 73 | + "sku": { |
| 74 | + "name": "Standard_2G" |
| 75 | + } |
| 76 | + } |
| 77 | + }, |
| 78 | + "responses": { |
| 79 | + "202": {}, |
| 80 | + "201": { |
| 81 | + "body": { |
| 82 | + "tags": { |
| 83 | + "Dept": "Contoso" |
| 84 | + }, |
| 85 | + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc1", |
| 86 | + "location": "westus", |
| 87 | + "name": "sc1", |
| 88 | + "type": "Microsoft.StorageCache/Cache", |
| 89 | + "systemData": { |
| 90 | + "createdBy": "user1", |
| 91 | + "createdByType": "User", |
| 92 | + "createdAt": "2020-01-01T17:18:19.1234567Z", |
| 93 | + "lastModifiedBy": "user2", |
| 94 | + "lastModifiedByType": "User", |
| 95 | + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" |
| 96 | + }, |
| 97 | + "properties": { |
| 98 | + "cacheSizeGB": 3072, |
| 99 | + "health": { |
| 100 | + "state": "Transitioning", |
| 101 | + "statusDescription": "Cache is being created.", |
| 102 | + "conditions": [ |
| 103 | + { |
| 104 | + "timestamp": "2021-04-21T18:25:43.511Z", |
| 105 | + "message": "Cannot contact DNS server" |
| 106 | + } |
| 107 | + ] |
| 108 | + }, |
| 109 | + "mountAddresses": [ |
| 110 | + "192.168.1.1", |
| 111 | + "192.168.1.2" |
| 112 | + ], |
| 113 | + "provisioningState": "Succeeded", |
| 114 | + "subnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1", |
| 115 | + "upgradeStatus": { |
| 116 | + "currentFirmwareVersion": "5.3.23", |
| 117 | + "firmwareUpdateStatus": "available", |
| 118 | + "firmwareUpdateDeadline": "2019-04-21T18:25:43.511Z", |
| 119 | + "lastFirmwareUpdate": "2019-01-21T18:25:43.511Z", |
| 120 | + "pendingFirmwareVersion": "5.3.24" |
| 121 | + }, |
| 122 | + "networkSettings": { |
| 123 | + "mtu": 1500, |
| 124 | + "dnsServers": [ |
| 125 | + "10.1.22.33", |
| 126 | + "10.1.12.33" |
| 127 | + ], |
| 128 | + "dnsSearchDomain": "contoso.com", |
| 129 | + "ntpServer": "time.contoso.com" |
| 130 | + }, |
| 131 | + "securitySettings": { |
| 132 | + "accessPolicies": [ |
| 133 | + { |
| 134 | + "name": "default", |
| 135 | + "accessRules": [ |
| 136 | + { |
| 137 | + "scope": "default", |
| 138 | + "access": "rw", |
| 139 | + "suid": false, |
| 140 | + "submountAccess": true, |
| 141 | + "rootSquash": false |
| 142 | + } |
| 143 | + ] |
| 144 | + } |
| 145 | + ] |
| 146 | + }, |
| 147 | + "upgradeSettings": { |
| 148 | + "upgradeScheduleEnabled": true, |
| 149 | + "scheduledTime": "2022-04-26T18:25:43.511Z" |
| 150 | + }, |
| 151 | + "encryptionSettings": { |
| 152 | + "keyEncryptionKey": { |
| 153 | + "keyUrl": "https://keyvault-cmk.vault.azure.net/keys/key2048/test", |
| 154 | + "sourceVault": { |
| 155 | + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk" |
| 156 | + } |
| 157 | + } |
| 158 | + }, |
| 159 | + "directoryServicesSettings": { |
| 160 | + "activeDirectory": { |
| 161 | + "primaryDnsIpAddress": "192.0.2.10", |
| 162 | + "secondaryDnsIpAddress": "192.0.2.11", |
| 163 | + "domainName": "contosoAd.contoso.local", |
| 164 | + "domainNetBiosName": "contosoAd", |
| 165 | + "cacheNetBiosName": "contosoSmb", |
| 166 | + "domainJoined": "No" |
| 167 | + }, |
| 168 | + "usernameDownload": { |
| 169 | + "extendedGroups": true, |
| 170 | + "usernameSource": "LDAP", |
| 171 | + "groupFileURI": "http://contoso.net/group.file", |
| 172 | + "userFileURI": "http://contoso.net/passwd.file", |
| 173 | + "ldapServer": "192.0.2.12", |
| 174 | + "ldapBaseDN": "dc=contosoad,dc=contoso,dc=local", |
| 175 | + "encryptLdapConnection": false, |
| 176 | + "requireValidCertificate": false, |
| 177 | + "autoDownloadCertificate": false, |
| 178 | + "caCertificateURI": "http://contoso.net/cacert.pem", |
| 179 | + "usernameDownloaded": "No" |
| 180 | + } |
| 181 | + }, |
| 182 | + "primingJobs": [], |
| 183 | + "spaceAllocation": [], |
| 184 | + "zones": [ |
| 185 | + "1" |
| 186 | + ] |
| 187 | + }, |
| 188 | + "sku": { |
| 189 | + "name": "Standard_2G" |
| 190 | + } |
| 191 | + } |
| 192 | + }, |
| 193 | + "200": { |
| 194 | + "body": { |
| 195 | + "tags": { |
| 196 | + "Dept": "Contoso" |
| 197 | + }, |
| 198 | + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc1", |
| 199 | + "location": "westus", |
| 200 | + "name": "sc1", |
| 201 | + "type": "Microsoft.StorageCache/Cache", |
| 202 | + "systemData": { |
| 203 | + "createdBy": "user1", |
| 204 | + "createdByType": "User", |
| 205 | + "createdAt": "2020-01-01T17:18:19.1234567Z", |
| 206 | + "lastModifiedBy": "user2", |
| 207 | + "lastModifiedByType": "User", |
| 208 | + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" |
| 209 | + }, |
| 210 | + "properties": { |
| 211 | + "cacheSizeGB": 3072, |
| 212 | + "health": { |
| 213 | + "state": "Transitioning", |
| 214 | + "statusDescription": "Cache is being created.", |
| 215 | + "conditions": [ |
| 216 | + { |
| 217 | + "timestamp": "2021-04-21T18:25:43.511Z", |
| 218 | + "message": "Cannot contact DNS server" |
| 219 | + } |
| 220 | + ] |
| 221 | + }, |
| 222 | + "mountAddresses": [ |
| 223 | + "192.168.1.1", |
| 224 | + "192.168.1.2" |
| 225 | + ], |
| 226 | + "provisioningState": "Updating", |
| 227 | + "subnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1", |
| 228 | + "upgradeStatus": { |
| 229 | + "currentFirmwareVersion": "2022.08.1", |
| 230 | + "firmwareUpdateStatus": "available", |
| 231 | + "firmwareUpdateDeadline": "2019-04-21T18:25:43.511Z", |
| 232 | + "lastFirmwareUpdate": "2019-01-21T18:25:43.511Z", |
| 233 | + "pendingFirmwareVersion": "2022.08.1" |
| 234 | + }, |
| 235 | + "networkSettings": { |
| 236 | + "mtu": 1500, |
| 237 | + "dnsServers": [ |
| 238 | + "10.1.22.33", |
| 239 | + "10.1.12.33" |
| 240 | + ], |
| 241 | + "dnsSearchDomain": "contoso.com", |
| 242 | + "ntpServer": "time.contoso.com" |
| 243 | + }, |
| 244 | + "securitySettings": { |
| 245 | + "accessPolicies": [ |
| 246 | + { |
| 247 | + "name": "default", |
| 248 | + "accessRules": [ |
| 249 | + { |
| 250 | + "scope": "default", |
| 251 | + "access": "rw", |
| 252 | + "suid": false, |
| 253 | + "submountAccess": true, |
| 254 | + "rootSquash": false |
| 255 | + } |
| 256 | + ] |
| 257 | + } |
| 258 | + ] |
| 259 | + }, |
| 260 | + "upgradeSettings": { |
| 261 | + "upgradeScheduleEnabled": true, |
| 262 | + "scheduledTime": "2022-04-26T18:25:43.511Z" |
| 263 | + }, |
| 264 | + "encryptionSettings": { |
| 265 | + "keyEncryptionKey": { |
| 266 | + "keyUrl": "https://keyvault-cmk.vault.azure.net/keys/key2048/test", |
| 267 | + "sourceVault": { |
| 268 | + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk" |
| 269 | + } |
| 270 | + } |
| 271 | + }, |
| 272 | + "directoryServicesSettings": { |
| 273 | + "activeDirectory": { |
| 274 | + "primaryDnsIpAddress": "192.0.2.10", |
| 275 | + "secondaryDnsIpAddress": "192.0.2.11", |
| 276 | + "domainName": "contosoAd.contoso.local", |
| 277 | + "domainNetBiosName": "contosoAd", |
| 278 | + "cacheNetBiosName": "contosoSmb", |
| 279 | + "domainJoined": "Yes" |
| 280 | + }, |
| 281 | + "usernameDownload": { |
| 282 | + "extendedGroups": true, |
| 283 | + "usernameSource": "LDAP", |
| 284 | + "groupFileURI": "http://contoso.net/group.file", |
| 285 | + "userFileURI": "http://contoso.net/passwd.file", |
| 286 | + "ldapServer": "192.0.2.12", |
| 287 | + "ldapBaseDN": "dc=contosoad,dc=contoso,dc=local", |
| 288 | + "encryptLdapConnection": false, |
| 289 | + "requireValidCertificate": false, |
| 290 | + "autoDownloadCertificate": false, |
| 291 | + "caCertificateURI": "http://contoso.net/cacert.pem", |
| 292 | + "usernameDownloaded": "Yes" |
| 293 | + } |
| 294 | + }, |
| 295 | + "primingJobs": [ |
| 296 | + { |
| 297 | + "primingJobName": "contosoJob1", |
| 298 | + "primingJobId": "00000000000_0000000000", |
| 299 | + "primingJobState": "Complete", |
| 300 | + "primingJobStatus": "success", |
| 301 | + "primingJobDetails": "Files: Cached=635, Failed=0, Excluded=80, Data=346030 bytes, Directories: Cached=1003, Failed=0, Excluded=0", |
| 302 | + "primingJobPercentComplete": 100.0 |
| 303 | + }, |
| 304 | + { |
| 305 | + "primingJobName": "contosoJob2", |
| 306 | + "primingJobId": "11111111111_1111111111", |
| 307 | + "primingJobState": "Queued", |
| 308 | + "primingJobStatus": "", |
| 309 | + "primingJobDetails": "", |
| 310 | + "primingJobPercentComplete": 0.0 |
| 311 | + } |
| 312 | + ], |
| 313 | + "spaceAllocation": [], |
| 314 | + "zones": [ |
| 315 | + "1" |
| 316 | + ] |
| 317 | + }, |
| 318 | + "sku": { |
| 319 | + "name": "Standard_2G" |
| 320 | + } |
| 321 | + } |
| 322 | + } |
| 323 | + } |
| 324 | +} |
0 commit comments