From 59ab42b386a424ffe13db69f55fa53d1284212e8 Mon Sep 17 00:00:00 2001 From: Kanchan Joshi <30471843+koderjoker@users.noreply.github.com> Date: Thu, 27 Apr 2023 12:09:28 +0530 Subject: [PATCH 01/12] Adds base for updating Microsoft.Cache from version stable/2022-06-01 to version 2023-05-01-preview --- .../RedisCacheAsyncOperationStatus.json | 22 + .../RedisCacheCheckNameAvailability.json | 13 + .../examples/RedisCacheCreate.json | 205 ++ .../RedisCacheCreateDefaultVersion.json | 204 ++ .../RedisCacheCreateLatestVersion.json | 205 ++ .../examples/RedisCacheDelete.json | 17 + ...sCacheDeletePrivateEndpointConnection.json | 13 + .../examples/RedisCacheExport.json | 22 + .../RedisCacheFirewallRuleCreate.json | 39 + .../RedisCacheFirewallRuleDelete.json | 13 + .../examples/RedisCacheFirewallRuleGet.json | 22 + .../examples/RedisCacheFirewallRulesList.json | 34 + .../examples/RedisCacheForceReboot.json | 23 + .../examples/RedisCacheGet.json | 76 + ...edisCacheGetPrivateEndpointConnection.json | 29 + .../examples/RedisCacheImport.json | 23 + .../RedisCacheLinkedServer_Create.json | 48 + .../RedisCacheLinkedServer_Delete.json | 17 + .../examples/RedisCacheLinkedServer_Get.json | 26 + .../examples/RedisCacheLinkedServer_List.json | 42 + .../examples/RedisCacheList.json | 57 + .../RedisCacheListByResourceGroup.json | 36 + .../examples/RedisCacheListKeys.json | 16 + ...isCacheListPrivateEndpointConnections.json | 49 + .../RedisCacheListPrivateLinkResources.json | 30 + .../RedisCacheListUpgradeNotifications.json | 22 + .../examples/RedisCacheOperations.json | 643 ++++ ...edisCachePatchSchedulesCreateOrUpdate.json | 68 + .../RedisCachePatchSchedulesDelete.json | 13 + .../examples/RedisCachePatchSchedulesGet.json | 32 + .../RedisCachePatchSchedulesList.json | 35 + ...edisCachePutPrivateEndpointConnection.json | 55 + .../examples/RedisCacheRegenerateKey.json | 19 + .../examples/RedisCacheUpdate.json | 125 + .../preview/2023-05-01-preview/redis.json | 2846 +++++++++++++++++ 35 files changed, 5139 insertions(+) create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAsyncOperationStatus.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCheckNameAvailability.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreate.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateDefaultVersion.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateLatestVersion.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDelete.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDeletePrivateEndpointConnection.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheExport.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleCreate.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleDelete.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleGet.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRulesList.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheForceReboot.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGet.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGetPrivateEndpointConnection.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheImport.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Create.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Delete.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Get.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_List.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheList.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListByResourceGroup.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListKeys.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateEndpointConnections.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateLinkResources.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListUpgradeNotifications.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheOperations.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesCreateOrUpdate.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesDelete.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesGet.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesList.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePutPrivateEndpointConnection.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheRegenerateKey.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheUpdate.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAsyncOperationStatus.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAsyncOperationStatus.json new file mode 100644 index 000000000000..69522e3e54a0 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAsyncOperationStatus.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "location": "East US", + "api-version": "2022-06-01", + "subscriptionId": "subid", + "operationId": "c7ba2bf5-5939-4d79-b037-2964ccf097da" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/providers/Microsoft.Cache/locations/East US/asyncOperations/c7ba2bf5-5939-4d79-b037-2964ccf097da", + "name": "c7ba2bf5-5939-4d79-b037-2964ccf097da", + "status": "Succeeded", + "startTime": null, + "endTime": null, + "percentComplete": null, + "properties": null, + "error": null + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCheckNameAvailability.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCheckNameAvailability.json new file mode 100644 index 000000000000..77b6b987d38f --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCheckNameAvailability.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2022-06-01", + "subscriptionId": "subid", + "parameters": { + "type": "Microsoft.Cache/Redis", + "name": "cacheName" + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreate.json new file mode 100644 index 000000000000..720c3f51a9f2 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreate.json @@ -0,0 +1,205 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid", + "parameters": { + "location": "West US", + "zones": [ + "1" + ], + "properties": { + "sku": { + "name": "Premium", + "family": "P", + "capacity": 1 + }, + "redisVersion": "4", + "enableNonSslPort": true, + "shardCount": 2, + "replicasPerPrimary": 2, + "redisConfiguration": { + "maxmemory-policy": "allkeys-lru" + }, + "subnetId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/network1/subnets/subnet1", + "staticIP": "192.168.0.5", + "minimumTlsVersion": "1.2" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1", + "location": "West US", + "zones": [ + "1" + ], + "name": "cache1", + "type": "Microsoft.Cache/Redis", + "tags": {}, + "properties": { + "accessKeys": { + "primaryKey": "", + "secondaryKey": "" + }, + "provisioningState": "Succeeded", + "redisVersion": "4.0.14", + "sku": { + "name": "Premium", + "family": "P", + "capacity": 1 + }, + "enableNonSslPort": false, + "replicasPerMaster": 2, + "replicasPerPrimary": 2, + "redisConfiguration": { + "maxmemory-policy": "allkeys-lru" + }, + "hostName": "cache1.redis.cache.windows.net", + "port": 6379, + "sslPort": 6380, + "minimumTlsVersion": "1.2", + "instances": [ + { + "sslPort": 15000, + "nonSslPort": 13000, + "zone": "1", + "shardId": 0, + "isMaster": true, + "isPrimary": true + }, + { + "sslPort": 15001, + "nonSslPort": 13001, + "zone": "1", + "shardId": 0, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15002, + "nonSslPort": 13002, + "zone": "1", + "shardId": 0, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15003, + "nonSslPort": 13003, + "zone": "1", + "shardId": 1, + "isMaster": true, + "isPrimary": true + }, + { + "sslPort": 15004, + "nonSslPort": 13004, + "zone": "1", + "shardId": 1, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15005, + "nonSslPort": 13005, + "zone": "1", + "shardId": 1, + "isMaster": false, + "isPrimary": false + } + ] + } + } + }, + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1", + "location": "West US", + "zones": [ + "1" + ], + "name": "cache1", + "type": "Microsoft.Cache/Redis", + "tags": {}, + "properties": { + "accessKeys": { + "primaryKey": "", + "secondaryKey": "" + }, + "provisioningState": "Succeeded", + "redisVersion": "4.0.14", + "sku": { + "name": "Premium", + "family": "P", + "capacity": 1 + }, + "enableNonSslPort": false, + "replicasPerMaster": 2, + "replicasPerPrimary": 2, + "redisConfiguration": { + "maxclients": "1000", + "maxmemory-reserved": "50", + "maxmemory-delta": "50" + }, + "hostName": "cache1.redis.cache.windows.net", + "port": 6379, + "sslPort": 6380, + "minimumTlsVersion": "1.2", + "instances": [ + { + "sslPort": 15000, + "nonSslPort": 13000, + "zone": "1", + "shardId": 0, + "isMaster": true, + "isPrimary": true + }, + { + "sslPort": 15001, + "nonSslPort": 13001, + "zone": "1", + "shardId": 0, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15002, + "nonSslPort": 13002, + "zone": "1", + "shardId": 0, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15003, + "nonSslPort": 13003, + "zone": "1", + "shardId": 1, + "isMaster": true, + "isPrimary": true + }, + { + "sslPort": 15004, + "nonSslPort": 13004, + "zone": "1", + "shardId": 1, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15005, + "nonSslPort": 13005, + "zone": "1", + "shardId": 1, + "isMaster": false, + "isPrimary": false + } + ] + } + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateDefaultVersion.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateDefaultVersion.json new file mode 100644 index 000000000000..08ab3de28940 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateDefaultVersion.json @@ -0,0 +1,204 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid", + "parameters": { + "location": "West US", + "zones": [ + "1" + ], + "properties": { + "sku": { + "name": "Premium", + "family": "P", + "capacity": 1 + }, + "enableNonSslPort": true, + "shardCount": 2, + "replicasPerPrimary": 2, + "redisConfiguration": { + "maxmemory-policy": "allkeys-lru" + }, + "subnetId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/network1/subnets/subnet1", + "staticIP": "192.168.0.5", + "minimumTlsVersion": "1.2" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1", + "location": "West US", + "zones": [ + "1" + ], + "name": "cache1", + "type": "Microsoft.Cache/Redis", + "tags": {}, + "properties": { + "accessKeys": { + "primaryKey": "", + "secondaryKey": "" + }, + "provisioningState": "Succeeded", + "redisVersion": "6.0.14", + "sku": { + "name": "Premium", + "family": "P", + "capacity": 1 + }, + "enableNonSslPort": false, + "replicasPerMaster": 2, + "replicasPerPrimary": 2, + "redisConfiguration": { + "maxmemory-policy": "allkeys-lru" + }, + "hostName": "cache1.redis.cache.windows.net", + "port": 6379, + "sslPort": 6380, + "minimumTlsVersion": "1.2", + "instances": [ + { + "sslPort": 15000, + "nonSslPort": 13000, + "zone": "1", + "shardId": 0, + "isMaster": true, + "isPrimary": true + }, + { + "sslPort": 15001, + "nonSslPort": 13001, + "zone": "1", + "shardId": 0, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15002, + "nonSslPort": 13002, + "zone": "1", + "shardId": 0, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15003, + "nonSslPort": 13003, + "zone": "1", + "shardId": 1, + "isMaster": true, + "isPrimary": true + }, + { + "sslPort": 15004, + "nonSslPort": 13004, + "zone": "1", + "shardId": 1, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15005, + "nonSslPort": 13005, + "zone": "1", + "shardId": 1, + "isMaster": false, + "isPrimary": false + } + ] + } + } + }, + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1", + "location": "West US", + "zones": [ + "1" + ], + "name": "cache1", + "type": "Microsoft.Cache/Redis", + "tags": {}, + "properties": { + "accessKeys": { + "primaryKey": "", + "secondaryKey": "" + }, + "provisioningState": "Succeeded", + "redisVersion": "6.0.14", + "sku": { + "name": "Premium", + "family": "P", + "capacity": 1 + }, + "enableNonSslPort": false, + "replicasPerMaster": 2, + "replicasPerPrimary": 2, + "redisConfiguration": { + "maxclients": "1000", + "maxmemory-reserved": "50", + "maxmemory-delta": "50" + }, + "hostName": "cache1.redis.cache.windows.net", + "port": 6379, + "sslPort": 6380, + "minimumTlsVersion": "1.2", + "instances": [ + { + "sslPort": 15000, + "nonSslPort": 13000, + "zone": "1", + "shardId": 0, + "isMaster": true, + "isPrimary": true + }, + { + "sslPort": 15001, + "nonSslPort": 13001, + "zone": "1", + "shardId": 0, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15002, + "nonSslPort": 13002, + "zone": "1", + "shardId": 0, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15003, + "nonSslPort": 13003, + "zone": "1", + "shardId": 1, + "isMaster": true, + "isPrimary": true + }, + { + "sslPort": 15004, + "nonSslPort": 13004, + "zone": "1", + "shardId": 1, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15005, + "nonSslPort": 13005, + "zone": "1", + "shardId": 1, + "isMaster": false, + "isPrimary": false + } + ] + } + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateLatestVersion.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateLatestVersion.json new file mode 100644 index 000000000000..33cf251628ee --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateLatestVersion.json @@ -0,0 +1,205 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid", + "parameters": { + "location": "West US", + "zones": [ + "1" + ], + "properties": { + "sku": { + "name": "Premium", + "family": "P", + "capacity": 1 + }, + "redisVersion": "Latest", + "enableNonSslPort": true, + "shardCount": 2, + "replicasPerPrimary": 2, + "redisConfiguration": { + "maxmemory-policy": "allkeys-lru" + }, + "subnetId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/network1/subnets/subnet1", + "staticIP": "192.168.0.5", + "minimumTlsVersion": "1.2" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1", + "location": "West US", + "zones": [ + "1" + ], + "name": "cache1", + "type": "Microsoft.Cache/Redis", + "tags": {}, + "properties": { + "accessKeys": { + "primaryKey": "", + "secondaryKey": "" + }, + "provisioningState": "Succeeded", + "redisVersion": "6.0.14", + "sku": { + "name": "Premium", + "family": "P", + "capacity": 1 + }, + "enableNonSslPort": false, + "replicasPerMaster": 2, + "replicasPerPrimary": 2, + "redisConfiguration": { + "maxmemory-policy": "allkeys-lru" + }, + "hostName": "cache1.redis.cache.windows.net", + "port": 6379, + "sslPort": 6380, + "minimumTlsVersion": "1.2", + "instances": [ + { + "sslPort": 15000, + "nonSslPort": 13000, + "zone": "1", + "shardId": 0, + "isMaster": true, + "isPrimary": true + }, + { + "sslPort": 15001, + "nonSslPort": 13001, + "zone": "1", + "shardId": 0, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15002, + "nonSslPort": 13002, + "zone": "1", + "shardId": 0, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15003, + "nonSslPort": 13003, + "zone": "1", + "shardId": 1, + "isMaster": true, + "isPrimary": true + }, + { + "sslPort": 15004, + "nonSslPort": 13004, + "zone": "1", + "shardId": 1, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15005, + "nonSslPort": 13005, + "zone": "1", + "shardId": 1, + "isMaster": false, + "isPrimary": false + } + ] + } + } + }, + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1", + "location": "West US", + "zones": [ + "1" + ], + "name": "cache1", + "type": "Microsoft.Cache/Redis", + "tags": {}, + "properties": { + "accessKeys": { + "primaryKey": "", + "secondaryKey": "" + }, + "provisioningState": "Succeeded", + "redisVersion": "6.0.14", + "sku": { + "name": "Premium", + "family": "P", + "capacity": 1 + }, + "enableNonSslPort": false, + "replicasPerMaster": 2, + "replicasPerPrimary": 2, + "redisConfiguration": { + "maxclients": "1000", + "maxmemory-reserved": "50", + "maxmemory-delta": "50" + }, + "hostName": "cache1.redis.cache.windows.net", + "port": 6379, + "sslPort": 6380, + "minimumTlsVersion": "1.2", + "instances": [ + { + "sslPort": 15000, + "nonSslPort": 13000, + "zone": "1", + "shardId": 0, + "isMaster": true, + "isPrimary": true + }, + { + "sslPort": 15001, + "nonSslPort": 13001, + "zone": "1", + "shardId": 0, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15002, + "nonSslPort": 13002, + "zone": "1", + "shardId": 0, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15003, + "nonSslPort": 13003, + "zone": "1", + "shardId": 1, + "isMaster": true, + "isPrimary": true + }, + { + "sslPort": 15004, + "nonSslPort": 13004, + "zone": "1", + "shardId": 1, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15005, + "nonSslPort": 13005, + "zone": "1", + "shardId": 1, + "isMaster": false, + "isPrimary": false + } + ] + } + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDelete.json new file mode 100644 index 000000000000..9463743c5c7a --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDelete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..." + } + }, + "204": {} + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDeletePrivateEndpointConnection.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDeletePrivateEndpointConnection.json new file mode 100644 index 000000000000..edc4ea2c2cb1 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDeletePrivateEndpointConnection.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "rgtest01", + "cacheName": "cachetest01", + "privateEndpointConnectionName": "pectest01", + "api-version": "2022-06-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheExport.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheExport.json new file mode 100644 index 000000000000..a0f0fd4bcb44 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheExport.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid", + "parameters": { + "format": "RDB", + "prefix": "datadump1", + "container": "https://contosostorage.blob.core.window.net/urltoBlobContainer?sasKeyParameters" + } + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..." + } + }, + "204": {} + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleCreate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleCreate.json new file mode 100644 index 000000000000..5b254f58be31 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleCreate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "ruleName": "rule1", + "cacheName": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid", + "parameters": { + "properties": { + "startIP": "192.168.1.1", + "endIP": "192.168.1.4" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/firewallRules/rule1", + "name": "cache1/rule1", + "type": "Microsoft.Cache/Redis/firewallRules", + "properties": { + "startIP": "192.168.1.1", + "endIP": "192.168.1.4" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/firewallRules/rule1", + "name": "cache1/rule1", + "type": "Microsoft.Cache/Redis/firewallRules", + "properties": { + "startIP": "192.168.1.1", + "endIP": "192.168.1.4" + } + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleDelete.json new file mode 100644 index 000000000000..dec244d399d4 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "ruleName": "rule1", + "cacheName": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleGet.json new file mode 100644 index 000000000000..5492a6bd7997 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "ruleName": "rule1", + "cacheName": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/firewallRules/rule1", + "name": "cache1/rule1", + "type": "Microsoft.Cache/Redis/firewallRules", + "properties": { + "startIP": "192.168.1.1", + "endIP": "192.168.1.4" + } + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRulesList.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRulesList.json new file mode 100644 index 000000000000..3fff6868c5cc --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRulesList.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "cacheName": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.Cache/Redis/firewallRules", + "properties": { + "startIP": "192.168.1.1", + "endIP": "192.168.1.4" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/firewallRules/rule2", + "name": "rule2", + "type": "Microsoft.Cache/Redis/firewallRules", + "properties": { + "startIP": "192.169.1.0", + "endIP": "192.169.1.255" + } + } + ] + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheForceReboot.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheForceReboot.json new file mode 100644 index 000000000000..8558192bb4ae --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheForceReboot.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid", + "parameters": { + "shardId": 0, + "rebootType": "AllNodes", + "ports": [ + 13000, + 15001 + ] + } + }, + "responses": { + "200": { + "body": { + "message": "reboot operation enqueued" + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGet.json new file mode 100644 index 000000000000..f0f2da4276cd --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGet.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1", + "location": "West US", + "name": "cache1", + "type": "Microsoft.Cache/Redis", + "tags": {}, + "properties": { + "provisioningState": "Creating", + "redisVersion": "3.2", + "sku": { + "name": "Premium", + "family": "P", + "capacity": 3 + }, + "enableNonSslPort": true, + "replicasPerMaster": 2, + "replicasPerPrimary": 2, + "redisConfiguration": {}, + "hostName": "cache1.redis.cache.windows.net", + "port": 6379, + "sslPort": 6380, + "linkedServers": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/linkedServers/cache2" + } + ], + "instances": [ + { + "sslPort": 15000, + "nonSslPort": 13000, + "isMaster": true, + "isPrimary": true + }, + { + "sslPort": 15001, + "nonSslPort": 13001, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15002, + "nonSslPort": 13002, + "isMaster": false, + "isPrimary": false + } + ], + "publicNetworkAccess": "Enabled", + "privateEndpointConnections": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/privateEndpointConnections/cachePec", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/cachePe" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Please approve my connection", + "actionsRequired": "None" + } + } + } + ] + } + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGetPrivateEndpointConnection.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGetPrivateEndpointConnection.json new file mode 100644 index 000000000000..9c2ac5de5568 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGetPrivateEndpointConnection.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "rgtest01", + "cacheName": "cachetest01", + "privateEndpointConnectionName": "pectest01", + "api-version": "2022-06-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/rgtest01/providers/Microsoft.Cache/Redis/cachetest01/privateEndpointConnections/pectest01", + "name": "pectest01", + "type": "Microsoft.Cache/Redis/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/rgtest01/providers/Microsoft.Network/privateEndpoints/petest01" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved", + "actionsRequired": "None" + } + } + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheImport.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheImport.json new file mode 100644 index 000000000000..1bf4d039410c --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheImport.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid", + "parameters": { + "format": "RDB", + "files": [ + "http://fileuris.contoso.com/pathtofile1" + ] + } + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..." + } + }, + "204": {} + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Create.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Create.json new file mode 100644 index 000000000000..15369a756c14 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Create.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "linkedServerName": "cache2", + "api-version": "2022-06-01", + "subscriptionId": "subid", + "parameters": { + "properties": { + "linkedRedisCacheId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache2", + "linkedRedisCacheLocation": "West US", + "serverRole": "Secondary" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/linkedServers/cache2", + "name": "cache2", + "type": "Microsoft.Cache/Redis/linkedServers", + "properties": { + "linkedRedisCacheId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache2", + "linkedRedisCacheLocation": "West US", + "geoReplicatedPrimaryHostName": "cache2.geo.redis.cache.windows.net", + "primaryHostName": "cache1.redis.cache.windows.net", + "provisioningState": "Creating", + "serverRole": "Secondary" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/linkedServers/cache2", + "name": "cache2", + "type": "Microsoft.Cache/Redis/linkedServers", + "properties": { + "linkedRedisCacheId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache2", + "linkedRedisCacheLocation": "West US", + "geoReplicatedPrimaryHostName": "cache2.geo.redis.cache.windows.net", + "primaryHostName": "cache1.redis.cache.windows.net", + "provisioningState": "Creating", + "serverRole": "Secondary" + } + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Delete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Delete.json new file mode 100644 index 000000000000..40eafe0062b1 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Delete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "linkedServerName": "cache2", + "api-version": "2022-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..." + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Get.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Get.json new file mode 100644 index 000000000000..7a40426d614b --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid", + "linkedServerName": "cache2" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/linkedServers/cache2", + "name": "cache2", + "type": "Microsoft.Cache/Redis/linkedServers", + "properties": { + "linkedRedisCacheId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache2", + "linkedRedisCacheLocation": "West US", + "geoReplicatedPrimaryHostName": "cache2.geo.redis.cache.windows.net", + "primaryHostName": "cache1.redis.cache.windows.net", + "provisioningState": "Succeeded", + "serverRole": "Secondary" + } + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_List.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_List.json new file mode 100644 index 000000000000..d4c926af8173 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_List.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/linkedServers/cache2", + "name": "cache2", + "type": "Microsoft.Cache/Redis/linkedServers", + "properties": { + "linkedRedisCacheId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache2", + "linkedRedisCacheLocation": "West US", + "geoReplicatedPrimaryHostName": "cache2.geo.redis.cache.windows.net", + "primaryHostName": "cache1.redis.cache.windows.net", + "provisioningState": "Succeeded", + "serverRole": "Secondary" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/linkedServers/cache3", + "name": "cache3", + "type": "Microsoft.Cache/Redis/linkedServers", + "properties": { + "linkedRedisCacheId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache3", + "linkedRedisCacheLocation": "West US", + "geoReplicatedPrimaryHostName": "cache3.geo.redis.cache.windows.net", + "primaryHostName": "cache1.redis.cache.windows.net", + "provisioningState": "Succeeded", + "serverRole": "Secondary" + } + } + ] + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheList.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheList.json new file mode 100644 index 000000000000..912123b7b14b --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheList.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2022-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1", + "location": "West US", + "name": "cache1", + "type": "Microsoft.Cache/Redis", + "tags": {}, + "properties": { + "provisioningState": "Creating", + "redisVersion": "3.2", + "sku": { + "name": "Standard", + "family": "C", + "capacity": 6 + }, + "enableNonSslPort": true, + "replicasPerMaster": 2, + "replicasPerPrimary": 2, + "redisConfiguration": {}, + "hostName": "cache1.redis.cache.windows.net", + "port": 6379, + "sslPort": 6380, + "instances": [ + { + "sslPort": 15000, + "nonSslPort": 13000, + "isMaster": true, + "isPrimary": true + }, + { + "sslPort": 15001, + "nonSslPort": 13001, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15002, + "nonSslPort": 13002, + "isMaster": false, + "isPrimary": false + } + ] + } + } + ] + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListByResourceGroup.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListByResourceGroup.json new file mode 100644 index 000000000000..a6d90522bb6b --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListByResourceGroup.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2022-06-01", + "resourceGroupName": "rg1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1", + "location": "West US", + "name": "cache1", + "type": "Microsoft.Cache/Redis", + "tags": {}, + "properties": { + "provisioningState": "Creating", + "redisVersion": "3.2", + "sku": { + "name": "Standard", + "family": "C", + "capacity": 6 + }, + "enableNonSslPort": true, + "redisConfiguration": {}, + "hostName": "cache1.redis.cache.windows.net", + "port": 6379, + "sslPort": 6380 + } + } + ] + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListKeys.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListKeys.json new file mode 100644 index 000000000000..cbddbadc600e --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListKeys.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "primaryKey": "", + "secondaryKey": "" + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateEndpointConnections.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateEndpointConnections.json new file mode 100644 index 000000000000..dae66eeec96e --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateEndpointConnections.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "rgtest01", + "cacheName": "cachetest01", + "privateEndpointConnectionName": "pectest01", + "api-version": "2022-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/rgtest01/providers/Microsoft.Cache/Redis/cachetest01/privateEndpointConnections/pectest01", + "name": "pectest01", + "type": "Microsoft.Cache/Redis/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/rgtest01/providers/Microsoft.Network/privateEndpoints/petest01" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved", + "actionsRequired": "None" + } + } + }, + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/rgtest01/providers/Microsoft.Cache/Redis/cachetest01/privateEndpointConnections/pectest01", + "name": "pectest01", + "type": "Microsoft.Cache/Redis/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/rgtest01/providers/Microsoft.Network/privateEndpoints/petest01" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved", + "actionsRequired": "None" + } + } + } + ] + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateLinkResources.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateLinkResources.json new file mode 100644 index 000000000000..fe9b4666e0b7 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateLinkResources.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "rgtest01", + "cacheName": "cacheTest01", + "api-version": "2022-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/rgtest01/providers/Microsoft.Cache/Redis/cacheTest01/privateLinkResources/redisCache", + "name": "redisCache", + "type": "Microsoft.Cache/Redis/privateLinkResources", + "properties": { + "groupId": "redisCache", + "requiredMembers": [ + "redisCache" + ], + "requiredZoneNames": [ + "privatelink.redis.cache.windows.net" + ] + } + } + ] + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListUpgradeNotifications.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListUpgradeNotifications.json new file mode 100644 index 000000000000..05d9d74d958e --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListUpgradeNotifications.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid", + "history": "5000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "notification1", + "timestamp": "2017-02-16T23:20:50.52Z", + "upsellNotification": {} + } + ] + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheOperations.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheOperations.json new file mode 100644 index 000000000000..11dc2895c4a5 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheOperations.json @@ -0,0 +1,643 @@ +{ + "parameters": { + "api-version": "2022-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Cache/checknameavailability/action", + "display": { + "provider": "Microsoft Cache", + "resource": null, + "operation": "Check Cache Name Availability", + "description": "Checks if a name is available for use with a new Redis Cache" + } + }, + { + "name": "Microsoft.Cache/register/action", + "display": { + "provider": "Microsoft Cache", + "resource": null, + "operation": "Register Resource Provider Microsoft.Cache", + "description": "Registers the 'Microsoft.Cache' resource provider with a subscription" + } + }, + { + "name": "Microsoft.Cache/unregister/action", + "display": { + "provider": "Microsoft Cache", + "resource": null, + "operation": "Unregister Resource Provider Microsoft.Cache", + "description": "Unregisters the 'Microsoft.Cache' resource provider with a subscription" + } + }, + { + "name": "Microsoft.Cache/operations/read", + "display": { + "provider": "Microsoft Cache", + "resource": null, + "operation": "List Provider Operations", + "description": "Lists the operations that 'Microsoft.Cache' provider supports." + } + }, + { + "name": "Microsoft.Cache/locations/operationResults/read", + "display": { + "provider": "Microsoft Cache", + "resource": null, + "operation": "Read operation results", + "description": "Gets the result of a long running operation for which the 'Location' header was previously returned to the client" + } + }, + { + "name": "Microsoft.Cache/locations/operationsStatus/read", + "display": { + "provider": "Microsoft Cache", + "resource": null, + "operation": "Read the status of a long running operation", + "description": "View the status of a long running operation for which the 'AzureAsync' header was previously returned to the client" + } + }, + { + "name": "Microsoft.Cache/locations/asyncOperations/read", + "display": { + "provider": "Microsoft Cache", + "resource": null, + "operation": "Read asynchronous operation status", + "description": "Read an Async Operation's Status" + } + }, + { + "name": "Microsoft.Cache/locations/checknameavailability/action", + "display": { + "provider": "Microsoft Cache", + "resource": null, + "operation": "Check Cache Name Availability in location", + "description": "Checks if a name is available for use with a new Redis Enterprise cache" + } + }, + { + "name": "Microsoft.Cache/redis/write", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Cache", + "operation": "Manage Redis Cache (read-write)", + "description": "Modify the Redis Cache's settings and configuration in the management portal" + } + }, + { + "name": "Microsoft.Cache/redis/read", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Cache", + "operation": "Manage Redis Cache (read-only)", + "description": "View the Redis Cache's settings and configuration in the management portal" + } + }, + { + "name": "Microsoft.Cache/redis/delete", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Cache", + "operation": "Delete Redis Cache", + "description": "Delete the entire Redis Cache" + } + }, + { + "name": "Microsoft.Cache/redis/listKeys/action", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Cache", + "operation": "View Redis Cache Access Keys", + "description": "View the value of Redis Cache access keys in the management portal" + } + }, + { + "name": "Microsoft.Cache/redis/regenerateKey/action", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Cache", + "operation": "Regenerate Redis Cache Access Keys", + "description": "Change the value of Redis Cache access keys in the management portal" + } + }, + { + "name": "Microsoft.Cache/redis/import/action", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Cache", + "operation": "Import data into Redis from storage", + "description": "Import data of a specified format from multiple blobs into Redis" + } + }, + { + "name": "Microsoft.Cache/redis/export/action", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Cache", + "operation": "Export Redis data to storage", + "description": "Export Redis data to prefixed storage blobs in specified format" + } + }, + { + "name": "Microsoft.Cache/redis/forceReboot/action", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Cache", + "operation": "Force reboot a cache instance, potentially with data loss.", + "description": "Force reboot a cache instance, potentially with data loss." + } + }, + { + "name": "Microsoft.Cache/redis/stop/action", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Cache", + "operation": "Stop an Azure Cache for Redis, potentially with data loss.", + "description": "Stop an Azure Cache for Redis, potentially with data loss." + } + }, + { + "name": "Microsoft.Cache/redis/start/action", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Cache", + "operation": "Start an Azure Cache for Redis", + "description": "Start an Azure Cache for Redis" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/delete", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise cache", + "operation": "Delete Redis Enterprise cache", + "description": "Delete the entire Redis Enterprise cache" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/read", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise cache", + "operation": "Manage Redis Enterprise cache (read)", + "description": "View the Redis Enterprise cache's settings and configuration in the management portal" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/write", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise cache", + "operation": "Manage Redis Enterprise cache (write)", + "description": "Modify the Redis Enterprise cache's settings and configuration in the management portal" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/databases/delete", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise cache database", + "operation": "Delete Redis Enterprise database", + "description": "Deletes a Redis Enterprise database and its contents" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/databases/read", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise cache database", + "operation": "Manage Redis Enterprise cache database (read)", + "description": "View the Redis Enterprise cache database's settings and configuration in the management portal" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/databases/write", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise cache database", + "operation": "Manage Redis Enterprise cache database (write)", + "description": "Modify the Redis Enterprise cache database's settings and configuration in the management portal" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/databases/export/action", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise cache database", + "operation": "Export Redis Enterprise database", + "description": "Export data to storage blobs from a Redis Enterprise database " + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/databases/forceUnlink/action", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise cache database", + "operation": "Force unlink Redis Enterprise database georeplica", + "description": "Forcibly unlink a georeplica Redis Enterprise database from its peers" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/databases/import/action", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise cache database", + "operation": "Import Redis Enterprise database", + "description": "Import data from storage blobs to a Redis Enterprise database" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/databases/listKeys/action", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise cache database", + "operation": "View Redis Enterprise database access keys", + "description": "View the value of Redis Enterprise database access keys in the management portal" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/databases/regenerateKey/action", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise cache database", + "operation": "Regenerate Redis Enterprise database access keys", + "description": "Change the value of Redis Enterprise database access keys in the management portal" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/databases/operationResults/read", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise database operation results", + "operation": "View Redis Enterprise database operation results", + "description": "View the result of Redis Enterprise database operations in the management portal" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/operationResults/read", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise operation results", + "operation": "View Redis Enterprise operation results", + "description": "View the result of Redis Enterprise operations in the management portal" + } + }, + { + "name": "Microsoft.Cache/redis/metricDefinitions/read", + "display": { + "provider": "Microsoft Cache", + "resource": "The available metrics for a Redis Cache", + "operation": "Read Redis Cache Metric Definitions", + "description": "Gets the available metrics for a Redis Cache" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/providers/Microsoft.Insights/metricDefinitions/read", + "display": { + "provider": "Microsoft Cache", + "resource": "The available metrics for a Redis Enterprise Cache", + "operation": "Read Redis Enterprise Metric Definitions", + "description": "Gets the available metrics for a Redis Enterprise Cache" + } + }, + { + "name": "Microsoft.Cache/redis/patchSchedules/read", + "display": { + "provider": "Microsoft Cache", + "resource": "Patching schedule of a Redis Cache", + "operation": "Get Redis Cache Patch Schedule", + "description": "Gets the patching schedule of a Redis Cache" + } + }, + { + "name": "Microsoft.Cache/redis/patchSchedules/write", + "display": { + "provider": "Microsoft Cache", + "resource": "Patching schedule of a Redis Cache", + "operation": "Change Redis Patching Schedule", + "description": "Modify the patching schedule of a Redis Cache" + } + }, + { + "name": "Microsoft.Cache/redis/patchSchedules/delete", + "display": { + "provider": "Microsoft Cache", + "resource": "Patching schedule of a Redis Cache", + "operation": "Delete Redis Cache Patch Schedule", + "description": "Delete the patch schedule of a Redis Cache" + } + }, + { + "name": "Microsoft.Cache/redis/firewallRules/read", + "display": { + "provider": "Microsoft Cache", + "resource": "IP firewall rule of a Redis Cache", + "operation": "Get Redis Cache Firewall Rule", + "description": "Get the IP firewall rules of a Redis Cache" + } + }, + { + "name": "Microsoft.Cache/redis/firewallRules/write", + "display": { + "provider": "Microsoft Cache", + "resource": "IP firewall rule of a Redis Cache", + "operation": "Update Redis Cache Firewall Rule", + "description": "Edit the IP firewall rules of a Redis Cache" + } + }, + { + "name": "Microsoft.Cache/redis/firewallRules/delete", + "display": { + "provider": "Microsoft Cache", + "resource": "IP firewall rule of a Redis Cache", + "operation": "Delete Redis Cache Firewall Rule", + "description": "Delete IP firewall rules of a Redis Cache" + } + }, + { + "name": "Microsoft.Cache/redis/linkedServers/read", + "display": { + "provider": "Microsoft Cache", + "resource": "Linked Servers of a Redis Cache", + "operation": "Get Redis Cache Linked Servers", + "description": "Get Linked Servers associated with a redis cache." + } + }, + { + "name": "Microsoft.Cache/redis/linkedServers/write", + "display": { + "provider": "Microsoft Cache", + "resource": "Linked Servers of a Redis Cache", + "operation": "Add Redis Cache Linked Server", + "description": "Add Linked Server to a Redis Cache" + } + }, + { + "name": "Microsoft.Cache/redis/linkedServers/delete", + "display": { + "provider": "Microsoft Cache", + "resource": "Linked Servers of a Redis Cache", + "operation": "Delete Redis Cache Linked Server", + "description": "Delete Linked Server from a Redis Cache" + } + }, + { + "name": "Microsoft.Cache/redis/eventGridFilters/read", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Cache Event Grid Filter", + "operation": "Get Redis Cache Event Grid Filter", + "description": "Get Redis Cache Event Grid Filter" + } + }, + { + "name": "Microsoft.Cache/redis/eventGridFilters/write", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Cache Event Grid Filter", + "operation": "Update Redis Cache Event Grid Filters", + "description": "Update Redis Cache Event Grid Filters" + } + }, + { + "name": "Microsoft.Cache/redis/eventGridFilters/delete", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Cache Event Grid Filter", + "operation": "Delete Redis Cache Event Grid Filters", + "description": "Delete Redis Cache Event Grid Filters" + } + }, + { + "name": "Microsoft.Cache/redis/privateEndpointConnectionProxies/validate/action", + "display": { + "provider": "Microsoft Cache", + "resource": "Azure Cache for Redis private endpoint connection proxies", + "operation": "Validate private endpoint connection proxy", + "description": "Validate the private endpoint connection proxy" + } + }, + { + "name": "Microsoft.Cache/redis/privateEndpointConnectionProxies/read", + "display": { + "provider": "Microsoft Cache", + "resource": "Azure Cache for Redis private endpoint connection proxies", + "operation": "Get private endpoint connection proxy", + "description": "Get the private endpoint connection proxy" + } + }, + { + "name": "Microsoft.Cache/redis/privateEndpointConnectionProxies/write", + "display": { + "provider": "Microsoft Cache", + "resource": "Azure Cache for Redis private endpoint connection proxies", + "operation": "Create private endpoint connection proxy", + "description": "Create the private endpoint connection proxy" + } + }, + { + "name": "Microsoft.Cache/redis/privateEndpointConnectionProxies/delete", + "display": { + "provider": "Microsoft Cache", + "resource": "Azure Cache for Redis private endpoint connection proxies", + "operation": "Delete private endpoint connection proxy", + "description": "Delete the private endpoint connection proxy" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/privateEndpointConnectionProxies/validate/action", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise private endpoint connection proxies", + "operation": "Validate private endpoint connection proxy", + "description": "Validate the private endpoint connection proxy" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/privateEndpointConnectionProxies/read", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise private endpoint connection proxies", + "operation": "Get private endpoint connection proxy", + "description": "Get the private endpoint connection proxy" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/privateEndpointConnectionProxies/write", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise private endpoint connection proxies", + "operation": "Create private endpoint connection proxy", + "description": "Create the private endpoint connection proxy" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/privateEndpointConnectionProxies/delete", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise private endpoint connection proxies", + "operation": "Delete private endpoint connection proxy", + "description": "Delete the private endpoint connection proxy" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/privateEndpointConnectionProxies/operationResults/read", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise private endpoint connection proxies", + "operation": "Redis Enterprise cache private endpoint operation results (read)", + "description": "View the result of private endpoint connection operations in the management portal" + } + }, + { + "name": "Microsoft.Cache/redis/privateEndpointConnections/read", + "display": { + "provider": "Microsoft Cache", + "resource": "Azure Cache for Redis private endpoint connections", + "operation": "Read private endpoint connection", + "description": "Read a private endpoint connection" + } + }, + { + "name": "Microsoft.Cache/redis/privateEndpointConnections/write", + "display": { + "provider": "Microsoft Cache", + "resource": "Azure Cache for Redis private endpoint connections", + "operation": "Write private endpoint connection", + "description": "Write a private endpoint connection" + } + }, + { + "name": "Microsoft.Cache/redis/privateEndpointConnections/delete", + "display": { + "provider": "Microsoft Cache", + "resource": "Azure Cache for Redis private endpoint connections", + "operation": "Delete private endpoint connection", + "description": "Delete a private endpoint connection" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/privateEndpointConnections/read", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise cache private endpoint connections", + "operation": "Read private endpoint connection", + "description": "Read a private endpoint connection" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/privateEndpointConnections/write", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise cache private endpoint connections", + "operation": "Write private endpoint connection", + "description": "Write a private endpoint connection" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/privateEndpointConnections/delete", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise cache private endpoint connections", + "operation": "Delete private endpoint connection", + "description": "Delete a private endpoint connection" + } + }, + { + "name": "Microsoft.Cache/redis/privateLinkResources/read", + "display": { + "provider": "Microsoft Cache", + "resource": "Azure Cache for Redis private linkable resources", + "operation": "Read Private Linkable Resources", + "description": "Read 'groupId' of redis subresource that a private link can be connected to" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/privateLinkResources/read", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise cache private link resources", + "operation": "Read Private Linkable Resources", + "description": "Read 'groupId' of redis subresource that a private link can be connected to" + } + }, + { + "name": "Microsoft.Cache/redis/roles/read", + "display": { + "provider": "Microsoft Cache", + "resource": "Azure Cache for Redis Roles", + "operation": "Read Redis Roles", + "description": "Read roles on a Redis Cache" + } + }, + { + "name": "Microsoft.Cache/redis/roles/write", + "display": { + "provider": "Microsoft Cache", + "resource": "Azure Cache for Redis Roles", + "operation": "Update Redis Roles", + "description": "Create or update role on a Redis Cache" + } + }, + { + "name": "Microsoft.Cache/redis/roles/delete", + "display": { + "provider": "Microsoft Cache", + "resource": "Azure Cache for Redis Roles", + "operation": "Delete Redis Roles", + "description": "Delete role on a Redis Cache" + } + }, + { + "name": "Microsoft.Cache/redis/roleAssignments/read", + "display": { + "provider": "Microsoft Cache", + "resource": "Azure Cache for Redis Role Description", + "operation": "Read Redis Role Assignments", + "description": "Read role assignments on a Redis Cache" + } + }, + { + "name": "Microsoft.Cache/redis/roleAssignments/write", + "display": { + "provider": "Microsoft Cache", + "resource": "Azure Cache for Redis Role Description", + "operation": "Update Redis Role Assignments", + "description": "Create or update role assignments on a Redis Cache" + } + }, + { + "name": "Microsoft.Cache/redis/roleAssignments/delete", + "display": { + "provider": "Microsoft Cache", + "resource": "Azure Cache for Redis Role Description", + "operation": "Delete Redis Role Assignment", + "description": "Delete All Redis Role Assignments" + } + }, + { + "name": "Microsoft.Cache/redis/PrivateEndpointConnectionsApproval/action", + "display": { + "provider": "Microsoft Cache", + "resource": "Azure Cache for Redis private linkable resources", + "operation": "Approve Private Endpoint Connections", + "description": "Approve Private Endpoint Connections" + } + }, + { + "name": "Microsoft.Cache/redisEnterprise/PrivateEndpointConnectionsApproval/action", + "display": { + "provider": "Microsoft Cache", + "resource": "Redis Enterprise cache private link resources", + "operation": "Approve Private Endpoint Connections", + "description": "Approve Private Endpoint Connections" + } + } + ] + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesCreateOrUpdate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesCreateOrUpdate.json new file mode 100644 index 000000000000..c0dfb1b97b65 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesCreateOrUpdate.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "default": "default", + "api-version": "2022-06-01", + "subscriptionId": "subid", + "parameters": { + "properties": { + "scheduleEntries": [ + { + "dayOfWeek": "Monday", + "startHourUtc": 12, + "maintenanceWindow": "PT5H" + }, + { + "dayOfWeek": "Tuesday", + "startHourUtc": 12 + } + ] + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/patchSchedules/default", + "location": "East US", + "name": "cachename1/default", + "type": "Microsoft.Cache/Redis/PatchSchedules", + "properties": { + "scheduleEntries": [ + { + "dayOfWeek": "Monday", + "startHourUtc": 12, + "maintenanceWindow": "PT5H" + }, + { + "dayOfWeek": "Tuesday", + "startHourUtc": 12 + } + ] + } + } + }, + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/patchSchedules/default", + "location": "East US", + "name": "cachename1/default", + "type": "Microsoft.Cache/Redis/PatchSchedules", + "properties": { + "scheduleEntries": [ + { + "dayOfWeek": "Monday", + "startHourUtc": 12, + "maintenanceWindow": "PT5H" + }, + { + "dayOfWeek": "Tuesday", + "startHourUtc": 12 + } + ] + } + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesDelete.json new file mode 100644 index 000000000000..49b71439c4c7 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "default": "default", + "api-version": "2022-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesGet.json new file mode 100644 index 000000000000..9976f36169b7 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesGet.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "default": "default", + "api-version": "2022-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/patchSchedules/default", + "location": "East US", + "name": "cache1/default", + "type": "Microsoft.Cache/Redis/PatchSchedules", + "properties": { + "scheduleEntries": [ + { + "dayOfWeek": "Monday", + "startHourUtc": 12, + "maintenanceWindow": "PT5H" + }, + { + "dayOfWeek": "Tuesday", + "startHourUtc": 12 + } + ] + } + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesList.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesList.json new file mode 100644 index 000000000000..7f6a49f4ea2f --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesList.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "cacheName": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/patchSchedules/default", + "location": "East US", + "name": "cache1/default", + "type": "Microsoft.Cache/Redis/PatchSchedules", + "properties": { + "scheduleEntries": [ + { + "dayOfWeek": "Monday", + "startHourUtc": 12, + "maintenanceWindow": "PT5H" + }, + { + "dayOfWeek": "Tuesday", + "startHourUtc": 12 + } + ] + } + } + ] + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePutPrivateEndpointConnection.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePutPrivateEndpointConnection.json new file mode 100644 index 000000000000..03156915e4be --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePutPrivateEndpointConnection.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "rgtest01", + "cacheName": "cachetest01", + "privateEndpointConnectionName": "pectest01", + "api-version": "2022-06-01", + "properties": { + "properties": { + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/rgtest01/providers/Microsoft.Cache/Redis/cachetest01/privateEndpointConnections/pectest01", + "name": "pectest01", + "type": "Microsoft.Cache/Redis/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/rgtest01/providers/Microsoft.Network/privateEndpoints/petest01" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved", + "actionsRequired": "None" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/rgtest01/providers/Microsoft.Cache/Redis/cachetest01/privateEndpointConnections/pectest01", + "name": "pectest01", + "type": "Microsoft.Cache/Redis/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/rgtest01/providers/Microsoft.Network/privateEndpoints/petest01" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved", + "actionsRequired": "None" + } + } + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheRegenerateKey.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheRegenerateKey.json new file mode 100644 index 000000000000..1dda98853ff5 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheRegenerateKey.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid", + "parameters": { + "keyType": "Primary" + } + }, + "responses": { + "200": { + "body": { + "primaryKey": "", + "secondaryKey": "" + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheUpdate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheUpdate.json new file mode 100644 index 000000000000..47aee6b84d83 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheUpdate.json @@ -0,0 +1,125 @@ +{ + "parameters": { + "name": "cache1", + "resourceGroupName": "rg1", + "api-version": "2022-06-01", + "subscriptionId": "subid", + "parameters": { + "properties": { + "enableNonSslPort": true, + "replicasPerPrimary": 2 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1", + "location": "West US", + "name": "cache1", + "type": "Microsoft.Cache/Redis", + "tags": {}, + "properties": { + "accessKeys": { + "primaryKey": "", + "secondaryKey": "" + }, + "provisioningState": "Succeeded", + "redisVersion": "3.0", + "sku": { + "name": "Premium", + "family": "P", + "capacity": 1 + }, + "enableNonSslPort": true, + "replicasPerMaster": 2, + "replicasPerPrimary": 2, + "redisConfiguration": { + "maxclients": "1000", + "maxmemory-reserved": "50", + "maxmemory-delta": "50" + }, + "hostName": "cache1.redis.cache.windows.net", + "port": 6379, + "sslPort": 6380, + "instances": [ + { + "sslPort": 15000, + "nonSslPort": 13000, + "isMaster": true, + "isPrimary": true + }, + { + "sslPort": 15001, + "nonSslPort": 13001, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15002, + "nonSslPort": 13002, + "isMaster": false, + "isPrimary": false + } + ] + } + } + }, + "202": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1", + "location": "West US", + "name": "cache1", + "type": "Microsoft.Cache/Redis", + "tags": {}, + "properties": { + "accessKeys": { + "primaryKey": "", + "secondaryKey": "" + }, + "provisioningState": "Succeeded", + "redisVersion": "3.0", + "sku": { + "name": "Premium", + "family": "P", + "capacity": 1 + }, + "enableNonSslPort": true, + "replicasPerMaster": 2, + "replicasPerPrimary": 2, + "redisConfiguration": { + "maxclients": "1000", + "maxmemory-reserved": "50", + "maxmemory-delta": "50" + }, + "hostName": "cache1.redis.cache.windows.net", + "port": 6379, + "sslPort": 6380, + "instances": [ + { + "sslPort": 15000, + "nonSslPort": 13000, + "isMaster": true, + "isPrimary": true + }, + { + "sslPort": 15001, + "nonSslPort": 13001, + "isMaster": false, + "isPrimary": false + }, + { + "sslPort": 15002, + "nonSslPort": 13002, + "isMaster": false, + "isPrimary": false + } + ] + } + }, + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..." + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json new file mode 100644 index 000000000000..94e5eeb9a209 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json @@ -0,0 +1,2846 @@ +{ + "swagger": "2.0", + "info": { + "title": "RedisManagementClient", + "description": "REST API for Azure Redis Cache Service.", + "version": "2022-06-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.Cache/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available REST API operations of the Microsoft.Cache provider.", + "operationId": "Operations_List", + "x-ms-examples": { + "RedisCacheOperations": { + "$ref": "./examples/RedisCacheOperations.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success. The response describes the list of operations.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "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}/providers/Microsoft.Cache/CheckNameAvailability": { + "post": { + "tags": [ + "Redis" + ], + "operationId": "Redis_CheckNameAvailability", + "x-ms-examples": { + "RedisCacheCheckNameAvailability": { + "$ref": "./examples/RedisCacheCheckNameAvailability.json" + } + }, + "description": "Checks that the redis cache name is valid and is not already in use.", + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityParameters" + }, + "description": "Parameters supplied to the CheckNameAvailability Redis operation. The only supported resource type is 'Microsoft.Cache/redis'" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Name is available" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/listUpgradeNotifications": { + "get": { + "tags": [ + "Redis" + ], + "operationId": "Redis_ListUpgradeNotifications", + "x-ms-examples": { + "RedisCacheListUpgradeNotifications": { + "$ref": "./examples/RedisCacheListUpgradeNotifications.json" + } + }, + "description": "Gets any upgrade notifications for a Redis cache.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "history", + "in": "query", + "required": true, + "type": "number", + "format": "double", + "description": "how many minutes in past to look for upgrade notifications" + } + ], + "responses": { + "200": { + "description": "All upgrade notifications in given time range", + "schema": { + "$ref": "#/definitions/NotificationListResponse" + } + }, + "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/redis/{name}": { + "put": { + "tags": [ + "Redis" + ], + "operationId": "Redis_Create", + "x-ms-examples": { + "RedisCacheCreateDefaultVersion": { + "$ref": "./examples/RedisCacheCreateDefaultVersion.json" + }, + "RedisCacheCreateLatestVersion": { + "$ref": "./examples/RedisCacheCreateLatestVersion.json" + }, + "RedisCacheCreate": { + "$ref": "./examples/RedisCacheCreate.json" + } + }, + "description": "Create or replace (overwrite/recreate, with potential downtime) an existing Redis cache.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RedisCreateParameters" + }, + "description": "Parameters supplied to the Create Redis operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "The new redis cache was successfully created. Check provisioningState to see detailed status.", + "schema": { + "$ref": "#/definitions/RedisResource" + } + }, + "200": { + "description": "The existing redis cache was successfully updated. Check provisioningState to see detailed status.", + "schema": { + "$ref": "#/definitions/RedisResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "Redis" + ], + "operationId": "Redis_Update", + "x-ms-examples": { + "RedisCacheUpdate": { + "$ref": "./examples/RedisCacheUpdate.json" + } + }, + "description": "Update an existing Redis cache.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RedisUpdateParameters" + }, + "description": "Parameters supplied to the Update Redis operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The existing redis cache was successfully updated. Check provisioningState to see detailed status.", + "schema": { + "$ref": "#/definitions/RedisResource" + } + }, + "202": { + "description": "The existing redis cache was successfully updated. Check Azure-AsyncOperation headers to poll detailed status.", + "schema": { + "$ref": "#/definitions/RedisResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Redis" + ], + "operationId": "Redis_Delete", + "x-ms-examples": { + "RedisCacheDelete": { + "$ref": "./examples/RedisCacheDelete.json" + } + }, + "description": "Deletes a Redis cache.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The redis cache was successfully deleted." + }, + "202": { + "description": "The redis cache 'delete' operation was successfully enqueued; follow the Location header to poll for final outcome." + }, + "204": { + "description": "The redis cache was successfully deleted." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "Redis" + ], + "operationId": "Redis_Get", + "x-ms-examples": { + "RedisCacheGet": { + "$ref": "./examples/RedisCacheGet.json" + } + }, + "description": "Gets a Redis cache (resource description).", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The redis cache was successfully found.", + "schema": { + "$ref": "#/definitions/RedisResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis": { + "get": { + "tags": [ + "Redis" + ], + "operationId": "Redis_ListByResourceGroup", + "x-ms-examples": { + "RedisCacheListByResourceGroup": { + "$ref": "./examples/RedisCacheListByResourceGroup.json" + } + }, + "description": "Lists all Redis caches in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RedisListResult" + } + }, + "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}/providers/Microsoft.Cache/redis": { + "get": { + "tags": [ + "Redis" + ], + "operationId": "Redis_ListBySubscription", + "x-ms-examples": { + "RedisCacheList": { + "$ref": "./examples/RedisCacheList.json" + } + }, + "description": "Gets all Redis caches in the specified subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RedisListResult" + } + }, + "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/redis/{name}/listKeys": { + "post": { + "tags": [ + "Redis" + ], + "operationId": "Redis_ListKeys", + "x-ms-examples": { + "RedisCacheListKeys": { + "$ref": "./examples/RedisCacheListKeys.json" + } + }, + "description": "Retrieve a Redis cache's access keys. This operation requires write permission to the cache resource.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Lists the keys for the specified Redis cache.", + "schema": { + "$ref": "#/definitions/RedisAccessKeys" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/regenerateKey": { + "post": { + "tags": [ + "Redis" + ], + "operationId": "Redis_RegenerateKey", + "x-ms-examples": { + "RedisCacheRegenerateKey": { + "$ref": "./examples/RedisCacheRegenerateKey.json" + } + }, + "description": "Regenerate Redis cache's access keys. This operation requires write permission to the cache resource.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RedisRegenerateKeyParameters" + }, + "description": "Specifies which key to regenerate." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Lists the regenerated keys for Redis Cache", + "schema": { + "$ref": "#/definitions/RedisAccessKeys" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/forceReboot": { + "post": { + "tags": [ + "Redis" + ], + "operationId": "Redis_ForceReboot", + "x-ms-examples": { + "RedisCacheForceReboot": { + "$ref": "./examples/RedisCacheForceReboot.json" + } + }, + "description": "Reboot specified Redis node(s). This operation requires write permission to the cache resource. There can be potential data loss.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RedisRebootParameters" + }, + "description": "Specifies which Redis node(s) to reboot." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Reboot operation successfully enqueued", + "schema": { + "$ref": "#/definitions/RedisForceRebootResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/import": { + "post": { + "tags": [ + "Redis" + ], + "operationId": "Redis_ImportData", + "x-ms-examples": { + "RedisCacheImport": { + "$ref": "./examples/RedisCacheImport.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Import data into Redis cache.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ImportRDBParameters" + }, + "description": "Parameters for Redis import operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Import operation successfully enqueued; follow the Location header to poll for final outcome." + }, + "200": { + "description": "Import operation succeeded." + }, + "204": { + "description": "Import operation succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/export": { + "post": { + "tags": [ + "Redis" + ], + "operationId": "Redis_ExportData", + "x-ms-examples": { + "RedisCacheExport": { + "$ref": "./examples/RedisCacheExport.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Export data from the redis cache to blobs in a container.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ExportRDBParameters" + }, + "description": "Parameters for Redis export operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Export operation successfully enqueued; follow the Location header to poll for final outcome." + }, + "200": { + "description": "Export operation succeeded." + }, + "204": { + "description": "Export operation succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/firewallRules": { + "get": { + "tags": [ + "Redis", + "FirewallRules" + ], + "operationId": "FirewallRules_List", + "description": "Gets all firewall rules in the specified redis cache.", + "x-ms-examples": { + "RedisCacheFirewallRulesList": { + "$ref": "./examples/RedisCacheFirewallRulesList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "cacheName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + } + ], + "responses": { + "200": { + "description": "Successfully got the current rules", + "schema": { + "$ref": "#/definitions/RedisFirewallRuleListResult" + } + }, + "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/redis/{cacheName}/firewallRules/{ruleName}": { + "put": { + "tags": [ + "Redis", + "FirewallRules" + ], + "operationId": "FirewallRules_CreateOrUpdate", + "description": "Create or update a redis cache firewall rule", + "x-ms-examples": { + "RedisCacheFirewallRuleCreate": { + "$ref": "./examples/RedisCacheFirewallRuleCreate.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "cacheName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "name": "ruleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the firewall rule." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RedisFirewallRule" + }, + "description": "Parameters supplied to the create or update redis firewall rule operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Resource was successfully updated", + "schema": { + "$ref": "#/definitions/RedisFirewallRule" + } + }, + "201": { + "description": "Resource was successfully created", + "schema": { + "$ref": "#/definitions/RedisFirewallRule" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "Redis", + "FirewallRules" + ], + "operationId": "FirewallRules_Get", + "description": "Gets a single firewall rule in a specified redis cache.", + "x-ms-examples": { + "RedisCacheFirewallRuleGet": { + "$ref": "./examples/RedisCacheFirewallRuleGet.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "cacheName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "name": "ruleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the firewall rule." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successfully found the rule", + "schema": { + "$ref": "#/definitions/RedisFirewallRule" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Redis", + "FirewallRules" + ], + "operationId": "FirewallRules_Delete", + "description": "Deletes a single firewall rule in a specified redis cache.", + "x-ms-examples": { + "RedisCacheFirewallRuleDelete": { + "$ref": "./examples/RedisCacheFirewallRuleDelete.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "cacheName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "name": "ruleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the firewall rule." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the rule" + }, + "204": { + "description": "Successfully deleted the rule" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/patchSchedules": { + "get": { + "tags": [ + "Redis", + "PatchSchedules" + ], + "operationId": "PatchSchedules_ListByRedisResource", + "description": "Gets all patch schedules in the specified redis cache (there is only one).", + "x-ms-examples": { + "RedisCachePatchSchedulesList": { + "$ref": "./examples/RedisCachePatchSchedulesList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "cacheName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + } + ], + "responses": { + "200": { + "description": "Successfully got the current patch schedules", + "schema": { + "$ref": "#/definitions/RedisPatchScheduleListResult" + } + }, + "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/redis/{name}/patchSchedules/{default}": { + "put": { + "tags": [ + "Redis", + "PatchSchedules" + ], + "operationId": "PatchSchedules_CreateOrUpdate", + "x-ms-examples": { + "RedisCachePatchSchedulesCreateOrUpdate": { + "$ref": "./examples/RedisCachePatchSchedulesCreateOrUpdate.json" + } + }, + "description": "Create or replace the patching schedule for Redis cache.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "name": "default", + "in": "path", + "required": true, + "type": "string", + "description": "Default string modeled as parameter for auto generation to work correctly.", + "enum": [ + "default" + ], + "x-ms-enum": { + "name": "defaultName", + "modelAsString": true + } + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RedisPatchSchedule" + }, + "description": "Parameters to set the patching schedule for Redis cache." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The patch schedule was successfully updated.", + "schema": { + "$ref": "#/definitions/RedisPatchSchedule" + } + }, + "201": { + "description": "The patch schedule was successfully created.", + "schema": { + "$ref": "#/definitions/RedisPatchSchedule" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Redis", + "PatchSchedules" + ], + "operationId": "PatchSchedules_Delete", + "x-ms-examples": { + "RedisCachePatchSchedulesDelete": { + "$ref": "./examples/RedisCachePatchSchedulesDelete.json" + } + }, + "description": "Deletes the patching schedule of a redis cache.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the redis cache." + }, + { + "name": "default", + "in": "path", + "required": true, + "type": "string", + "description": "Default string modeled as parameter for auto generation to work correctly.", + "enum": [ + "default" + ], + "x-ms-enum": { + "name": "defaultName", + "modelAsString": true + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success." + }, + "204": { + "description": "Success." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "Redis", + "PatchSchedules" + ], + "operationId": "PatchSchedules_Get", + "x-ms-examples": { + "RedisCachePatchSchedulesGet": { + "$ref": "./examples/RedisCachePatchSchedulesGet.json" + } + }, + "description": "Gets the patching schedule of a redis cache.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the redis cache." + }, + { + "name": "default", + "in": "path", + "required": true, + "type": "string", + "description": "Default string modeled as parameter for auto generation to work correctly.", + "enum": [ + "default" + ], + "x-ms-enum": { + "name": "defaultName", + "modelAsString": true + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Response of get patch schedules.", + "schema": { + "$ref": "#/definitions/RedisPatchSchedule" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/linkedServers/{linkedServerName}": { + "put": { + "tags": [ + "Redis" + ], + "operationId": "LinkedServer_Create", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "LinkedServer_Create": { + "$ref": "./examples/RedisCacheLinkedServer_Create.json" + } + }, + "description": "Adds a linked server to the Redis cache (requires Premium SKU).", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "name": "linkedServerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the linked server that is being added to the Redis cache." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RedisLinkedServerCreateParameters" + }, + "description": "Parameters supplied to the Create Linked server operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The linked server was successfully added.", + "schema": { + "$ref": "#/definitions/RedisLinkedServerWithProperties" + } + }, + "201": { + "description": "The linked server was successfully added.", + "schema": { + "$ref": "#/definitions/RedisLinkedServerWithProperties" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Redis" + ], + "operationId": "LinkedServer_Delete", + "x-ms-examples": { + "LinkedServerDelete": { + "$ref": "./examples/RedisCacheLinkedServer_Delete.json" + } + }, + "description": "Deletes the linked server from a redis cache (requires Premium SKU).", + "x-ms-long-running-operation": true, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the redis cache." + }, + { + "name": "linkedServerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the linked server that is being added to the Redis cache." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Linked server was successfully deleted." + }, + "202": { + "description": "The linked server 'delete' operation was successfully enqueued; follow the Location header to poll for final outcome." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "Redis" + ], + "operationId": "LinkedServer_Get", + "x-ms-examples": { + "LinkedServer_Get": { + "$ref": "./examples/RedisCacheLinkedServer_Get.json" + } + }, + "description": "Gets the detailed information about a linked server of a redis cache (requires Premium SKU).", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the redis cache." + }, + { + "name": "linkedServerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the linked server." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Response of get linked server.", + "schema": { + "$ref": "#/definitions/RedisLinkedServerWithProperties" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/linkedServers": { + "get": { + "tags": [ + "Redis" + ], + "operationId": "LinkedServer_List", + "x-ms-examples": { + "LinkedServer_List": { + "$ref": "./examples/RedisCacheLinkedServer_List.json" + } + }, + "description": "Gets the list of linked servers associated with this redis cache (requires Premium SKU).", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the redis cache." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Response of get linked servers.", + "schema": { + "$ref": "#/definitions/RedisLinkedServerWithPropertiesList" + } + }, + "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/redis/{cacheName}/privateEndpointConnections": { + "get": { + "tags": [ + "PrivateEndpointConnections" + ], + "operationId": "PrivateEndpointConnections_List", + "description": "List all the private endpoint connections associated with the redis cache.", + "x-ms-examples": { + "RedisCacheListPrivateEndpointConnection": { + "$ref": "./examples/RedisCacheListPrivateEndpointConnections.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "cacheName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Successfully retrieved private endpoint connections.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections/{privateEndpointConnectionName}": { + "get": { + "tags": [ + "PrivateEndpointConnections" + ], + "operationId": "PrivateEndpointConnections_Get", + "description": "Gets the specified private endpoint connection associated with the redis cache.", + "x-ms-examples": { + "RedisCacheGetPrivateEndpointConnection": { + "$ref": "./examples/RedisCacheGetPrivateEndpointConnection.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "cacheName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/parameters/PrivateEndpointConnectionName" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Get the private endpoint connection properties successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "PrivateEndpointConnections" + ], + "operationId": "PrivateEndpointConnections_Put", + "description": "Update the state of specified private endpoint connection associated with the redis cache.", + "x-ms-examples": { + "RedisCachePutPrivateEndpointConnection": { + "$ref": "./examples/RedisCachePutPrivateEndpointConnection.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "cacheName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/parameters/PrivateEndpointConnectionName" + }, + { + "name": "properties", + "in": "body", + "required": true, + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection" + }, + "description": "The private endpoint connection properties." + } + ], + "responses": { + "200": { + "description": "OK -- Update the private endpoint connection properties successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "201": { + "description": "OK -- Update the private endpoint connection properties successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "PrivateEndpointConnections" + ], + "operationId": "PrivateEndpointConnections_Delete", + "description": "Deletes the specified private endpoint connection associated with the redis cache.", + "x-ms-examples": { + "RedisCacheDeletePrivateEndpointConnection": { + "$ref": "./examples/RedisCacheDeletePrivateEndpointConnection.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "cacheName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/parameters/PrivateEndpointConnectionName" + } + ], + "responses": { + "200": { + "description": "OK -- Delete the private endpoint connection successfully." + }, + "204": { + "description": "No Content -- The private endpoint connection does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateLinkResources": { + "get": { + "tags": [ + "PrivateLinkResources" + ], + "operationId": "PrivateLinkResources_ListByRedisCache", + "description": "Gets the private link resources that need to be created for a redis cache.", + "x-ms-examples": { + "StorageAccountListPrivateLinkResources": { + "$ref": "./examples/RedisCacheListPrivateLinkResources.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "cacheName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Redis cache." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private link resources.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateLinkResourceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/asyncOperations/{operationId}": { + "get": { + "tags": [ + "AsyncOperationStatus" + ], + "operationId": "AsyncOperationStatus_Get", + "description": "For checking the ongoing status of an operation", + "x-ms-examples": { + "RedisCacheAsyncOperationStatus": { + "$ref": "./examples/RedisCacheAsyncOperationStatus.json" + } + }, + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location at which operation was triggered" + }, + { + "name": "operationId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of asynchronous operation" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Asynchronous operation status response", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "The type of Redis cache to deploy. Valid values: (Basic, Standard, Premium)", + "enum": [ + "Basic", + "Standard", + "Premium" + ], + "x-ms-enum": { + "name": "SkuName", + "modelAsString": true + } + }, + "family": { + "type": "string", + "description": "The SKU family to use. Valid values: (C, P). (C = Basic/Standard, P = Premium).", + "enum": [ + "C", + "P" + ], + "x-ms-enum": { + "name": "SkuFamily", + "modelAsString": true + } + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The size of the Redis cache to deploy. Valid values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium) family (1, 2, 3, 4)." + } + }, + "required": [ + "name", + "family", + "capacity" + ], + "description": "SKU parameters supplied to the create Redis operation." + }, + "RedisCommonProperties": { + "properties": { + "redisConfiguration": { + "type": "object", + "properties": { + "rdb-backup-enabled": { + "type": "string", + "description": "Specifies whether the rdb backup is enabled" + }, + "rdb-backup-frequency": { + "type": "string", + "description": "Specifies the frequency for creating rdb backup in minutes. Valid values: (15, 30, 60, 360, 720, 1440)" + }, + "rdb-backup-max-snapshot-count": { + "type": "string", + "description": "Specifies the maximum number of snapshots for rdb backup" + }, + "rdb-storage-connection-string": { + "type": "string", + "description": "The storage account connection string for storing rdb file" + }, + "aof-backup-enabled": { + "type": "string", + "description": "Specifies whether the aof backup is enabled" + }, + "aof-storage-connection-string-0": { + "type": "string", + "description": "First storage account connection string" + }, + "aof-storage-connection-string-1": { + "type": "string", + "description": "Second storage account connection string" + }, + "maxfragmentationmemory-reserved": { + "type": "string", + "description": "Value in megabytes reserved for fragmentation per shard" + }, + "maxmemory-policy": { + "type": "string", + "description": "The eviction strategy used when your data won't fit within its memory limit." + }, + "maxmemory-reserved": { + "type": "string", + "description": "Value in megabytes reserved for non-cache usage per shard e.g. failover." + }, + "maxmemory-delta": { + "type": "string", + "description": "Value in megabytes reserved for non-cache usage per shard e.g. failover." + }, + "maxclients": { + "type": "string", + "description": "The max clients config", + "readOnly": true + }, + "preferred-data-archive-auth-method": { + "type": "string", + "description": "Preferred auth method to communicate to storage account used for data archive, specify SAS or ManagedIdentity, default value is SAS", + "readOnly": true + }, + "preferred-data-persistence-auth-method": { + "type": "string", + "description": "Preferred auth method to communicate to storage account used for data persistence, specify SAS or ManagedIdentity, default value is SAS" + }, + "zonal-configuration": { + "type": "string", + "description": "Zonal Configuration", + "readOnly": true + }, + "authnotrequired": { + "type": "string", + "description": "Specifies whether the authentication is disabled. Setting this property is highly discouraged from security point of view." + } + }, + "additionalProperties": {}, + "description": "All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc." + }, + "redisVersion": { + "type": "string", + "description": "Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'." + }, + "enableNonSslPort": { + "type": "boolean", + "default": false, + "description": "Specifies whether the non-ssl Redis server port (6379) is enabled." + }, + "replicasPerMaster": { + "type": "integer", + "format": "int32", + "description": "The number of replicas to be created per primary." + }, + "replicasPerPrimary": { + "type": "integer", + "format": "int32", + "description": "The number of replicas to be created per primary." + }, + "tenantSettings": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A dictionary of tenant settings" + }, + "shardCount": { + "type": "integer", + "format": "int32", + "description": "The number of shards to be created on a Premium Cluster Cache." + }, + "minimumTlsVersion": { + "type": "string", + "description": "Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2')", + "enum": [ + "1.0", + "1.1", + "1.2" + ], + "x-ms-enum": { + "name": "TlsVersion", + "modelAsString": true + } + }, + "publicNetworkAccess": { + "description": "Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'", + "enum": [ + "Enabled", + "Disabled" + ], + "default": "Enabled", + "type": "string", + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true + } + } + }, + "description": "Create/Update/Get common properties of the redis cache.", + "x-ms-external": true + }, + "RedisCreateProperties": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU of the Redis cache to deploy." + }, + "subnetId": { + "type": "string", + "pattern": "^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.(ClassicNetwork|Network)/virtualNetworks/[^/]*/subnets/[^/]*$", + "description": "The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1" + }, + "staticIP": { + "type": "string", + "pattern": "^\\d+\\.\\d+\\.\\d+\\.\\d+$", + "description": "Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default.", + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "required": [ + "sku" + ], + "allOf": [ + { + "$ref": "#/definitions/RedisCommonProperties" + } + ], + "description": "Properties supplied to Create Redis operation.", + "x-ms-external": true + }, + "RedisUpdateProperties": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU of the Redis cache to deploy." + } + }, + "allOf": [ + { + "$ref": "#/definitions/RedisCommonProperties" + } + ], + "description": "Patchable properties of the redis cache.", + "x-ms-external": true + }, + "RedisProperties": { + "properties": { + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "Redis instance provisioning status.", + "enum": [ + "Creating", + "Deleting", + "Disabled", + "Failed", + "Linking", + "Provisioning", + "RecoveringScaleFailure", + "Scaling", + "Succeeded", + "Unlinking", + "Unprovisioning", + "Updating" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "hostName": { + "readOnly": true, + "type": "string", + "description": "Redis host name." + }, + "port": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Redis non-SSL port." + }, + "sslPort": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Redis SSL port." + }, + "accessKeys": { + "readOnly": true, + "$ref": "#/definitions/RedisAccessKeys", + "description": "The keys of the Redis cache - not set if this object is not the response to Create or Update redis cache" + }, + "linkedServers": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/RedisLinkedServer" + }, + "description": "List of the linked servers associated with the cache" + }, + "instances": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/RedisInstanceDetails" + }, + "x-ms-identifiers": [ + "shardId" + ], + "description": "List of the Redis instances associated with the cache" + }, + "privateEndpointConnections": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection" + }, + "description": "List of private endpoint connection associated with the specified redis cache" + } + }, + "allOf": [ + { + "$ref": "#/definitions/RedisCreateProperties" + } + ], + "description": "Properties of the redis cache.", + "x-ms-external": true + }, + "RedisCreateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RedisCreateProperties", + "description": "Redis cache properties." + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of availability zones denoting where the resource needs to come from." + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The geo-location where the resource lives" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The identity of the resource." + } + }, + "required": [ + "properties", + "location" + ], + "description": "Parameters supplied to the Create Redis operation." + }, + "RedisUpdateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RedisUpdateProperties", + "description": "Redis cache properties." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The identity of the resource." + } + }, + "description": "Parameters supplied to the Update Redis operation." + }, + "RedisAccessKeys": { + "properties": { + "primaryKey": { + "readOnly": true, + "type": "string", + "description": "The current primary key that clients can use to authenticate with Redis cache." + }, + "secondaryKey": { + "readOnly": true, + "type": "string", + "description": "The current secondary key that clients can use to authenticate with Redis cache." + } + }, + "description": "Redis cache access keys." + }, + "RedisFirewallRule": { + "description": "A firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted to connect", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RedisFirewallRuleProperties", + "description": "redis cache firewall rule properties" + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ] + }, + "RedisFirewallRuleCreateParameters": { + "allOf": [ + { + "$ref": "#/definitions/RedisFirewallRule" + } + ], + "description": "Parameters required for creating a firewall rule on redis cache. (Note, you can just use the FirewallRule type instead now.)" + }, + "RedisFirewallRuleProperties": { + "description": "Specifies a range of IP addresses permitted to connect to the cache", + "properties": { + "startIP": { + "type": "string", + "description": "lowest IP address included in the range" + }, + "endIP": { + "type": "string", + "description": "highest IP address included in the range" + } + }, + "required": [ + "startIP", + "endIP" + ] + }, + "RedisFirewallRuleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RedisFirewallRule" + }, + "description": "Results of the list firewall rules operation." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link for next page of results." + } + }, + "description": "The response of list firewall rules Redis operation." + }, + "RedisResource": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RedisProperties", + "description": "Redis cache properties." + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of availability zones denoting where the resource needs to come from." + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The identity of the resource." + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ], + "description": "A single Redis item in List or Get Operation." + }, + "RedisInstanceDetails": { + "properties": { + "sslPort": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Redis instance SSL port." + }, + "nonSslPort": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "If enableNonSslPort is true, provides Redis instance Non-SSL port." + }, + "zone": { + "readOnly": true, + "type": "string", + "description": "If the Cache uses availability zones, specifies availability zone where this instance is located." + }, + "shardId": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "If clustering is enabled, the Shard ID of Redis Instance" + }, + "isMaster": { + "readOnly": true, + "type": "boolean", + "description": "Specifies whether the instance is a primary node." + }, + "isPrimary": { + "readOnly": true, + "type": "boolean", + "description": "Specifies whether the instance is a primary node." + } + }, + "description": "Details of single instance of redis." + }, + "RedisListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RedisResource" + }, + "description": "List of Redis cache instances." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link for next page of results." + } + }, + "description": "The response of list Redis operation." + }, + "RedisRegenerateKeyParameters": { + "properties": { + "keyType": { + "type": "string", + "description": "The Redis access key to regenerate.", + "enum": [ + "Primary", + "Secondary" + ], + "x-ms-enum": { + "name": "RedisKeyType", + "modelAsString": false + } + } + }, + "required": [ + "keyType" + ], + "description": "Specifies which Redis access keys to reset." + }, + "RedisRebootParameters": { + "properties": { + "rebootType": { + "type": "string", + "description": "Which Redis node(s) to reboot. Depending on this value data loss is possible.", + "enum": [ + "PrimaryNode", + "SecondaryNode", + "AllNodes" + ], + "x-ms-enum": { + "name": "RebootType", + "modelAsString": true + } + }, + "shardId": { + "type": "integer", + "format": "int32", + "description": "If clustering is enabled, the ID of the shard to be rebooted." + }, + "ports": { + "type": "array", + "items": { + "type": "integer" + }, + "description": "A list of redis instances to reboot, specified by per-instance SSL ports or non-SSL ports." + } + }, + "description": "Specifies which Redis node(s) to reboot." + }, + "ExportRDBParameters": { + "properties": { + "format": { + "type": "string", + "description": "File format." + }, + "prefix": { + "type": "string", + "description": "Prefix to use for exported files." + }, + "container": { + "type": "string", + "description": "Container name to export to." + }, + "preferred-data-archive-auth-method": { + "type": "string", + "description": "Preferred auth method to communicate to storage account used for data archive, specify SAS or ManagedIdentity, default value is SAS" + } + }, + "required": [ + "container", + "prefix" + ], + "description": "Parameters for Redis export operation." + }, + "ImportRDBParameters": { + "properties": { + "format": { + "type": "string", + "description": "File format." + }, + "files": { + "type": "array", + "description": "files to import.", + "items": { + "type": "string" + } + }, + "preferred-data-archive-auth-method": { + "type": "string", + "description": "Preferred auth method to communicate to storage account used for data archive, specify SAS or ManagedIdentity, default value is SAS" + } + }, + "required": [ + "files" + ], + "description": "Parameters for Redis import operation." + }, + "ScheduleEntry": { + "properties": { + "dayOfWeek": { + "type": "string", + "description": "Day of the week when a cache can be patched.", + "enum": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday", + "Everyday", + "Weekend" + ], + "x-ms-enum": { + "name": "DayOfWeek", + "modelAsString": false + } + }, + "startHourUtc": { + "type": "integer", + "format": "int32", + "description": "Start hour after which cache patching can start." + }, + "maintenanceWindow": { + "type": "string", + "format": "duration", + "description": "ISO8601 timespan specifying how much time cache patching can take. " + } + }, + "required": [ + "dayOfWeek", + "startHourUtc" + ], + "description": "Patch schedule entry for a Premium Redis Cache." + }, + "ScheduleEntries": { + "properties": { + "scheduleEntries": { + "x-ms-client-name": "ScheduleEntries", + "type": "array", + "items": { + "$ref": "#/definitions/ScheduleEntry" + }, + "x-ms-identifiers": [], + "description": "List of patch schedules for a Redis cache." + } + }, + "required": [ + "scheduleEntries" + ], + "description": "List of patch schedules for a Redis cache." + }, + "RedisPatchSchedule": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ScheduleEntries", + "description": "List of patch schedules for a Redis cache." + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives", + "readOnly": true + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ], + "description": "Response to put/get patch schedules for Redis cache." + }, + "RedisPatchScheduleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RedisPatchSchedule" + }, + "description": "Results of the list patch schedules operation." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link for next page of results." + } + }, + "description": "The response of list patch schedules Redis operation." + }, + "RedisForceRebootResponse": { + "properties": { + "message": { + "readOnly": true, + "type": "string", + "description": "Status message" + } + }, + "description": "Response to force reboot for Redis cache." + }, + "RedisLinkedServer": { + "description": "Linked server Id", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Linked server Id." + } + } + }, + "RedisLinkedServerWithProperties": { + "description": "Response to put/get linked server (with properties) for Redis cache.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RedisLinkedServerProperties", + "description": "Properties of the linked server." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ] + }, + "RedisLinkedServerProperties": { + "description": "Properties of a linked server to be returned in get/put response", + "properties": { + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "Terminal state of the link between primary and secondary redis cache." + } + }, + "allOf": [ + { + "$ref": "#/definitions/RedisLinkedServerCreateProperties" + } + ] + }, + "RedisLinkedServerWithPropertiesList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RedisLinkedServerWithProperties" + }, + "description": "List of linked servers (with properties) of a Redis cache." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link for next set." + } + }, + "description": "List of linked servers (with properties) of a Redis cache." + }, + "RedisLinkedServerCreateProperties": { + "description": "Create properties for a linked server", + "properties": { + "linkedRedisCacheId": { + "type": "string", + "description": "Fully qualified resourceId of the linked redis cache." + }, + "linkedRedisCacheLocation": { + "type": "string", + "description": "Location of the linked redis cache.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "serverRole": { + "type": "string", + "description": "Role of the linked server.", + "enum": [ + "Primary", + "Secondary" + ], + "x-ms-enum": { + "name": "ReplicationRole", + "modelAsString": false + } + }, + "geoReplicatedPrimaryHostName": { + "type": "string", + "readOnly": true, + "description": "The unchanging DNS name which will always point to current geo-primary cache among the linked redis caches for seamless Geo Failover experience." + }, + "primaryHostName": { + "type": "string", + "readOnly": true, + "description": "The changing DNS name that resolves to the current geo-primary cache among the linked redis caches before or after the Geo Failover." + } + }, + "required": [ + "linkedRedisCacheId", + "linkedRedisCacheLocation", + "serverRole" + ] + }, + "RedisLinkedServerCreateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RedisLinkedServerCreateProperties", + "description": "Properties required to create a linked server." + } + }, + "required": [ + "properties" + ], + "description": "Parameter required for creating a linked server to redis cache." + }, + "Operation": { + "description": "REST API operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "The object that describes the operation.", + "properties": { + "provider": { + "description": "Friendly name of the resource provider", + "type": "string" + }, + "operation": { + "description": "Operation type: read, write, delete, listKeys/action, etc.", + "type": "string" + }, + "resource": { + "description": "Resource type on which the operation is performed.", + "type": "string" + }, + "description": { + "description": "Friendly name of the operation", + "type": "string" + } + } + } + } + }, + "OperationListResult": { + "description": "Result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "List of operations supported by the resource provider." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "CheckNameAvailabilityParameters": { + "description": "Parameters body to pass for resource name availability check.", + "properties": { + "name": { + "type": "string", + "description": "Resource name." + }, + "type": { + "type": "string", + "description": "Resource type. The only legal value of this property for checking redis cache name availability is 'Microsoft.Cache/redis'." + } + }, + "required": [ + "name", + "type" + ] + }, + "UpgradeNotification": { + "properties": { + "name": { + "readOnly": true, + "type": "string", + "description": "Name of upgrade notification." + }, + "timestamp": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "Timestamp when upgrade notification occurred." + }, + "upsellNotification": { + "readOnly": true, + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Details about this upgrade notification" + } + }, + "description": "Properties of upgrade notification." + }, + "NotificationListResponse": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/UpgradeNotification" + }, + "x-ms-identifiers": [ + "name", + "timestamp" + ], + "description": "List of all notifications." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link for next set of notifications." + } + }, + "description": "The response of listUpgradeNotifications." + }, + "OperationStatus": { + "type": "object", + "description": "Asynchronous operation status", + "properties": { + "properties": { + "description": "Additional properties from RP, only when operation is successful", + "type": "object", + "additionalProperties": {} + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationStatusResult" + } + ] + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + } + } +} From b5e7f37d755590774ea04e7054112d621fbee00b Mon Sep 17 00:00:00 2001 From: Kanchan Joshi <30471843+koderjoker@users.noreply.github.com> Date: Thu, 27 Apr 2023 12:09:32 +0530 Subject: [PATCH 02/12] Updates readme --- specification/redis/resource-manager/readme.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/specification/redis/resource-manager/readme.md b/specification/redis/resource-manager/readme.md index c889f58b752b..442dbd0b7a16 100644 --- a/specification/redis/resource-manager/readme.md +++ b/specification/redis/resource-manager/readme.md @@ -26,18 +26,27 @@ These are the global settings for the Redis API. ``` yaml openapi-type: arm -tag: package-2022-06 +tag: package-preview-2023-05 ``` +### Tag: package-preview-2023-05 + +These settings apply only when `--tag=package-preview-2023-05` is specified on the command line. + +```yaml $(tag) == 'package-preview-2023-05' +input-file: + - Microsoft.Cache/preview/2023-05-01-preview/redis.json +``` ### Tag: package-2022-06 These settings apply only when `--tag=package-2022-06` is specified on the command line. -```yaml $(tag) == 'package-2022-06' +``` yaml $(tag) == 'package-2022-06' input-file: - Microsoft.Cache/stable/2022-06-01/redis.json ``` + ### Tag: package-2022-05 These settings apply only when `--tag=package-2022-05` is specified on the command line. From c7387e859decf70a9d822e1ec4d7e7bd535f8d18 Mon Sep 17 00:00:00 2001 From: Kanchan Joshi <30471843+koderjoker@users.noreply.github.com> Date: Thu, 27 Apr 2023 12:09:36 +0530 Subject: [PATCH 03/12] Updates API version in new specs and examples --- .../examples/RedisCacheAsyncOperationStatus.json | 2 +- .../examples/RedisCacheCheckNameAvailability.json | 2 +- .../preview/2023-05-01-preview/examples/RedisCacheCreate.json | 2 +- .../examples/RedisCacheCreateDefaultVersion.json | 2 +- .../examples/RedisCacheCreateLatestVersion.json | 2 +- .../preview/2023-05-01-preview/examples/RedisCacheDelete.json | 2 +- .../examples/RedisCacheDeletePrivateEndpointConnection.json | 2 +- .../preview/2023-05-01-preview/examples/RedisCacheExport.json | 2 +- .../examples/RedisCacheFirewallRuleCreate.json | 2 +- .../examples/RedisCacheFirewallRuleDelete.json | 2 +- .../2023-05-01-preview/examples/RedisCacheFirewallRuleGet.json | 2 +- .../examples/RedisCacheFirewallRulesList.json | 2 +- .../2023-05-01-preview/examples/RedisCacheForceReboot.json | 2 +- .../preview/2023-05-01-preview/examples/RedisCacheGet.json | 2 +- .../examples/RedisCacheGetPrivateEndpointConnection.json | 2 +- .../preview/2023-05-01-preview/examples/RedisCacheImport.json | 2 +- .../examples/RedisCacheLinkedServer_Create.json | 2 +- .../examples/RedisCacheLinkedServer_Delete.json | 2 +- .../2023-05-01-preview/examples/RedisCacheLinkedServer_Get.json | 2 +- .../examples/RedisCacheLinkedServer_List.json | 2 +- .../preview/2023-05-01-preview/examples/RedisCacheList.json | 2 +- .../examples/RedisCacheListByResourceGroup.json | 2 +- .../preview/2023-05-01-preview/examples/RedisCacheListKeys.json | 2 +- .../examples/RedisCacheListPrivateEndpointConnections.json | 2 +- .../examples/RedisCacheListPrivateLinkResources.json | 2 +- .../examples/RedisCacheListUpgradeNotifications.json | 2 +- .../2023-05-01-preview/examples/RedisCacheOperations.json | 2 +- .../examples/RedisCachePatchSchedulesCreateOrUpdate.json | 2 +- .../examples/RedisCachePatchSchedulesDelete.json | 2 +- .../examples/RedisCachePatchSchedulesGet.json | 2 +- .../examples/RedisCachePatchSchedulesList.json | 2 +- .../examples/RedisCachePutPrivateEndpointConnection.json | 2 +- .../2023-05-01-preview/examples/RedisCacheRegenerateKey.json | 2 +- .../preview/2023-05-01-preview/examples/RedisCacheUpdate.json | 2 +- .../Microsoft.Cache/preview/2023-05-01-preview/redis.json | 2 +- 35 files changed, 35 insertions(+), 35 deletions(-) diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAsyncOperationStatus.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAsyncOperationStatus.json index 69522e3e54a0..5802eaa75495 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAsyncOperationStatus.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAsyncOperationStatus.json @@ -1,7 +1,7 @@ { "parameters": { "location": "East US", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "operationId": "c7ba2bf5-5939-4d79-b037-2964ccf097da" }, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCheckNameAvailability.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCheckNameAvailability.json index 77b6b987d38f..91945dcb963b 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCheckNameAvailability.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCheckNameAvailability.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "type": "Microsoft.Cache/Redis", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreate.json index 720c3f51a9f2..264e79c5407c 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreate.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "location": "West US", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateDefaultVersion.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateDefaultVersion.json index 08ab3de28940..ef97b6eaf4c2 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateDefaultVersion.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateDefaultVersion.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "location": "West US", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateLatestVersion.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateLatestVersion.json index 33cf251628ee..9f78fefeb513 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateLatestVersion.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateLatestVersion.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "location": "West US", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDelete.json index 9463743c5c7a..6f8424423b28 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDelete.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDelete.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDeletePrivateEndpointConnection.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDeletePrivateEndpointConnection.json index edc4ea2c2cb1..a4bb6206fa3d 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDeletePrivateEndpointConnection.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDeletePrivateEndpointConnection.json @@ -4,7 +4,7 @@ "resourceGroupName": "rgtest01", "cacheName": "cachetest01", "privateEndpointConnectionName": "pectest01", - "api-version": "2022-06-01" + "api-version": "2023-05-01-preview" }, "responses": { "200": {}, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheExport.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheExport.json index a0f0fd4bcb44..aa8b96f814e1 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheExport.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheExport.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "format": "RDB", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleCreate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleCreate.json index 5b254f58be31..08faa6d074a7 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleCreate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleCreate.json @@ -3,7 +3,7 @@ "ruleName": "rule1", "cacheName": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "properties": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleDelete.json index dec244d399d4..8f32862665d5 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleDelete.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleDelete.json @@ -3,7 +3,7 @@ "ruleName": "rule1", "cacheName": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleGet.json index 5492a6bd7997..6c0ebe1af5f3 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleGet.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleGet.json @@ -3,7 +3,7 @@ "ruleName": "rule1", "cacheName": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRulesList.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRulesList.json index 3fff6868c5cc..656f1614730b 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRulesList.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRulesList.json @@ -2,7 +2,7 @@ "parameters": { "cacheName": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheForceReboot.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheForceReboot.json index 8558192bb4ae..1075b5b011b5 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheForceReboot.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheForceReboot.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "shardId": 0, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGet.json index f0f2da4276cd..f66ecce7cc68 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGet.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGet.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGetPrivateEndpointConnection.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGetPrivateEndpointConnection.json index 9c2ac5de5568..afc55b9d5b0f 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGetPrivateEndpointConnection.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGetPrivateEndpointConnection.json @@ -4,7 +4,7 @@ "resourceGroupName": "rgtest01", "cacheName": "cachetest01", "privateEndpointConnectionName": "pectest01", - "api-version": "2022-06-01" + "api-version": "2023-05-01-preview" }, "responses": { "200": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheImport.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheImport.json index 1bf4d039410c..474dfbfba9db 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheImport.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheImport.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "format": "RDB", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Create.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Create.json index 15369a756c14..91a8e206e7e7 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Create.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Create.json @@ -3,7 +3,7 @@ "name": "cache1", "resourceGroupName": "rg1", "linkedServerName": "cache2", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "properties": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Delete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Delete.json index 40eafe0062b1..a19f0cd38ca5 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Delete.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Delete.json @@ -3,7 +3,7 @@ "name": "cache1", "resourceGroupName": "rg1", "linkedServerName": "cache2", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Get.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Get.json index 7a40426d614b..4aa844eaaebd 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Get.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Get.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "linkedServerName": "cache2" }, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_List.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_List.json index d4c926af8173..dff198a4de07 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_List.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_List.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheList.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheList.json index 912123b7b14b..c747cc04ab00 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheList.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListByResourceGroup.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListByResourceGroup.json index a6d90522bb6b..ef9ae9f6bd55 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListByResourceGroup.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListByResourceGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "resourceGroupName": "rg1", "subscriptionId": "subid" }, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListKeys.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListKeys.json index cbddbadc600e..4e1ea4693f88 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListKeys.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListKeys.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateEndpointConnections.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateEndpointConnections.json index dae66eeec96e..7b69c1d5a559 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateEndpointConnections.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateEndpointConnections.json @@ -4,7 +4,7 @@ "resourceGroupName": "rgtest01", "cacheName": "cachetest01", "privateEndpointConnectionName": "pectest01", - "api-version": "2022-06-01" + "api-version": "2023-05-01-preview" }, "responses": { "200": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateLinkResources.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateLinkResources.json index fe9b4666e0b7..cf915a251b83 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateLinkResources.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateLinkResources.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "rgtest01", "cacheName": "cacheTest01", - "api-version": "2022-06-01" + "api-version": "2023-05-01-preview" }, "responses": { "200": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListUpgradeNotifications.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListUpgradeNotifications.json index 05d9d74d958e..90a530daed0c 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListUpgradeNotifications.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListUpgradeNotifications.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "history": "5000" }, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheOperations.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheOperations.json index 11dc2895c4a5..d0255cd65ad3 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheOperations.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheOperations.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-06-01" + "api-version": "2023-05-01-preview" }, "responses": { "200": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesCreateOrUpdate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesCreateOrUpdate.json index c0dfb1b97b65..8b56172dbfc7 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesCreateOrUpdate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesCreateOrUpdate.json @@ -3,7 +3,7 @@ "name": "cache1", "resourceGroupName": "rg1", "default": "default", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "properties": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesDelete.json index 49b71439c4c7..a1d3daeb1cf3 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesDelete.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesDelete.json @@ -3,7 +3,7 @@ "name": "cache1", "resourceGroupName": "rg1", "default": "default", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesGet.json index 9976f36169b7..4e365efa649f 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesGet.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesGet.json @@ -3,7 +3,7 @@ "name": "cache1", "resourceGroupName": "rg1", "default": "default", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesList.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesList.json index 7f6a49f4ea2f..135de803cf17 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesList.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesList.json @@ -2,7 +2,7 @@ "parameters": { "cacheName": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePutPrivateEndpointConnection.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePutPrivateEndpointConnection.json index 03156915e4be..4bc31889ab56 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePutPrivateEndpointConnection.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePutPrivateEndpointConnection.json @@ -4,7 +4,7 @@ "resourceGroupName": "rgtest01", "cacheName": "cachetest01", "privateEndpointConnectionName": "pectest01", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "properties": { "properties": { "privateLinkServiceConnectionState": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheRegenerateKey.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheRegenerateKey.json index 1dda98853ff5..d79674eb27c3 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheRegenerateKey.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheRegenerateKey.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "keyType": "Primary" diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheUpdate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheUpdate.json index 47aee6b84d83..dd4ecdd974a9 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheUpdate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheUpdate.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2022-06-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "properties": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json index 94e5eeb9a209..06ac7dd44f68 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json @@ -3,7 +3,7 @@ "info": { "title": "RedisManagementClient", "description": "REST API for Azure Redis Cache Service.", - "version": "2022-06-01" + "version": "2023-05-01-preview" }, "host": "management.azure.com", "schemes": [ From 85ea26b8ecfccdc76016260d7e97f37cb43cf459 Mon Sep 17 00:00:00 2001 From: Kanchan Joshi Date: Thu, 27 Apr 2023 12:29:54 +0530 Subject: [PATCH 04/12] Take base changes from approved release branch 2023-05-01 preview --- ...cheAccessPolicyAssignmentCreateUpdate.json | 57 + ...edisCacheAccessPolicyAssignmentDelete.json | 32 + .../RedisCacheAccessPolicyAssignmentGet.json | 27 + .../RedisCacheAccessPolicyAssignmentList.json | 44 + .../RedisCacheAccessPolicyCreateUpdate.json | 40 + .../RedisCacheAccessPolicyDelete.json | 28 + .../examples/RedisCacheAccessPolicyGet.json | 23 + .../examples/RedisCacheAccessPolicyList.json | 36 + .../RedisCacheAsyncOperationStatus.json | 2 +- .../RedisCacheCheckNameAvailability.json | 2 +- .../examples/RedisCacheCreate.json | 2 +- .../RedisCacheCreateDefaultVersion.json | 2 +- .../RedisCacheCreateLatestVersion.json | 2 +- .../examples/RedisCacheDelete.json | 2 +- ...sCacheDeletePrivateEndpointConnection.json | 2 +- .../examples/RedisCacheExport.json | 2 +- .../RedisCacheFirewallRuleCreate.json | 2 +- .../RedisCacheFirewallRuleDelete.json | 2 +- .../examples/RedisCacheFirewallRuleGet.json | 2 +- .../examples/RedisCacheFirewallRulesList.json | 2 +- .../examples/RedisCacheForceReboot.json | 2 +- .../examples/RedisCacheGet.json | 2 +- ...edisCacheGetPrivateEndpointConnection.json | 2 +- .../examples/RedisCacheImport.json | 2 +- .../RedisCacheLinkedServer_Create.json | 2 +- .../RedisCacheLinkedServer_Delete.json | 2 +- .../examples/RedisCacheLinkedServer_Get.json | 2 +- .../examples/RedisCacheLinkedServer_List.json | 2 +- .../examples/RedisCacheList.json | 2 +- .../RedisCacheListByResourceGroup.json | 2 +- .../examples/RedisCacheListKeys.json | 2 +- ...isCacheListPrivateEndpointConnections.json | 2 +- .../RedisCacheListPrivateLinkResources.json | 2 +- .../RedisCacheListUpgradeNotifications.json | 2 +- .../examples/RedisCacheOperations.json | 2 +- ...edisCachePatchSchedulesCreateOrUpdate.json | 2 +- .../RedisCachePatchSchedulesDelete.json | 2 +- .../examples/RedisCachePatchSchedulesGet.json | 2 +- .../RedisCachePatchSchedulesList.json | 2 +- ...edisCachePutPrivateEndpointConnection.json | 2 +- .../examples/RedisCacheRegenerateKey.json | 2 +- .../examples/RedisCacheUpdate.json | 2 +- .../preview/2023-05-01-preview/redis.json | 1113 ++++++++++++----- 43 files changed, 1110 insertions(+), 358 deletions(-) create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentCreateUpdate.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentDelete.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentGet.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentList.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyCreateUpdate.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyDelete.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyGet.json create mode 100644 specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyList.json diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentCreateUpdate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentCreateUpdate.json new file mode 100644 index 000000000000..73b67ac56c77 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentCreateUpdate.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "cacheName": "cache1", + "accessPolicyName": "accessPolicy1", + "api-version": "2023-05-01", + "parameters": { + "properties": { + "assignments": [ + { + "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", + "objectIdAlias": "TestAADAppRedis" + }, + { + "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", + "objectIdAlias": "TestAADAppRedis2123" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicy1", + "name": "cache1/accessPolicy1", + "type": "Microsoft.Cache/Redis/accessPolicyAssignments", + "properties": { + "provisioningState": "Succeeded", + "assignments": [ + { + "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", + "objectIdAlias": "TestAADAppRedis" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicy1", + "name": "cache1/accessPolicy1", + "type": "Microsoft.Cache/Redis/accessPolicyAssignments", + "properties": { + "provisioningState": "Succeeded", + "assignments": [ + { + "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", + "objectIdAlias": "TestAADAppRedis" + } + ] + } + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentDelete.json new file mode 100644 index 000000000000..8c8dc33ac3eb --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentDelete.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "cacheName": "cache1", + "accessPolicyName": "accessPolicy1", + "api-version": "2023-05-01" + }, + "responses": { + "200": {}, + "204": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..." + }, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicy1", + "name": "cache1/accessPolicy1", + "type": "Microsoft.Cache/Redis/accessPolicyAssignments", + "properties": { + "provisioningState": "Deleting", + "assignments": [ + { + "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", + "objectIdAlias": "TestAADAppRedis" + } + ] + } + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentGet.json new file mode 100644 index 000000000000..7213b297fbb7 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentGet.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "cacheName": "cache1", + "accessPolicyName": "accessPolicy1", + "api-version": "2023-05-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicy1", + "name": "cache1/accessPolicy1", + "type": "Microsoft.Cache/Redis/accessPolicyAssignments", + "properties": { + "provisioningState": "Succeeded", + "assignments": [ + { + "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", + "objectIdAlias": "TestAADAppRedis" + } + ] + } + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentList.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentList.json new file mode 100644 index 000000000000..88c852e09ebd --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentList.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "cacheName": "cache1", + "api-version": "2023-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicy1", + "name": "cache1/accessPolicy1", + "type": "Microsoft.Cache/Redis/accessPolicyAssignments", + "properties": { + "provisioningState": "Succeeded", + "assignments": [ + { + "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", + "objectIdAlias": "TestAADAppRedis1" + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicy2", + "name": "cache1/accessPolicy2", + "type": "Microsoft.Cache/Redis/accessPolicyAssignments", + "properties": { + "provisioningState": "Succeeded", + "assignments": [ + { + "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b1", + "objectIdAlias": "TestAADAppRedis2" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyCreateUpdate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyCreateUpdate.json new file mode 100644 index 000000000000..ff53b6f748c3 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyCreateUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "cacheName": "cache1", + "accessPolicyName": "accessPolicy1", + "api-version": "2023-05-01", + "parameters": { + "properties": { + "permissions": "+get +hget" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/accessPolicies/accessPolicy1", + "name": "cache1/accessPolicy1", + "type": "Microsoft.Cache/Redis/accessPolicies", + "properties": { + "provisioningState": "Succeeded", + "permissions": "+get +hget", + "type": "Custom" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/accessPolicies/accessPolicy1", + "name": "cache1/accessPolicy1", + "type": "Microsoft.Cache/Redis/accessPolicies", + "properties": { + "provisioningState": "Succeeded", + "permissions": "+get +hget", + "type": "Custom" + } + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyDelete.json new file mode 100644 index 000000000000..5a1a9c8496d9 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyDelete.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "cacheName": "cache1", + "accessPolicyName": "accessPolicy1", + "api-version": "2023-05-01" + }, + "responses": { + "200": {}, + "204": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..." + }, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/accessPolicies/accessPolicy1", + "name": "cache1/accessPolicy1", + "type": "Microsoft.Cache/Redis/accessPolicies", + "properties": { + "provisioningState": "Deleting", + "permissions": "+get +hget", + "type": "Custom" + } + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyGet.json new file mode 100644 index 000000000000..894c938d2b6c --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "cacheName": "cache1", + "accessPolicyName": "accessPolicy1", + "api-version": "2023-05-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/accessPolicies/accessPolicy1", + "name": "cache1/accessPolicy1", + "type": "Microsoft.Cache/Redis/accessPolicies", + "properties": { + "provisioningState": "Succeeded", + "permissions": "+get +hget", + "type": "Custom" + } + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyList.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyList.json new file mode 100644 index 000000000000..7e56165d7b16 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyList.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "cacheName": "cache1", + "api-version": "2023-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/accessPolicies/accessPolicyBuiltIn", + "name": "cache1/accessPolicyBuiltIn", + "type": "Microsoft.Cache/Redis/accessPolicies", + "properties": { + "provisioningState": "Succeeded", + "permissions": "+get +hget", + "type": "BuiltIn" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/accessPolicies/accessPolicy1", + "name": "cache1/accessPolicy1", + "type": "Microsoft.Cache/Redis/accessPolicies", + "properties": { + "provisioningState": "Succeeded", + "permissions": "+get +hget", + "type": "Custom" + } + } + ] + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAsyncOperationStatus.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAsyncOperationStatus.json index 5802eaa75495..907b181c5e63 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAsyncOperationStatus.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAsyncOperationStatus.json @@ -1,7 +1,7 @@ { "parameters": { "location": "East US", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid", "operationId": "c7ba2bf5-5939-4d79-b037-2964ccf097da" }, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCheckNameAvailability.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCheckNameAvailability.json index 91945dcb963b..9a7021a0e59f 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCheckNameAvailability.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCheckNameAvailability.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid", "parameters": { "type": "Microsoft.Cache/Redis", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreate.json index 264e79c5407c..891bdebb0964 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreate.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid", "parameters": { "location": "West US", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateDefaultVersion.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateDefaultVersion.json index ef97b6eaf4c2..a41cddda1805 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateDefaultVersion.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateDefaultVersion.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid", "parameters": { "location": "West US", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateLatestVersion.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateLatestVersion.json index 9f78fefeb513..a0306827f232 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateLatestVersion.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateLatestVersion.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid", "parameters": { "location": "West US", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDelete.json index 6f8424423b28..3cc12d6e0d0c 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDelete.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDelete.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDeletePrivateEndpointConnection.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDeletePrivateEndpointConnection.json index a4bb6206fa3d..e5044d20ac24 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDeletePrivateEndpointConnection.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDeletePrivateEndpointConnection.json @@ -4,7 +4,7 @@ "resourceGroupName": "rgtest01", "cacheName": "cachetest01", "privateEndpointConnectionName": "pectest01", - "api-version": "2023-05-01-preview" + "api-version": "2023-05-01" }, "responses": { "200": {}, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheExport.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheExport.json index aa8b96f814e1..2bcfe44af9aa 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheExport.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheExport.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid", "parameters": { "format": "RDB", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleCreate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleCreate.json index 08faa6d074a7..9f1391000c7d 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleCreate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleCreate.json @@ -3,7 +3,7 @@ "ruleName": "rule1", "cacheName": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid", "parameters": { "properties": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleDelete.json index 8f32862665d5..8a0c1f29711c 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleDelete.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleDelete.json @@ -3,7 +3,7 @@ "ruleName": "rule1", "cacheName": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleGet.json index 6c0ebe1af5f3..684002852770 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleGet.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleGet.json @@ -3,7 +3,7 @@ "ruleName": "rule1", "cacheName": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRulesList.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRulesList.json index 656f1614730b..3c0ed3312bdb 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRulesList.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRulesList.json @@ -2,7 +2,7 @@ "parameters": { "cacheName": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheForceReboot.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheForceReboot.json index 1075b5b011b5..0983d1442cb1 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheForceReboot.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheForceReboot.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid", "parameters": { "shardId": 0, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGet.json index f66ecce7cc68..2f0876e33e8c 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGet.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGet.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGetPrivateEndpointConnection.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGetPrivateEndpointConnection.json index afc55b9d5b0f..1dc274648f69 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGetPrivateEndpointConnection.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGetPrivateEndpointConnection.json @@ -4,7 +4,7 @@ "resourceGroupName": "rgtest01", "cacheName": "cachetest01", "privateEndpointConnectionName": "pectest01", - "api-version": "2023-05-01-preview" + "api-version": "2023-05-01" }, "responses": { "200": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheImport.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheImport.json index 474dfbfba9db..5c1e9c2c4952 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheImport.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheImport.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid", "parameters": { "format": "RDB", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Create.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Create.json index 91a8e206e7e7..d46a7b74d0f4 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Create.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Create.json @@ -3,7 +3,7 @@ "name": "cache1", "resourceGroupName": "rg1", "linkedServerName": "cache2", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid", "parameters": { "properties": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Delete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Delete.json index a19f0cd38ca5..ed504aee4136 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Delete.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Delete.json @@ -3,7 +3,7 @@ "name": "cache1", "resourceGroupName": "rg1", "linkedServerName": "cache2", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Get.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Get.json index 4aa844eaaebd..a6ba18ac7847 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Get.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Get.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid", "linkedServerName": "cache2" }, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_List.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_List.json index dff198a4de07..254a76397036 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_List.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_List.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheList.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheList.json index c747cc04ab00..d2188180d12f 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheList.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListByResourceGroup.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListByResourceGroup.json index ef9ae9f6bd55..bc0acc2ac800 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListByResourceGroup.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListByResourceGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "resourceGroupName": "rg1", "subscriptionId": "subid" }, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListKeys.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListKeys.json index 4e1ea4693f88..ea291ce98b1c 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListKeys.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListKeys.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateEndpointConnections.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateEndpointConnections.json index 7b69c1d5a559..fa4794a263e8 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateEndpointConnections.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateEndpointConnections.json @@ -4,7 +4,7 @@ "resourceGroupName": "rgtest01", "cacheName": "cachetest01", "privateEndpointConnectionName": "pectest01", - "api-version": "2023-05-01-preview" + "api-version": "2023-05-01" }, "responses": { "200": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateLinkResources.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateLinkResources.json index cf915a251b83..a597e1d2e92a 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateLinkResources.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateLinkResources.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "rgtest01", "cacheName": "cacheTest01", - "api-version": "2023-05-01-preview" + "api-version": "2023-05-01" }, "responses": { "200": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListUpgradeNotifications.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListUpgradeNotifications.json index 90a530daed0c..a93738c8817b 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListUpgradeNotifications.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListUpgradeNotifications.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid", "history": "5000" }, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheOperations.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheOperations.json index d0255cd65ad3..95f36fbf3d27 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheOperations.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheOperations.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-05-01-preview" + "api-version": "2023-05-01" }, "responses": { "200": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesCreateOrUpdate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesCreateOrUpdate.json index 8b56172dbfc7..367812d66d73 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesCreateOrUpdate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesCreateOrUpdate.json @@ -3,7 +3,7 @@ "name": "cache1", "resourceGroupName": "rg1", "default": "default", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid", "parameters": { "properties": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesDelete.json index a1d3daeb1cf3..398aaf7ab2a3 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesDelete.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesDelete.json @@ -3,7 +3,7 @@ "name": "cache1", "resourceGroupName": "rg1", "default": "default", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesGet.json index 4e365efa649f..9f73e6cad9e7 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesGet.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesGet.json @@ -3,7 +3,7 @@ "name": "cache1", "resourceGroupName": "rg1", "default": "default", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesList.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesList.json index 135de803cf17..060fc4d0e5bb 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesList.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesList.json @@ -2,7 +2,7 @@ "parameters": { "cacheName": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePutPrivateEndpointConnection.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePutPrivateEndpointConnection.json index 4bc31889ab56..76d56a82e815 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePutPrivateEndpointConnection.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePutPrivateEndpointConnection.json @@ -4,7 +4,7 @@ "resourceGroupName": "rgtest01", "cacheName": "cachetest01", "privateEndpointConnectionName": "pectest01", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "properties": { "properties": { "privateLinkServiceConnectionState": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheRegenerateKey.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheRegenerateKey.json index d79674eb27c3..723e7c0cadea 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheRegenerateKey.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheRegenerateKey.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid", "parameters": { "keyType": "Primary" diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheUpdate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheUpdate.json index dd4ecdd974a9..b1cb0bc15428 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheUpdate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheUpdate.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01-preview", + "api-version": "2023-05-01", "subscriptionId": "subid", "parameters": { "properties": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json index 06ac7dd44f68..e9788e8fb41b 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json @@ -3,7 +3,7 @@ "info": { "title": "RedisManagementClient", "description": "REST API for Azure Redis Cache Service.", - "version": "2023-05-01-preview" + "version": "2023-05-01" }, "host": "management.azure.com", "schemes": [ @@ -48,7 +48,7 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -93,10 +93,10 @@ "description": "Parameters supplied to the CheckNameAvailability Redis operation. The only supported resource type is 'Microsoft.Cache/redis'" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -126,11 +126,7 @@ "description": "Gets any upgrade notifications for a Redis cache.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -140,10 +136,10 @@ "description": "The name of the Redis cache." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { "name": "history", @@ -194,11 +190,7 @@ "x-ms-long-running-operation": true, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -217,10 +209,10 @@ "description": "Parameters supplied to the Create Redis operation." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -258,11 +250,7 @@ "x-ms-long-running-operation": true, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -281,10 +269,10 @@ "description": "Parameters supplied to the Update Redis operation." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -322,11 +310,7 @@ "x-ms-long-running-operation": true, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -336,10 +320,10 @@ "description": "The name of the Redis cache." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -373,11 +357,7 @@ "description": "Gets a Redis cache (resource description).", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -387,10 +367,10 @@ "description": "The name of the Redis cache." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -423,17 +403,13 @@ "description": "Lists all Redis caches in a resource group.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -469,10 +445,10 @@ "description": "Gets all Redis caches in the specified subscription.", "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -508,11 +484,7 @@ "description": "Retrieve a Redis cache's access keys. This operation requires write permission to the cache resource.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -522,10 +494,10 @@ "description": "The name of the Redis cache." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -558,11 +530,7 @@ "description": "Regenerate Redis cache's access keys. This operation requires write permission to the cache resource.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -581,10 +549,10 @@ "description": "Specifies which key to regenerate." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -617,11 +585,7 @@ "description": "Reboot specified Redis node(s). This operation requires write permission to the cache resource. There can be potential data loss.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -640,10 +604,10 @@ "description": "Specifies which Redis node(s) to reboot." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -677,11 +641,7 @@ "description": "Import data into Redis cache.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -700,10 +660,10 @@ "description": "Parameters for Redis import operation." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -740,11 +700,7 @@ "description": "Export data from the redis cache to blobs in a container.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -763,10 +719,10 @@ "description": "Parameters for Redis export operation." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -803,24 +759,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "cacheName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Redis cache." + "$ref": "#/parameters/CacheNameParameter" } ], "responses": { @@ -857,18 +805,10 @@ }, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "cacheName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Redis cache." + "$ref": "#/parameters/CacheNameParameter" }, { "name": "ruleName", @@ -887,10 +827,10 @@ "description": "Parameters supplied to the create or update redis firewall rule operation." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -928,18 +868,10 @@ }, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "cacheName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Redis cache." + "$ref": "#/parameters/CacheNameParameter" }, { "name": "ruleName", @@ -949,10 +881,10 @@ "description": "The name of the firewall rule." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -984,18 +916,10 @@ }, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "cacheName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Redis cache." + "$ref": "#/parameters/CacheNameParameter" }, { "name": "ruleName", @@ -1005,10 +929,10 @@ "description": "The name of the firewall rule." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1042,24 +966,16 @@ }, "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "cacheName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Redis cache." + "$ref": "#/parameters/CacheNameParameter" } ], "responses": { @@ -1096,11 +1012,7 @@ "description": "Create or replace the patching schedule for Redis cache.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -1133,10 +1045,10 @@ "description": "Parameters to set the patching schedule for Redis cache." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1174,11 +1086,7 @@ "description": "Deletes the patching schedule of a redis cache.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -1202,10 +1110,10 @@ } }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1237,11 +1145,7 @@ "description": "Gets the patching schedule of a redis cache.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -1265,10 +1169,10 @@ } }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1302,11 +1206,7 @@ "description": "Adds a linked server to the Redis cache (requires Premium SKU).", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -1332,21 +1232,21 @@ "description": "Parameters supplied to the Create Linked server operation." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { - "description": "The linked server was successfully added.", + "description": "The linked server was successfully updated.", "schema": { "$ref": "#/definitions/RedisLinkedServerWithProperties" } }, "201": { - "description": "The linked server was successfully added.", + "description": "The linked server was successfully created.", "schema": { "$ref": "#/definitions/RedisLinkedServerWithProperties" } @@ -1373,11 +1273,7 @@ "x-ms-long-running-operation": true, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -1394,10 +1290,10 @@ "description": "The name of the linked server that is being added to the Redis cache." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1405,6 +1301,11 @@ "description": "Linked server was successfully deleted." }, "202": { + "headers": { + "Location": { + "type": "string" + } + }, "description": "The linked server 'delete' operation was successfully enqueued; follow the Location header to poll for final outcome." }, "default": { @@ -1428,11 +1329,7 @@ "description": "Gets the detailed information about a linked server of a redis cache (requires Premium SKU).", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -1449,10 +1346,10 @@ "description": "The name of the linked server." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1485,11 +1382,7 @@ "description": "Gets the list of linked servers associated with this redis cache (requires Premium SKU).", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", @@ -1499,10 +1392,10 @@ "description": "The name of the redis cache." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1538,24 +1431,16 @@ }, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "cacheName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Redis cache." + "$ref": "#/parameters/CacheNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1591,27 +1476,19 @@ }, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "cacheName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Redis cache." + "$ref": "#/parameters/CacheNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/parameters/PrivateEndpointConnectionName" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1643,24 +1520,16 @@ "x-ms-long-running-operation": true, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "cacheName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Redis cache." + "$ref": "#/parameters/CacheNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/parameters/PrivateEndpointConnectionName" @@ -1709,24 +1578,16 @@ }, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "cacheName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Redis cache." + "$ref": "#/parameters/CacheNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/parameters/PrivateEndpointConnectionName" @@ -1762,24 +1623,16 @@ }, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "cacheName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Redis cache." + "$ref": "#/parameters/CacheNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1829,10 +1682,10 @@ "description": "The ID of asynchronous operation" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1850,69 +1703,521 @@ } } } - } - }, - "definitions": { - "Sku": { - "properties": { - "name": { - "type": "string", - "description": "The type of Redis cache to deploy. Valid values: (Basic, Standard, Premium)", - "enum": [ - "Basic", - "Standard", - "Premium" - ], - "x-ms-enum": { - "name": "SkuName", - "modelAsString": true + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicies/{accessPolicyName}": { + "put": { + "tags": [ + "Redis", + "AAD" + ], + "operationId": "AccessPolicy_CreateUpdate", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "RedisCacheAccessPolicyCreateUpdate": { + "$ref": "./examples/RedisCacheAccessPolicyCreateUpdate.json" } }, - "family": { - "type": "string", - "description": "The SKU family to use. Valid values: (C, P). (C = Basic/Standard, P = Premium).", - "enum": [ - "C", - "P" - ], - "x-ms-enum": { - "name": "SkuFamily", - "modelAsString": true + "description": "Adds an access policy to the redis cache", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/CacheNameParameter" + }, + { + "name": "accessPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the access policy that is being added to the Redis cache.", + "pattern": "^[a-zA-Z0-9]+$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RedisCacheAccessPolicy" + }, + "description": "Parameters supplied to the Create Update Access Policy operation." + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The existing access policy was successfully updated. Check provisioningState to see detailed status.", + "schema": { + "$ref": "#/definitions/RedisCacheAccessPolicy" + } + }, + "201": { + "description": "The new access policy was successfully created. Check provisioningState to see detailed status.", + "schema": { + "$ref": "#/definitions/RedisCacheAccessPolicy" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } - }, - "capacity": { - "type": "integer", - "format": "int32", - "description": "The size of the Redis cache to deploy. Valid values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium) family (1, 2, 3, 4)." } }, - "required": [ - "name", - "family", - "capacity" - ], - "description": "SKU parameters supplied to the create Redis operation." - }, - "RedisCommonProperties": { - "properties": { - "redisConfiguration": { - "type": "object", - "properties": { - "rdb-backup-enabled": { - "type": "string", - "description": "Specifies whether the rdb backup is enabled" - }, - "rdb-backup-frequency": { - "type": "string", - "description": "Specifies the frequency for creating rdb backup in minutes. Valid values: (15, 30, 60, 360, 720, 1440)" - }, - "rdb-backup-max-snapshot-count": { - "type": "string", - "description": "Specifies the maximum number of snapshots for rdb backup" - }, - "rdb-storage-connection-string": { - "type": "string", - "description": "The storage account connection string for storing rdb file" + "delete": { + "tags": [ + "Redis", + "AAD" + ], + "operationId": "AccessPolicy_Delete", + "x-ms-examples": { + "RedisCacheAccessPolicyDelete": { + "$ref": "./examples/RedisCacheAccessPolicyDelete.json" + } + }, + "description": "Deletes the access policy from a redis cache", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/CacheNameParameter" + }, + { + "name": "accessPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the access policy that is being deleted from the Redis cache.", + "pattern": "^[a-zA-Z0-9]+$" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the access policy" + }, + "204": { + "description": "Successfully deleted the access policy" + }, + "202": { + "description": "The access policy 'delete' operation was successfully enqueued; follow the Location header to poll for final outcome.", + "headers": { + "Location": { + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/RedisCacheAccessPolicy" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "Redis", + "AAD" + ], + "operationId": "AccessPolicy_Get", + "x-ms-examples": { + "RedisCacheAccessPolicyGet": { + "$ref": "./examples/RedisCacheAccessPolicyGet.json" + } + }, + "description": "Gets the detailed information about an access policy of a redis cache", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/CacheNameParameter" + }, + { + "name": "accessPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the access policy that is being deleted from the Redis cache.", + "pattern": "^[a-zA-Z0-9]+$" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Response of get access policy.", + "schema": { + "$ref": "#/definitions/RedisCacheAccessPolicy" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicies": { + "get": { + "tags": [ + "Redis", + "AAD" + ], + "operationId": "AccessPolicy_List", + "x-ms-examples": { + "RedisCacheAccessPolicyList": { + "$ref": "./examples/RedisCacheAccessPolicyList.json" + } + }, + "description": "Gets the list of access policies associated with this redis cache", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/CacheNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Response of list access policies.", + "schema": { + "$ref": "#/definitions/RedisCacheAccessPolicyList" + } + }, + "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/redis/{cacheName}/accessPolicyAssignments/{accessPolicyName}": { + "put": { + "tags": [ + "Redis", + "AAD" + ], + "operationId": "AccessPolicyAssignment_CreateUpdate", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "RedisCacheAccessPolicyAssignmentCreateUpdate": { + "$ref": "./examples/RedisCacheAccessPolicyAssignmentCreateUpdate.json" + } + }, + "description": "Adds the access policy assignment to the specified users", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/CacheNameParameter" + }, + { + "name": "accessPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the access policy to assign.", + "pattern": "^[a-zA-Z0-9]+$" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RedisCacheAccessPolicyAssignmentSet" + }, + "description": "Parameters supplied to the Create Update Access Policy Assignment operation." + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The existing access policy assignment was successfully updated. Check provisioningState to see detailed status.", + "schema": { + "$ref": "#/definitions/RedisCacheAccessPolicyAssignmentSet" + } + }, + "201": { + "description": "The new access policy assignment was successfully created. Check provisioningState to see detailed status.", + "schema": { + "$ref": "#/definitions/RedisCacheAccessPolicyAssignmentSet" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Redis", + "AAD" + ], + "operationId": "AccessPolicyAssignment_Delete", + "x-ms-examples": { + "RedisCacheAccessPolicyAssignmentDelete": { + "$ref": "./examples/RedisCacheAccessPolicyAssignmentDelete.json" + } + }, + "description": "Deletes the access policy assignment from a redis cache", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/CacheNameParameter" + }, + { + "name": "accessPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the access policy being unassigned.", + "pattern": "^[a-zA-Z0-9]+$" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the access policy assignment" + }, + "204": { + "description": "Successfully deleted the access policy assignment" + }, + "202": { + "description": "The access policy assignment 'delete' operation was successfully enqueued; follow the Location header to poll for final outcome.", + "headers": { + "Location": { + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/RedisCacheAccessPolicyAssignmentSet" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "Redis", + "AAD" + ], + "operationId": "AccessPolicyAssignment_Get", + "x-ms-examples": { + "RedisCacheAccessPolicyAssignmentGet": { + "$ref": "./examples/RedisCacheAccessPolicyAssignmentGet.json" + } + }, + "description": "Gets the list of assignments for an access policy of a redis cache", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/CacheNameParameter" + }, + { + "name": "accessPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the assigned access policy.", + "pattern": "^[a-zA-Z0-9]+$" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Response of get access policy assignments.", + "schema": { + "$ref": "#/definitions/RedisCacheAccessPolicyAssignmentSet" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicyAssignments": { + "get": { + "tags": [ + "Redis", + "AAD" + ], + "operationId": "AccessPolicyAssignment_List", + "x-ms-examples": { + "RedisCacheAccessPolicyAssignmentList": { + "$ref": "./examples/RedisCacheAccessPolicyAssignmentList.json" + } + }, + "description": "Gets the list of access policy assignments associated with this redis cache", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/CacheNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Response of list access policy assignments.", + "schema": { + "$ref": "#/definitions/RedisCacheAccessPolicyAssignmentList" + } + }, + "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" + } + } + } + }, + "definitions": { + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "The type of Redis cache to deploy. Valid values: (Basic, Standard, Premium)", + "enum": [ + "Basic", + "Standard", + "Premium" + ], + "x-ms-enum": { + "name": "SkuName", + "modelAsString": true + } + }, + "family": { + "type": "string", + "description": "The SKU family to use. Valid values: (C, P). (C = Basic/Standard, P = Premium).", + "enum": [ + "C", + "P" + ], + "x-ms-enum": { + "name": "SkuFamily", + "modelAsString": true + } + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The size of the Redis cache to deploy. Valid values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium) family (1, 2, 3, 4)." + } + }, + "required": [ + "name", + "family", + "capacity" + ], + "description": "SKU parameters supplied to the create Redis operation." + }, + "RedisCommonProperties": { + "properties": { + "redisConfiguration": { + "type": "object", + "properties": { + "rdb-backup-enabled": { + "type": "string", + "description": "Specifies whether the rdb backup is enabled" + }, + "rdb-backup-frequency": { + "type": "string", + "description": "Specifies the frequency for creating rdb backup in minutes. Valid values: (15, 30, 60, 360, 720, 1440)" + }, + "rdb-backup-max-snapshot-count": { + "type": "string", + "description": "Specifies the maximum number of snapshots for rdb backup" + }, + "rdb-storage-connection-string": { + "type": "string", + "description": "The storage account connection string for storing rdb file" }, "aof-backup-enabled": { "type": "string", @@ -1964,6 +2269,10 @@ "authnotrequired": { "type": "string", "description": "Specifies whether the authentication is disabled. Setting this property is highly discouraged from security point of view." + }, + "aad-enabled": { + "type": "string", + "description": "Specifies whether AAD based authentication has been enabled or disabled for the cache" } }, "additionalProperties": {}, @@ -2697,6 +3006,167 @@ ], "description": "Parameter required for creating a linked server to redis cache." }, + "RedisCacheAccessPolicyProperties": { + "properties": { + "provisioningState": { + "type": "string", + "description": "Provisioning state of access policy", + "readOnly": true, + "enum": [ + "Updating", + "Succeeded", + "Deleting", + "Deleted", + "Canceled", + "Failed" + ], + "x-ms-enum": { + "name": "AccessPolicyProvisioningState", + "modelAsString": true + } + }, + "type": { + "type": "string", + "description": "Built-In or Custom access policy", + "readOnly": true, + "enum": [ + "Custom", + "BuiltIn" + ], + "x-ms-enum": { + "name": "AccessPolicyType", + "modelAsString": true + } + }, + "permissions": { + "type": "string", + "description": "Permissions for the access policy. Learn how to configure permissions at https://aka.ms/redis/AADPreRequisites" + } + }, + "required": [ + "permissions" + ], + "description": "All properties of an access policy.", + "type": "object" + }, + "RedisCacheAccessPolicy": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RedisCacheAccessPolicyProperties", + "description": "Properties of an access policy." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ], + "description": "Response to get/put access policy.", + "type": "object" + }, + "RedisCacheAccessPolicyList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RedisCacheAccessPolicy" + }, + "description": "List of access policies (with properties) of a Redis cache." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link for next set." + } + }, + "description": "List of access policies (with properties) of a Redis cache.", + "type": "object" + }, + "RedisCacheAccessPolicyAssignment": { + "description": "Properties for an access policy assignment", + "properties": { + "objectId": { + "type": "string", + "description": "Object Id to assign access policy to" + }, + "objectIdAlias": { + "type": "string", + "description": "User friendly name for object id. Also represents username for token based authentication" + } + }, + "required": [ + "objectId", + "objectIdAlias" + ], + "type": "object" + }, + "RedisCacheAccessPolicyAssignmentSetProperties": { + "properties": { + "provisioningState": { + "type": "string", + "description": "Provisioning state of an access policy assignment set", + "readOnly": true, + "enum": [ + "Updating", + "Succeeded", + "Deleting", + "Deleted", + "Canceled", + "Failed" + ], + "x-ms-enum": { + "name": "AccessPolicyAssignmentProvisioningState", + "modelAsString": true + } + }, + "assignments": { + "type": "array", + "items": { + "$ref": "#/definitions/RedisCacheAccessPolicyAssignment" + }, + "x-ms-identifiers": [ + "objectId" + ] + } + }, + "type": "object", + "description": "Properties of an access policy assignment set" + }, + "RedisCacheAccessPolicyAssignmentSet": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RedisCacheAccessPolicyAssignmentSetProperties", + "description": "Properties of an access policy assignment" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ], + "description": "Response to an operation on access policy assignment", + "type": "object" + }, + "RedisCacheAccessPolicyAssignmentList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RedisCacheAccessPolicyAssignmentSet" + }, + "description": "List of access policies assignments (with properties) of a Redis cache." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Link for next set." + } + }, + "description": "List of access policies assignments (with properties) of a Redis cache.", + "type": "object" + }, "Operation": { "description": "REST API operation", "type": "object", @@ -2828,19 +3298,14 @@ } }, "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", + "CacheNameParameter": { + "name": "cacheName", "in": "path", "required": true, "type": "string", - "description": "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." + "description": "The name of the Redis cache.", + "x-ms-parameter-location": "method", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]|[a-zA-Z0-9])$" } } } From 8037093c17fd951b51170d90c50d7a481e487d37 Mon Sep 17 00:00:00 2001 From: Kanchan Joshi Date: Thu, 27 Apr 2023 12:34:39 +0530 Subject: [PATCH 05/12] Update api version label to 2023-05-01-preview --- .../examples/RedisCacheAccessPolicyAssignmentCreateUpdate.json | 2 +- .../examples/RedisCacheAccessPolicyAssignmentDelete.json | 2 +- .../examples/RedisCacheAccessPolicyAssignmentGet.json | 2 +- .../examples/RedisCacheAccessPolicyAssignmentList.json | 2 +- .../examples/RedisCacheAccessPolicyCreateUpdate.json | 2 +- .../examples/RedisCacheAccessPolicyDelete.json | 2 +- .../2023-05-01-preview/examples/RedisCacheAccessPolicyGet.json | 2 +- .../2023-05-01-preview/examples/RedisCacheAccessPolicyList.json | 2 +- .../examples/RedisCacheAsyncOperationStatus.json | 2 +- .../examples/RedisCacheCheckNameAvailability.json | 2 +- .../preview/2023-05-01-preview/examples/RedisCacheCreate.json | 2 +- .../examples/RedisCacheCreateDefaultVersion.json | 2 +- .../examples/RedisCacheCreateLatestVersion.json | 2 +- .../preview/2023-05-01-preview/examples/RedisCacheDelete.json | 2 +- .../examples/RedisCacheDeletePrivateEndpointConnection.json | 2 +- .../preview/2023-05-01-preview/examples/RedisCacheExport.json | 2 +- .../examples/RedisCacheFirewallRuleCreate.json | 2 +- .../examples/RedisCacheFirewallRuleDelete.json | 2 +- .../2023-05-01-preview/examples/RedisCacheFirewallRuleGet.json | 2 +- .../examples/RedisCacheFirewallRulesList.json | 2 +- .../2023-05-01-preview/examples/RedisCacheForceReboot.json | 2 +- .../preview/2023-05-01-preview/examples/RedisCacheGet.json | 2 +- .../examples/RedisCacheGetPrivateEndpointConnection.json | 2 +- .../preview/2023-05-01-preview/examples/RedisCacheImport.json | 2 +- .../examples/RedisCacheLinkedServer_Create.json | 2 +- .../examples/RedisCacheLinkedServer_Delete.json | 2 +- .../2023-05-01-preview/examples/RedisCacheLinkedServer_Get.json | 2 +- .../examples/RedisCacheLinkedServer_List.json | 2 +- .../preview/2023-05-01-preview/examples/RedisCacheList.json | 2 +- .../examples/RedisCacheListByResourceGroup.json | 2 +- .../preview/2023-05-01-preview/examples/RedisCacheListKeys.json | 2 +- .../examples/RedisCacheListPrivateEndpointConnections.json | 2 +- .../examples/RedisCacheListPrivateLinkResources.json | 2 +- .../examples/RedisCacheListUpgradeNotifications.json | 2 +- .../2023-05-01-preview/examples/RedisCacheOperations.json | 2 +- .../examples/RedisCachePatchSchedulesCreateOrUpdate.json | 2 +- .../examples/RedisCachePatchSchedulesDelete.json | 2 +- .../examples/RedisCachePatchSchedulesGet.json | 2 +- .../examples/RedisCachePatchSchedulesList.json | 2 +- .../examples/RedisCachePutPrivateEndpointConnection.json | 2 +- .../2023-05-01-preview/examples/RedisCacheRegenerateKey.json | 2 +- .../preview/2023-05-01-preview/examples/RedisCacheUpdate.json | 2 +- .../Microsoft.Cache/preview/2023-05-01-preview/redis.json | 2 +- 43 files changed, 43 insertions(+), 43 deletions(-) diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentCreateUpdate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentCreateUpdate.json index 73b67ac56c77..05f290434be5 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentCreateUpdate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentCreateUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg1", "cacheName": "cache1", "accessPolicyName": "accessPolicy1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "parameters": { "properties": { "assignments": [ diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentDelete.json index 8c8dc33ac3eb..a192f74e2c1a 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentDelete.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentDelete.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg1", "cacheName": "cache1", "accessPolicyName": "accessPolicy1", - "api-version": "2023-05-01" + "api-version": "2023-05-01-preview" }, "responses": { "200": {}, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentGet.json index 7213b297fbb7..4cbd4094932a 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentGet.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentGet.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg1", "cacheName": "cache1", "accessPolicyName": "accessPolicy1", - "api-version": "2023-05-01" + "api-version": "2023-05-01-preview" }, "responses": { "200": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentList.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentList.json index 88c852e09ebd..dbd9f00783e4 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentList.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentList.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg1", "cacheName": "cache1", - "api-version": "2023-05-01" + "api-version": "2023-05-01-preview" }, "responses": { "200": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyCreateUpdate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyCreateUpdate.json index ff53b6f748c3..64b5507de541 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyCreateUpdate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyCreateUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg1", "cacheName": "cache1", "accessPolicyName": "accessPolicy1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "parameters": { "properties": { "permissions": "+get +hget" diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyDelete.json index 5a1a9c8496d9..1249ef49e6d5 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyDelete.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyDelete.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg1", "cacheName": "cache1", "accessPolicyName": "accessPolicy1", - "api-version": "2023-05-01" + "api-version": "2023-05-01-preview" }, "responses": { "200": {}, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyGet.json index 894c938d2b6c..be9ef97b95d2 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyGet.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyGet.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg1", "cacheName": "cache1", "accessPolicyName": "accessPolicy1", - "api-version": "2023-05-01" + "api-version": "2023-05-01-preview" }, "responses": { "200": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyList.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyList.json index 7e56165d7b16..73cd36fb0d0d 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyList.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyList.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg1", "cacheName": "cache1", - "api-version": "2023-05-01" + "api-version": "2023-05-01-preview" }, "responses": { "200": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAsyncOperationStatus.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAsyncOperationStatus.json index 907b181c5e63..5802eaa75495 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAsyncOperationStatus.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAsyncOperationStatus.json @@ -1,7 +1,7 @@ { "parameters": { "location": "East US", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "operationId": "c7ba2bf5-5939-4d79-b037-2964ccf097da" }, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCheckNameAvailability.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCheckNameAvailability.json index 9a7021a0e59f..91945dcb963b 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCheckNameAvailability.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCheckNameAvailability.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "type": "Microsoft.Cache/Redis", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreate.json index 891bdebb0964..264e79c5407c 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreate.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "location": "West US", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateDefaultVersion.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateDefaultVersion.json index a41cddda1805..ef97b6eaf4c2 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateDefaultVersion.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateDefaultVersion.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "location": "West US", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateLatestVersion.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateLatestVersion.json index a0306827f232..9f78fefeb513 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateLatestVersion.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheCreateLatestVersion.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "location": "West US", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDelete.json index 3cc12d6e0d0c..6f8424423b28 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDelete.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDelete.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDeletePrivateEndpointConnection.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDeletePrivateEndpointConnection.json index e5044d20ac24..a4bb6206fa3d 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDeletePrivateEndpointConnection.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheDeletePrivateEndpointConnection.json @@ -4,7 +4,7 @@ "resourceGroupName": "rgtest01", "cacheName": "cachetest01", "privateEndpointConnectionName": "pectest01", - "api-version": "2023-05-01" + "api-version": "2023-05-01-preview" }, "responses": { "200": {}, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheExport.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheExport.json index 2bcfe44af9aa..aa8b96f814e1 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheExport.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheExport.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "format": "RDB", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleCreate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleCreate.json index 9f1391000c7d..08faa6d074a7 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleCreate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleCreate.json @@ -3,7 +3,7 @@ "ruleName": "rule1", "cacheName": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "properties": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleDelete.json index 8a0c1f29711c..8f32862665d5 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleDelete.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleDelete.json @@ -3,7 +3,7 @@ "ruleName": "rule1", "cacheName": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleGet.json index 684002852770..6c0ebe1af5f3 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleGet.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRuleGet.json @@ -3,7 +3,7 @@ "ruleName": "rule1", "cacheName": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRulesList.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRulesList.json index 3c0ed3312bdb..656f1614730b 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRulesList.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheFirewallRulesList.json @@ -2,7 +2,7 @@ "parameters": { "cacheName": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheForceReboot.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheForceReboot.json index 0983d1442cb1..1075b5b011b5 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheForceReboot.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheForceReboot.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "shardId": 0, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGet.json index 2f0876e33e8c..f66ecce7cc68 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGet.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGet.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGetPrivateEndpointConnection.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGetPrivateEndpointConnection.json index 1dc274648f69..afc55b9d5b0f 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGetPrivateEndpointConnection.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheGetPrivateEndpointConnection.json @@ -4,7 +4,7 @@ "resourceGroupName": "rgtest01", "cacheName": "cachetest01", "privateEndpointConnectionName": "pectest01", - "api-version": "2023-05-01" + "api-version": "2023-05-01-preview" }, "responses": { "200": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheImport.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheImport.json index 5c1e9c2c4952..474dfbfba9db 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheImport.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheImport.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "format": "RDB", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Create.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Create.json index d46a7b74d0f4..91a8e206e7e7 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Create.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Create.json @@ -3,7 +3,7 @@ "name": "cache1", "resourceGroupName": "rg1", "linkedServerName": "cache2", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "properties": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Delete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Delete.json index ed504aee4136..a19f0cd38ca5 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Delete.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Delete.json @@ -3,7 +3,7 @@ "name": "cache1", "resourceGroupName": "rg1", "linkedServerName": "cache2", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Get.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Get.json index a6ba18ac7847..4aa844eaaebd 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Get.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_Get.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "linkedServerName": "cache2" }, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_List.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_List.json index 254a76397036..dff198a4de07 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_List.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheLinkedServer_List.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheList.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheList.json index d2188180d12f..c747cc04ab00 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheList.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListByResourceGroup.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListByResourceGroup.json index bc0acc2ac800..ef9ae9f6bd55 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListByResourceGroup.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListByResourceGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "resourceGroupName": "rg1", "subscriptionId": "subid" }, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListKeys.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListKeys.json index ea291ce98b1c..4e1ea4693f88 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListKeys.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListKeys.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateEndpointConnections.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateEndpointConnections.json index fa4794a263e8..7b69c1d5a559 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateEndpointConnections.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateEndpointConnections.json @@ -4,7 +4,7 @@ "resourceGroupName": "rgtest01", "cacheName": "cachetest01", "privateEndpointConnectionName": "pectest01", - "api-version": "2023-05-01" + "api-version": "2023-05-01-preview" }, "responses": { "200": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateLinkResources.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateLinkResources.json index a597e1d2e92a..cf915a251b83 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateLinkResources.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListPrivateLinkResources.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "rgtest01", "cacheName": "cacheTest01", - "api-version": "2023-05-01" + "api-version": "2023-05-01-preview" }, "responses": { "200": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListUpgradeNotifications.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListUpgradeNotifications.json index a93738c8817b..90a530daed0c 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListUpgradeNotifications.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheListUpgradeNotifications.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "history": "5000" }, diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheOperations.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheOperations.json index 95f36fbf3d27..d0255cd65ad3 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheOperations.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheOperations.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-05-01" + "api-version": "2023-05-01-preview" }, "responses": { "200": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesCreateOrUpdate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesCreateOrUpdate.json index 367812d66d73..8b56172dbfc7 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesCreateOrUpdate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesCreateOrUpdate.json @@ -3,7 +3,7 @@ "name": "cache1", "resourceGroupName": "rg1", "default": "default", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "properties": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesDelete.json index 398aaf7ab2a3..a1d3daeb1cf3 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesDelete.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesDelete.json @@ -3,7 +3,7 @@ "name": "cache1", "resourceGroupName": "rg1", "default": "default", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesGet.json index 9f73e6cad9e7..4e365efa649f 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesGet.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesGet.json @@ -3,7 +3,7 @@ "name": "cache1", "resourceGroupName": "rg1", "default": "default", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesList.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesList.json index 060fc4d0e5bb..135de803cf17 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesList.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePatchSchedulesList.json @@ -2,7 +2,7 @@ "parameters": { "cacheName": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid" }, "responses": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePutPrivateEndpointConnection.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePutPrivateEndpointConnection.json index 76d56a82e815..4bc31889ab56 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePutPrivateEndpointConnection.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCachePutPrivateEndpointConnection.json @@ -4,7 +4,7 @@ "resourceGroupName": "rgtest01", "cacheName": "cachetest01", "privateEndpointConnectionName": "pectest01", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "properties": { "properties": { "privateLinkServiceConnectionState": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheRegenerateKey.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheRegenerateKey.json index 723e7c0cadea..d79674eb27c3 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheRegenerateKey.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheRegenerateKey.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "keyType": "Primary" diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheUpdate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheUpdate.json index b1cb0bc15428..dd4ecdd974a9 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheUpdate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheUpdate.json @@ -2,7 +2,7 @@ "parameters": { "name": "cache1", "resourceGroupName": "rg1", - "api-version": "2023-05-01", + "api-version": "2023-05-01-preview", "subscriptionId": "subid", "parameters": { "properties": { diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json index e9788e8fb41b..5b2332d643dd 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json @@ -3,7 +3,7 @@ "info": { "title": "RedisManagementClient", "description": "REST API for Azure Redis Cache Service.", - "version": "2023-05-01" + "version": "2023-05-01-preview" }, "host": "management.azure.com", "schemes": [ From b758924866fa0680f3ddd71c4d98a9be6ac4bd88 Mon Sep 17 00:00:00 2001 From: Kanchan Joshi Date: Thu, 27 Apr 2023 13:17:06 +0530 Subject: [PATCH 06/12] Address PR suggestions from release branch --- ...cheAccessPolicyAssignmentCreateUpdate.json | 41 ++---- ...edisCacheAccessPolicyAssignmentDelete.json | 15 +-- .../RedisCacheAccessPolicyAssignmentGet.json | 15 +-- .../RedisCacheAccessPolicyAssignmentList.json | 26 ++-- .../RedisCacheAccessPolicyCreateUpdate.json | 4 +- .../RedisCacheAccessPolicyDelete.json | 2 +- .../examples/RedisCacheAccessPolicyGet.json | 2 +- .../examples/RedisCacheAccessPolicyList.json | 4 +- .../preview/2023-05-01-preview/redis.json | 125 ++++++++---------- 9 files changed, 94 insertions(+), 140 deletions(-) diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentCreateUpdate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentCreateUpdate.json index 05f290434be5..b3d3d6c48380 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentCreateUpdate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentCreateUpdate.json @@ -3,53 +3,40 @@ "subscriptionId": "subid", "resourceGroupName": "rg1", "cacheName": "cache1", - "accessPolicyName": "accessPolicy1", + "accessPolicyAssignmentName": "accessPolicyAssignmentName1", "api-version": "2023-05-01-preview", "parameters": { "properties": { - "assignments": [ - { - "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", - "objectIdAlias": "TestAADAppRedis" - }, - { - "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", - "objectIdAlias": "TestAADAppRedis2123" - } - ] + "accessPolicyName": "accessPolicy1", + "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", + "objectIdAlias": "TestAADAppRedis" } } }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicy1", - "name": "cache1/accessPolicy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicyAssignmentName1", + "name": "accessPolicyAssignmentName1", "type": "Microsoft.Cache/Redis/accessPolicyAssignments", "properties": { "provisioningState": "Succeeded", - "assignments": [ - { - "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", - "objectIdAlias": "TestAADAppRedis" - } - ] + "accessPolicyName": "accessPolicy1", + "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", + "objectIdAlias": "TestAADAppRedis" } } }, "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicy1", - "name": "cache1/accessPolicy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicyAssignmentName1", + "name": "accessPolicyAssignmentName1", "type": "Microsoft.Cache/Redis/accessPolicyAssignments", "properties": { "provisioningState": "Succeeded", - "assignments": [ - { - "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", - "objectIdAlias": "TestAADAppRedis" - } - ] + "accessPolicyName": "accessPolicy1", + "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", + "objectIdAlias": "TestAADAppRedis" } } } diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentDelete.json index a192f74e2c1a..cd3a329dca3f 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentDelete.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentDelete.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg1", "cacheName": "cache1", - "accessPolicyName": "accessPolicy1", + "accessPolicyAssignmentName": "accessPolicyAssignmentName1", "api-version": "2023-05-01-preview" }, "responses": { @@ -14,17 +14,14 @@ "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..." }, "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicy1", - "name": "cache1/accessPolicy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicyAssignmentName1", + "name": "accessPolicyAssignmentName1", "type": "Microsoft.Cache/Redis/accessPolicyAssignments", "properties": { "provisioningState": "Deleting", - "assignments": [ - { - "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", - "objectIdAlias": "TestAADAppRedis" - } - ] + "accessPolicyName": "accessPolicy1", + "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", + "objectIdAlias": "TestAADAppRedis" } } } diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentGet.json index 4cbd4094932a..bbb07cc8c92a 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentGet.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentGet.json @@ -3,23 +3,20 @@ "subscriptionId": "subid", "resourceGroupName": "rg1", "cacheName": "cache1", - "accessPolicyName": "accessPolicy1", + "accessPolicyAssignmentName": "accessPolicyAssignmentName1", "api-version": "2023-05-01-preview" }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicy1", - "name": "cache1/accessPolicy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicyAssignmentName1", + "name": "accessPolicyAssignmentName1", "type": "Microsoft.Cache/Redis/accessPolicyAssignments", "properties": { "provisioningState": "Succeeded", - "assignments": [ - { - "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", - "objectIdAlias": "TestAADAppRedis" - } - ] + "accessPolicyName": "accessPolicy1", + "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", + "objectIdAlias": "TestAADAppRedis" } } } diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentList.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentList.json index dbd9f00783e4..bc2eab177921 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentList.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentList.json @@ -10,31 +10,25 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicy1", - "name": "cache1/accessPolicy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicyAssignmentName1", + "name": "accessPolicyAssignmentName1", "type": "Microsoft.Cache/Redis/accessPolicyAssignments", "properties": { "provisioningState": "Succeeded", - "assignments": [ - { - "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", - "objectIdAlias": "TestAADAppRedis1" - } - ] + "accessPolicyName": "accessPolicy1", + "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", + "objectIdAlias": "TestAADAppRedis1" } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicy2", - "name": "cache1/accessPolicy2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicyAssignmentName2", + "name": "accessPolicyAssignmentName2", "type": "Microsoft.Cache/Redis/accessPolicyAssignments", "properties": { "provisioningState": "Succeeded", - "assignments": [ - { - "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b1", - "objectIdAlias": "TestAADAppRedis2" - } - ] + "accessPolicyName": "accessPolicy2", + "objectId": "7497c918-11ad-41e7-1b0f-7c518a87d0b0", + "objectIdAlias": "TestAADAppRedis2" } } ] diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyCreateUpdate.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyCreateUpdate.json index 64b5507de541..d604712554e1 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyCreateUpdate.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyCreateUpdate.json @@ -15,7 +15,7 @@ "200": { "body": { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/accessPolicies/accessPolicy1", - "name": "cache1/accessPolicy1", + "name": "accessPolicy1", "type": "Microsoft.Cache/Redis/accessPolicies", "properties": { "provisioningState": "Succeeded", @@ -27,7 +27,7 @@ "201": { "body": { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/accessPolicies/accessPolicy1", - "name": "cache1/accessPolicy1", + "name": "accessPolicy1", "type": "Microsoft.Cache/Redis/accessPolicies", "properties": { "provisioningState": "Succeeded", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyDelete.json index 1249ef49e6d5..78a8dd982afa 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyDelete.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyDelete.json @@ -15,7 +15,7 @@ }, "body": { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/accessPolicies/accessPolicy1", - "name": "cache1/accessPolicy1", + "name": "accessPolicy1", "type": "Microsoft.Cache/Redis/accessPolicies", "properties": { "provisioningState": "Deleting", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyGet.json index be9ef97b95d2..0cb8b87f8a3f 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyGet.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyGet.json @@ -10,7 +10,7 @@ "200": { "body": { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/accessPolicies/accessPolicy1", - "name": "cache1/accessPolicy1", + "name": "accessPolicy1", "type": "Microsoft.Cache/Redis/accessPolicies", "properties": { "provisioningState": "Succeeded", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyList.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyList.json index 73cd36fb0d0d..31fcce2d973f 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyList.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyList.json @@ -11,7 +11,7 @@ "value": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/accessPolicies/accessPolicyBuiltIn", - "name": "cache1/accessPolicyBuiltIn", + "name": "accessPolicyBuiltIn", "type": "Microsoft.Cache/Redis/accessPolicies", "properties": { "provisioningState": "Succeeded", @@ -21,7 +21,7 @@ }, { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/accessPolicies/accessPolicy1", - "name": "cache1/accessPolicy1", + "name": "accessPolicy1", "type": "Microsoft.Cache/Redis/accessPolicies", "properties": { "provisioningState": "Succeeded", diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json index 5b2332d643dd..f3d472999e8c 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json @@ -1726,12 +1726,7 @@ "$ref": "#/parameters/CacheNameParameter" }, { - "name": "accessPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the access policy that is being added to the Redis cache.", - "pattern": "^[a-zA-Z0-9]+$" + "$ref": "#/parameters/AccessPolicyNameParameter" }, { "name": "parameters", @@ -1794,12 +1789,7 @@ "$ref": "#/parameters/CacheNameParameter" }, { - "name": "accessPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the access policy that is being deleted from the Redis cache.", - "pattern": "^[a-zA-Z0-9]+$" + "$ref": "#/parameters/AccessPolicyNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1854,12 +1844,7 @@ "$ref": "#/parameters/CacheNameParameter" }, { - "name": "accessPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the access policy that is being deleted from the Redis cache.", - "pattern": "^[a-zA-Z0-9]+$" + "$ref": "#/parameters/AccessPolicyNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1930,7 +1915,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicyAssignments/{accessPolicyName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicyAssignments/{accessPolicyAssignmentName}": { "put": { "tags": [ "Redis", @@ -1952,19 +1937,14 @@ "$ref": "#/parameters/CacheNameParameter" }, { - "name": "accessPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the access policy to assign.", - "pattern": "^[a-zA-Z0-9]+$" + "$ref": "#/parameters/AccessPolicyAssignmentNameParameter" }, { "name": "parameters", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/RedisCacheAccessPolicyAssignmentSet" + "$ref": "#/definitions/RedisCacheAccessPolicyAssignment" }, "description": "Parameters supplied to the Create Update Access Policy Assignment operation." }, @@ -1979,13 +1959,13 @@ "200": { "description": "The existing access policy assignment was successfully updated. Check provisioningState to see detailed status.", "schema": { - "$ref": "#/definitions/RedisCacheAccessPolicyAssignmentSet" + "$ref": "#/definitions/RedisCacheAccessPolicyAssignment" } }, "201": { "description": "The new access policy assignment was successfully created. Check provisioningState to see detailed status.", "schema": { - "$ref": "#/definitions/RedisCacheAccessPolicyAssignmentSet" + "$ref": "#/definitions/RedisCacheAccessPolicyAssignment" } }, "default": { @@ -2020,12 +2000,7 @@ "$ref": "#/parameters/CacheNameParameter" }, { - "name": "accessPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the access policy being unassigned.", - "pattern": "^[a-zA-Z0-9]+$" + "$ref": "#/parameters/AccessPolicyAssignmentNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -2049,7 +2024,7 @@ } }, "schema": { - "$ref": "#/definitions/RedisCacheAccessPolicyAssignmentSet" + "$ref": "#/definitions/RedisCacheAccessPolicyAssignment" } }, "default": { @@ -2080,12 +2055,7 @@ "$ref": "#/parameters/CacheNameParameter" }, { - "name": "accessPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the assigned access policy.", - "pattern": "^[a-zA-Z0-9]+$" + "$ref": "#/parameters/AccessPolicyAssignmentNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -2098,7 +2068,7 @@ "200": { "description": "Response of get access policy assignments.", "schema": { - "$ref": "#/definitions/RedisCacheAccessPolicyAssignmentSet" + "$ref": "#/definitions/RedisCacheAccessPolicyAssignment" } }, "default": { @@ -2732,7 +2702,8 @@ "ports": { "type": "array", "items": { - "type": "integer" + "type": "integer", + "format": "int32" }, "description": "A list of redis instances to reboot, specified by per-instance SSL ports or non-SSL ports." } @@ -3083,25 +3054,8 @@ "description": "List of access policies (with properties) of a Redis cache.", "type": "object" }, - "RedisCacheAccessPolicyAssignment": { + "RedisCacheAccessPolicyAssignmentProperties": { "description": "Properties for an access policy assignment", - "properties": { - "objectId": { - "type": "string", - "description": "Object Id to assign access policy to" - }, - "objectIdAlias": { - "type": "string", - "description": "User friendly name for object id. Also represents username for token based authentication" - } - }, - "required": [ - "objectId", - "objectIdAlias" - ], - "type": "object" - }, - "RedisCacheAccessPolicyAssignmentSetProperties": { "properties": { "provisioningState": { "type": "string", @@ -3120,24 +3074,33 @@ "modelAsString": true } }, - "assignments": { - "type": "array", - "items": { - "$ref": "#/definitions/RedisCacheAccessPolicyAssignment" - }, - "x-ms-identifiers": [ - "objectId" - ] + "objectId": { + "type": "string", + "format": "uuid", + "description": "Object Id to assign access policy to" + }, + "objectIdAlias": { + "type": "string", + "description": "User friendly name for object id. Also represents username for token based authentication" + }, + "accessPolicyName": { + "type": "string", + "description": "The name of the access policy that is being assigned", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]|[a-zA-Z0-9])$" } }, - "type": "object", - "description": "Properties of an access policy assignment set" + "required": [ + "objectId", + "objectIdAlias", + "accessPolicyName" + ], + "type": "object" }, - "RedisCacheAccessPolicyAssignmentSet": { + "RedisCacheAccessPolicyAssignment": { "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/RedisCacheAccessPolicyAssignmentSetProperties", + "$ref": "#/definitions/RedisCacheAccessPolicyAssignmentProperties", "description": "Properties of an access policy assignment" } }, @@ -3306,6 +3269,22 @@ "description": "The name of the Redis cache.", "x-ms-parameter-location": "method", "pattern": "^([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]|[a-zA-Z0-9])$" + }, + "AccessPolicyNameParameter": { + "name": "accessPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the access policy that is being added to the Redis cache.", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]|[a-zA-Z0-9])$" + }, + "AccessPolicyAssignmentNameParameter": { + "name": "accessPolicyAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the access policy assignment.", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]|[a-zA-Z0-9])$" } } } From d43bb80cab1a84f02805b3c0a9f448d6ddc0bf76 Mon Sep 17 00:00:00 2001 From: Kanchan Joshi Date: Thu, 27 Apr 2023 13:36:22 +0530 Subject: [PATCH 07/12] Spec validation correction --- .../Microsoft.Cache/preview/2023-05-01-preview/redis.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json index f3d472999e8c..f75ac33413d0 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json @@ -3117,7 +3117,7 @@ "value": { "type": "array", "items": { - "$ref": "#/definitions/RedisCacheAccessPolicyAssignmentSet" + "$ref": "#/definitions/RedisCacheAccessPolicyAssignment" }, "description": "List of access policies assignments (with properties) of a Redis cache." }, From ec5e7b6246078e42c2050917bfcb9207029740fb Mon Sep 17 00:00:00 2001 From: Kanchan Joshi Date: Thu, 27 Apr 2023 14:05:21 +0530 Subject: [PATCH 08/12] Add min max length for access policy and access policy assignment --- .../Microsoft.Cache/preview/2023-05-01-preview/redis.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json index f75ac33413d0..d120ebe9f92f 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json @@ -3276,7 +3276,9 @@ "required": true, "type": "string", "description": "The name of the access policy that is being added to the Redis cache.", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]|[a-zA-Z0-9])$" + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]|[a-zA-Z0-9])$", + "minLength": 3, + "maxLength": 63 }, "AccessPolicyAssignmentNameParameter": { "name": "accessPolicyAssignmentName", @@ -3284,7 +3286,9 @@ "required": true, "type": "string", "description": "The name of the access policy assignment.", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]|[a-zA-Z0-9])$" + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]|[a-zA-Z0-9])$", + "minLength": 3, + "maxLength": 63 } } } From 4a3cacc7988118145f00547f7fdf468631e6e9c9 Mon Sep 17 00:00:00 2001 From: Kanchan Joshi Date: Thu, 27 Apr 2023 17:04:13 +0530 Subject: [PATCH 09/12] Remove breaking changes --- .../Microsoft.Cache/preview/2023-05-01-preview/redis.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json index d120ebe9f92f..8ac2fc470062 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json @@ -2702,8 +2702,7 @@ "ports": { "type": "array", "items": { - "type": "integer", - "format": "int32" + "type": "integer" }, "description": "A list of redis instances to reboot, specified by per-instance SSL ports or non-SSL ports." } @@ -3076,7 +3075,6 @@ }, "objectId": { "type": "string", - "format": "uuid", "description": "Object Id to assign access policy to" }, "objectIdAlias": { From ef77ea95fbca0c1f119bbb102ec43483168f80c0 Mon Sep 17 00:00:00 2001 From: Kanchan Joshi Date: Tue, 2 May 2023 18:43:02 +0530 Subject: [PATCH 10/12] Remove body from delete 202 response --- .../RedisCacheAccessPolicyAssignmentDelete.json | 11 ----------- .../examples/RedisCacheAccessPolicyDelete.json | 10 ---------- .../preview/2023-05-01-preview/redis.json | 6 ------ 3 files changed, 27 deletions(-) diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentDelete.json index cd3a329dca3f..3505efeab419 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentDelete.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyAssignmentDelete.json @@ -12,17 +12,6 @@ "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..." - }, - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/accessPolicyAssignmentName1", - "name": "accessPolicyAssignmentName1", - "type": "Microsoft.Cache/Redis/accessPolicyAssignments", - "properties": { - "provisioningState": "Deleting", - "accessPolicyName": "accessPolicy1", - "objectId": "6497c918-11ad-41e7-1b0f-7c518a87d0b0", - "objectIdAlias": "TestAADAppRedis" - } } } } diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyDelete.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyDelete.json index 78a8dd982afa..a576ebea9d5a 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyDelete.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/examples/RedisCacheAccessPolicyDelete.json @@ -12,16 +12,6 @@ "202": { "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..." - }, - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/accessPolicies/accessPolicy1", - "name": "accessPolicy1", - "type": "Microsoft.Cache/Redis/accessPolicies", - "properties": { - "provisioningState": "Deleting", - "permissions": "+get +hget", - "type": "Custom" - } } } } diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json index 8ac2fc470062..f706c677fa47 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json @@ -1811,9 +1811,6 @@ "Location": { "type": "string" } - }, - "schema": { - "$ref": "#/definitions/RedisCacheAccessPolicy" } }, "default": { @@ -2022,9 +2019,6 @@ "Location": { "type": "string" } - }, - "schema": { - "$ref": "#/definitions/RedisCacheAccessPolicyAssignment" } }, "default": { From 0dbb520ce4c3face358e42d6a12bb74041073745 Mon Sep 17 00:00:00 2001 From: Kanchan Joshi Date: Thu, 4 May 2023 09:49:07 +0530 Subject: [PATCH 11/12] Add add x-ms-parameter-location method --- .../Microsoft.Cache/preview/2023-05-01-preview/redis.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json index f706c677fa47..78694fead0f5 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json +++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2023-05-01-preview/redis.json @@ -3268,6 +3268,7 @@ "required": true, "type": "string", "description": "The name of the access policy that is being added to the Redis cache.", + "x-ms-parameter-location": "method", "pattern": "^([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]|[a-zA-Z0-9])$", "minLength": 3, "maxLength": 63 @@ -3278,6 +3279,7 @@ "required": true, "type": "string", "description": "The name of the access policy assignment.", + "x-ms-parameter-location": "method", "pattern": "^([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]|[a-zA-Z0-9])$", "minLength": 3, "maxLength": 63 From d70671fe5dceb9c46dbd527e9e4fe09d7fab0ccd Mon Sep 17 00:00:00 2001 From: Kanchan Joshi Date: Fri, 5 May 2023 11:12:34 +0530 Subject: [PATCH 12/12] Update redis readme --- specification/redis/resource-manager/readme.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/specification/redis/resource-manager/readme.md b/specification/redis/resource-manager/readme.md index 0160078b1bc7..16a4b8891c4e 100644 --- a/specification/redis/resource-manager/readme.md +++ b/specification/redis/resource-manager/readme.md @@ -27,9 +27,16 @@ These are the global settings for the Redis API. ``` yaml openapi-type: arm tag: package-2023-04 -tag: package-preview-2023-05 ``` +### Tag: package-preview-2023-05 + +These settings apply only when `--tag=package-preview-2023-05` is specified on the command line. + +```yaml $(tag) == 'package-preview-2023-05' +input-file: + - Microsoft.Cache/preview/2023-05-01-preview/redis.json +``` ### Tag: package-2023-04 @@ -39,14 +46,7 @@ These settings apply only when `--tag=package-2023-04` is specified on the comma input-file: - Microsoft.Cache/stable/2023-04-01/redis.json ``` -### Tag: package-preview-2023-05 - -These settings apply only when `--tag=package-preview-2023-05` is specified on the command line. -```yaml $(tag) == 'package-preview-2023-05' -input-file: - - Microsoft.Cache/preview/2023-05-01-preview/redis.json -``` ### Tag: package-2022-06 These settings apply only when `--tag=package-2022-06` is specified on the command line.