Skip to content

Commit

Permalink
Dev redis microsoft.cache 2020 06 01 (#11011)
Browse files Browse the repository at this point in the history
* Private link api

* Change types to version 2

* Add default response to everything

* Fix json positioning

* Added 204 response

* Added 200 status code

* Added delete to linkedServer

* Fixed README comments

Fix readme preview label.
Remove added space just in case

* fixed trailing slash

* Run prettier

* Fixed Naming comments
  • Loading branch information
sspeaks610 authored Oct 14, 2020
1 parent 1568435 commit 8b447ea
Show file tree
Hide file tree
Showing 32 changed files with 3,753 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2020-06-01",
"subscriptionId": "subid",
"parameters": {
"type": "Microsoft.Cache/Redis",
"name": "cacheName"
}
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
{
"parameters": {
"name": "cache1",
"resourceGroupName": "rg1",
"api-version": "2020-06-01",
"subscriptionId": "subid",
"parameters": {
"location": "West US",
"zones": [
"1"
],
"properties": {
"sku": {
"name": "Premium",
"family": "P",
"capacity": 1
},
"enableNonSslPort": true,
"shardCount": 2,
"replicasPerMaster": 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": "secretkey1",
"secondaryKey": "secretKey2"
},
"provisioningState": "Succeeded",
"redisVersion": "3.0",
"sku": {
"name": "Premium",
"family": "P",
"capacity": 1
},
"enableNonSslPort": false,
"replicasPerMaster": 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
},
{
"sslPort": 15001,
"nonSslPort": 13001,
"zone": "1",
"shardId": 0
},
{
"sslPort": 15002,
"nonSslPort": 13002,
"zone": "1",
"shardId": 0
},
{
"sslPort": 15003,
"nonSslPort": 13003,
"zone": "1",
"shardId": 1
},
{
"sslPort": 15004,
"nonSslPort": 13004,
"zone": "1",
"shardId": 1
},
{
"sslPort": 15005,
"nonSslPort": 13005,
"zone": "1",
"shardId": 1
}
]
}
}
},
"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": "secretkey1",
"secondaryKey": "secretKey2"
},
"provisioningState": "Succeeded",
"redisVersion": "3.0",
"sku": {
"name": "Premium",
"family": "P",
"capacity": 1
},
"enableNonSslPort": false,
"replicasPerMaster": 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
},
{
"sslPort": 15001,
"nonSslPort": 13001,
"zone": "1",
"shardId": 0
},
{
"sslPort": 15002,
"nonSslPort": 13002,
"zone": "1",
"shardId": 0
},
{
"sslPort": 15003,
"nonSslPort": 13003,
"zone": "1",
"shardId": 1
},
{
"sslPort": 15004,
"nonSslPort": 13004,
"zone": "1",
"shardId": 1
},
{
"sslPort": 15005,
"nonSslPort": 13005,
"zone": "1",
"shardId": 1
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"name": "cache1",
"resourceGroupName": "rg1",
"api-version": "2020-06-01",
"subscriptionId": "subid"
},
"responses": {
"200": {},
"202": {
"headers": {
"location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..."
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "rgtest01",
"cacheName": "cachetest01",
"privateEndpointConnectionName": "pectest01",
"api-version": "2020-06-01"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"name": "cache1",
"resourceGroupName": "rg1",
"api-version": "2020-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": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"ruleName": "rule1",
"cacheName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2020-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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"ruleName": "rule1",
"cacheName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2020-06-01",
"subscriptionId": "subid"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"ruleName": "rule1",
"cacheName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2020-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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"cacheName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2020-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"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"name": "cache1",
"resourceGroupName": "rg1",
"api-version": "2020-06-01",
"subscriptionId": "subid",
"parameters": {
"shardId": 0,
"rebootType": "AllNodes",
"ports": [
13000,
15001
]
}
},
"responses": {
"200": {
"body": {
"message": "reboot operation enqueued"
}
}
}
}
Loading

0 comments on commit 8b447ea

Please sign in to comment.