|
1182 | 1182 | }
|
1183 | 1183 | }
|
1184 | 1184 | },
|
| 1185 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/flush": { |
| 1186 | + "post": { |
| 1187 | + "tags": [ |
| 1188 | + "RedisEnterprise", |
| 1189 | + "Databases" |
| 1190 | + ], |
| 1191 | + "operationId": "Databases_Flush", |
| 1192 | + "x-ms-long-running-operation": true, |
| 1193 | + "x-ms-long-running-operation-options": { |
| 1194 | + "final-state-via": "azure-async-operation" |
| 1195 | + }, |
| 1196 | + "x-ms-examples": { |
| 1197 | + "How to flush all the keys in the database": { |
| 1198 | + "$ref": "./examples/RedisEnterpriseDatabasesFlush.json" |
| 1199 | + } |
| 1200 | + }, |
| 1201 | + "description": "flushes all the keys in this database and also from its linked databases.", |
| 1202 | + "parameters": [ |
| 1203 | + { |
| 1204 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" |
| 1205 | + }, |
| 1206 | + { |
| 1207 | + "$ref": "#/parameters/ClusterNameParameter" |
| 1208 | + }, |
| 1209 | + { |
| 1210 | + "$ref": "#/parameters/DatabaseNameParameter" |
| 1211 | + }, |
| 1212 | + { |
| 1213 | + "name": "parameters", |
| 1214 | + "in": "body", |
| 1215 | + "required": true, |
| 1216 | + "schema": { |
| 1217 | + "$ref": "#/definitions/FlushParameters" |
| 1218 | + }, |
| 1219 | + "description": "Information identifying the database to be flushed" |
| 1220 | + }, |
| 1221 | + { |
| 1222 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" |
| 1223 | + }, |
| 1224 | + { |
| 1225 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" |
| 1226 | + } |
| 1227 | + ], |
| 1228 | + "responses": { |
| 1229 | + "200": { |
| 1230 | + "description": "Flush operation succeeded. All the keys are cleared in this and all its linked databases." |
| 1231 | + }, |
| 1232 | + "202": { |
| 1233 | + "description": "Flush operation successfully enqueued; follow the Azure-AsyncOperation header to poll for final outcome." |
| 1234 | + }, |
| 1235 | + "default": { |
| 1236 | + "description": "Error response describing why the operation failed.", |
| 1237 | + "schema": { |
| 1238 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" |
| 1239 | + } |
| 1240 | + } |
| 1241 | + } |
| 1242 | + } |
| 1243 | + }, |
1185 | 1244 | "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/skus": {
|
1186 | 1245 | "get": {
|
1187 | 1246 | "tags": [
|
|
1921 | 1980 | }
|
1922 | 1981 | }
|
1923 | 1982 | },
|
| 1983 | + "FlushParameters": { |
| 1984 | + "title": "Flush the keys from the current and all its linked databases.", |
| 1985 | + "type": "object", |
| 1986 | + "properties": { |
| 1987 | + "ids": { |
| 1988 | + "type": "array", |
| 1989 | + "items": { |
| 1990 | + "type": "string" |
| 1991 | + }, |
| 1992 | + "description": "The resource IDs of the database resources to be flushed." |
| 1993 | + } |
| 1994 | + }, |
| 1995 | + "required": [ |
| 1996 | + "ids" |
| 1997 | + ], |
| 1998 | + "description": "Parameters for a Redis Enterprise Active Geo Replication FLush operation." |
| 1999 | + }, |
1924 | 2000 | "ForceUnlinkParameters": {
|
1925 | 2001 | "title": "Forcibly unlink another database from this database.",
|
1926 | 2002 | "type": "object",
|
|
0 commit comments