Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2022-11-01-preview"
"api-version": "2023-03-01-preview"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"subscriptionId": "subid",
"location": "West US",
"operationId": "testoperationid",
"api-version": "2022-11-01-preview"
"api-version": "2023-03-01-preview"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid",
"parameters": {
"location": "West US",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"databaseName": "default",
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid",
"parameters": {
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"databaseName": "default",
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid1",
"parameters": {
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"databaseName": "db1",
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"databaseName": "default",
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid",
"parameters": {
"sasUri": "https://contosostorage.blob.core.window.net/urlToBlobContainer?sasKeyParameters"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"databaseName": "default",
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid",
"parameters": {
"ids": [
"/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"
]
}
},
"responses": {
"200": {},
"202": {
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationStatus..."
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"databaseName": "default",
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid",
"parameters": {
"ids": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"databaseName": "default",
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"databaseName": "default",
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid",
"parameters": {
"sasUris": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"databaseName": "default",
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"databaseName": "default",
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid",
"parameters": {
"keyType": "Primary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"databaseName": "default",
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid",
"parameters": {
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid",
"privateEndpointConnectionName": "pectest01"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid",
"privateEndpointConnectionName": "pectest01"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"resourceGroupName": "rg1",
"subscriptionId": "subid"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid",
"privateEndpointConnectionName": "pectest01"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid",
"privateEndpointConnectionName": "pectest01",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid",
"location": "westus2"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"clusterName": "cache1",
"resourceGroupName": "rg1",
"api-version": "2022-11-01-preview",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid",
"parameters": {
"sku": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"version": "2022-11-01-preview",
"version": "2023-03-01-preview",
"title": "RedisEnterpriseManagementClient",
"description": "REST API for managing Redis Enterprise resources in Azure."
},
Expand Down Expand Up @@ -1182,6 +1182,75 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/flush": {
"post": {
"tags": [
"RedisEnterprise",
"Databases"
],
"operationId": "Databases_Flush",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"x-ms-examples": {
"How to flush all the keys in the database": {
"$ref": "./examples/RedisEnterpriseDatabasesFlush.json"
}
},
"description": "Flushes all the keys in this database and also from its linked databases.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ClusterNameParameter"
},
{
"$ref": "#/parameters/DatabaseNameParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/FlushParameters"
},
"description": "Information identifying the databases to be flushed"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Flush operation succeeded. All the keys are cleared in this and all its linked databases."
},
"202": {
"description": "Flush operation successfully enqueued; follow the Azure-AsyncOperation header to poll for final outcome.",
"headers": {
"Location": {
"description": "Location URI to poll for result",
"type": "string"
},
"Azure-AsyncOperation": {
"description": "URI to poll for the operation status",
"type": "string"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/skus": {
"get": {
"tags": [
Expand Down Expand Up @@ -1921,6 +1990,20 @@
}
}
},
"FlushParameters": {
"title": "Flush all the keys from the current and all its linked databases",
"type": "object",
"properties": {
"ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "The resource identifiers of all the other database resources in the georeplication group to be flushed"
}
},
"description": "Parameters for a Redis Enterprise active geo-replication flush operation."
},
"ForceUnlinkParameters": {
"title": "Forcibly unlink another database from this database.",
"type": "object",
Expand Down
13 changes: 11 additions & 2 deletions specification/redisenterprise/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,27 @@ These are the global settings for the RedisEnterprise API.

``` yaml
openapi-type: arm
tag: package-preview-2022-11
tag: package-preview-2023-03
```


### Tag: package-preview-2023-03

These settings apply only when `--tag=package-preview-2023-03` is specified on the command line.

```yaml $(tag) == 'package-preview-2023-03'
input-file:
- Microsoft.Cache/preview/2023-03-01-preview/redisenterprise.json
```
### Tag: package-preview-2022-11

These settings apply only when `--tag=package-preview-2022-11` is specified on the command line.

```yaml $(tag) == 'package-preview-2022-11'
``` yaml $(tag) == 'package-preview-2022-11'
input-file:
- Microsoft.Cache/preview/2022-11-01-preview/redisenterprise.json
```

### Tag: package-2022-01

These settings apply only when `--tag=package-2022-01` is specified on the command line.
Expand Down