-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CosmosDB] Migration support of existing containers/databases to auto…
…scale (#9258) * initial changes * update 2020-04-01 * update example * add default response * fixing ErrorResponse * updated the DefaultErrorResponse * Revert "updated the DefaultErrorResponse" This reverts commit 78c90b5. * Revert "fixing ErrorResponse" This reverts commit cab5d0f. * Revert "add default response" This reverts commit 18d8799. Co-authored-by: Meha Kaushik <mekaushi@microsoft.com>
- Loading branch information
Showing
38 changed files
with
2,544 additions
and
50 deletions.
There are no files selected for viewing
794 changes: 769 additions & 25 deletions
794
...fication/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/cosmos-db.json
Large diffs are not rendered by default.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
...ft.DocumentDB/stable/2020-03-01/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "ddb1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid", | ||
"keyspaceName": "keyspaceName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"resource": { | ||
"throughput": 400, | ||
"provisionedThroughputSettings": { | ||
"maxThroughput": 4000 | ||
}, | ||
"minimumThroughput": "4000", | ||
"offerReplacePending": "false", | ||
"_rid": "PD5DALigDgw=", | ||
"_ts": 1459200611, | ||
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" | ||
} | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...mentDB/stable/2020-03-01/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "ddb1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid", | ||
"keyspaceName": "keyspaceName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"resource": { | ||
"throughput": 400, | ||
"minimumThroughput": "400", | ||
"offerReplacePending": "false", | ||
"_rid": "PD5DALigDgw=", | ||
"_ts": 1459200611, | ||
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" | ||
} | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...osoft.DocumentDB/stable/2020-03-01/examples/CosmosDBCassandraTableMigrateToAutoscale.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "ddb1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid", | ||
"keyspaceName": "keyspaceName", | ||
"tableName": "tableName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"resource": { | ||
"throughput": 400, | ||
"provisionedThroughputSettings": { | ||
"maxThroughput": 4000 | ||
}, | ||
"minimumThroughput": "4000", | ||
"offerReplacePending": "false", | ||
"_rid": "PD5DALigDgw=", | ||
"_ts": 1459200611, | ||
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" | ||
} | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...ocumentDB/stable/2020-03-01/examples/CosmosDBCassandraTableMigrateToManualThroughput.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "ddb1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid", | ||
"keyspaceName": "keyspaceName", | ||
"tableName": "tableName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"resource": { | ||
"throughput": 400, | ||
"minimumThroughput": "400", | ||
"offerReplacePending": "false", | ||
"_rid": "PD5DALigDgw=", | ||
"_ts": 1459200611, | ||
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" | ||
} | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...soft.DocumentDB/stable/2020-03-01/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "ddb1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid", | ||
"databaseName": "databaseName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"resource": { | ||
"throughput": 400, | ||
"provisionedThroughputSettings": { | ||
"maxThroughput": 4000 | ||
}, | ||
"minimumThroughput": "4000", | ||
"offerReplacePending": "false", | ||
"_rid": "PD5DALigDgw=", | ||
"_ts": 1459200611, | ||
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" | ||
} | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...cumentDB/stable/2020-03-01/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "ddb1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid", | ||
"databaseName": "databaseName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"resource": { | ||
"throughput": 400, | ||
"minimumThroughput": "400", | ||
"offerReplacePending": "true", | ||
"_rid": "PD5DALigDgw=", | ||
"_ts": 1459200611, | ||
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" | ||
} | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...crosoft.DocumentDB/stable/2020-03-01/examples/CosmosDBGremlinGraphMigrateToAutoscale.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "ddb1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid", | ||
"databaseName": "databaseName", | ||
"graphName": "graphName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"resource": { | ||
"throughput": 400, | ||
"provisionedThroughputSettings": { | ||
"maxThroughput": 4000 | ||
}, | ||
"minimumThroughput": "4000", | ||
"offerReplacePending": "false", | ||
"_rid": "PD5DALigDgw=", | ||
"_ts": 1459200611, | ||
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" | ||
} | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
....DocumentDB/stable/2020-03-01/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "ddb1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid", | ||
"databaseName": "databaseName", | ||
"graphName": "graphName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"resource": { | ||
"throughput": 400, | ||
"minimumThroughput": "400", | ||
"offerReplacePending": "true", | ||
"_rid": "PD5DALigDgw=", | ||
"_ts": 1459200611, | ||
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" | ||
} | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...ft.DocumentDB/stable/2020-03-01/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "ddb1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid", | ||
"databaseName": "databaseName", | ||
"collectionName": "collectionName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"resource": { | ||
"throughput": 400, | ||
"provisionedThroughputSettings": { | ||
"maxThroughput": 4000 | ||
}, | ||
"minimumThroughput": "4000", | ||
"offerReplacePending": "false", | ||
"_rid": "PD5DALigDgw=", | ||
"_ts": 1459200611, | ||
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" | ||
} | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...mentDB/stable/2020-03-01/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "ddb1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid", | ||
"databaseName": "databaseName", | ||
"collectionName": "collectionName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"resource": { | ||
"throughput": 400, | ||
"minimumThroughput": "400", | ||
"offerReplacePending": "true", | ||
"_rid": "PD5DALigDgw=", | ||
"_ts": 1459200611, | ||
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" | ||
} | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...soft.DocumentDB/stable/2020-03-01/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "ddb1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid", | ||
"databaseName": "databaseName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"resource": { | ||
"throughput": 400, | ||
"provisionedThroughputSettings": { | ||
"maxThroughput": 4000 | ||
}, | ||
"minimumThroughput": "4000", | ||
"offerReplacePending": "false", | ||
"_rid": "PD5DALigDgw=", | ||
"_ts": 1459200611, | ||
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" | ||
} | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...cumentDB/stable/2020-03-01/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "ddb1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid", | ||
"databaseName": "databaseName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"resource": { | ||
"throughput": 400, | ||
"minimumThroughput": "400", | ||
"offerReplacePending": "true", | ||
"_rid": "PD5DALigDgw=", | ||
"_ts": 1459200611, | ||
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" | ||
} | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...crosoft.DocumentDB/stable/2020-03-01/examples/CosmosDBSqlContainerMigrateToAutoscale.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "ddb1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid", | ||
"databaseName": "databaseName", | ||
"containerName": "containerName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"resource": { | ||
"throughput": 400, | ||
"provisionedThroughputSettings": { | ||
"maxThroughput": 4000 | ||
}, | ||
"minimumThroughput": "4000", | ||
"offerReplacePending": "false", | ||
"_rid": "PD5DALigDgw=", | ||
"_ts": 1459200611, | ||
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" | ||
} | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
Oops, something went wrong.