-
Notifications
You must be signed in to change notification settings - Fork 5.6k
CosmosDB Restoreable APIs for SQL and MongoDB database account #11428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
leniatgh
merged 24 commits into
Azure:master
from
vinhms:dev-cosmos-db-Microsoft.DocumentDB-2020-06-01-preview
Dec 11, 2020
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
3ab01d9
adding new restorable apis
vinhms dea7e44
fix some typos
vinhms ec60ddc
fix validations
vinhms a0dc570
fix more validations
vinhms b2e1a82
prettier
vinhms 9f32da4
fix name and add apitype
vinhms 9ad2675
fix casing
vinhms 1d9738e
add custom word etcd
vinhms 32a825a
add mongodb
vinhms dd8ddcd
fix prameter name
vinhms 85e3723
fix validations
vinhms bea1863
make read only
vinhms 022fd14
remove the word snapshot and make properties readonly
vinhms 941fc50
pretty
vinhms 755bc39
improved some descriptions
vinhms 647ac36
update description and removed mongodb content
vinhms a4a6c5b
fix container property name
vinhms d05e1ab
fix documentcollection name
vinhms ad607da
make query parameter optional
vinhms 6b8e7b9
address Meha's comments
vinhms 0b357ed
move restorable apis to separate file
vinhms 190d84e
move restorable database apis back to cosmos-db.json
vinhms f16443e
remove point read apis
vinhms 3ccbd3f
fix avocado
vinhms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
31 changes: 31 additions & 0 deletions
31
...cumentDB/preview/2020-06-01-preview/examples/CosmosDBRestorableMongodbCollectionList.json
This file contains hidden or 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,31 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2020-06-01-preview", | ||
| "subscriptionId": "subid", | ||
| "location": "WestUS", | ||
| "instanceId": "98a570f2-63db-4117-91f0-366327b7b353", | ||
| "restorableMongodbDatabaseRid": "PD5DALigDgw=" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableMongodbCollections/79609a98-3394-41f8-911f-cfab0c075c86", | ||
| "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbCollections", | ||
| "name": "79609a98-3394-41f8-911f-cfab0c075c86", | ||
| "properties": { | ||
| "resource": { | ||
| "_rid": "zAyAPQAAAA==", | ||
| "eventTimestamp": "2020-10-13T04:56:42Z", | ||
| "ownerId": "Collection1", | ||
| "ownerResourceId": "V18LoLrv-qA=", | ||
| "operationType": "Create" | ||
| } | ||
vinhms marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
44 changes: 44 additions & 0 deletions
44
...DocumentDB/preview/2020-06-01-preview/examples/CosmosDBRestorableMongodbDatabaseList.json
This file contains hidden or 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,44 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2020-06-01-preview", | ||
| "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", | ||
| "location": "WestUS", | ||
| "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/36f09704-6be3-4f33-aa05-17b73e504c75/restorableMongodbDatabases/59c21367-b98b-4a8e-abb7-b6f46600decc", | ||
| "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbDatabases", | ||
| "name": "59c21367-b98b-4a8e-abb7-b6f46600decc", | ||
| "properties": { | ||
| "resource": { | ||
| "_rid": "DLB14gAAAA==", | ||
| "eventTimestamp": "2020-09-02T19:45:03Z", | ||
| "ownerId": "Database1", | ||
| "ownerResourceId": "PD5DALigDgw=", | ||
| "operationType": "Create" | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableMongodbDatabases/8456cb17-cdb0-4c6a-8db8-d0ff3f886257", | ||
| "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbDatabases", | ||
| "name": "8456cb17-cdb0-4c6a-8db8-d0ff3f886257", | ||
| "properties": { | ||
| "resource": { | ||
| "_rid": "ESXNLAAAAA==", | ||
| "eventTimestamp": "2020-09-02T19:53:42Z", | ||
| "ownerId": "Database1", | ||
| "ownerResourceId": "PD5DALigDgw=", | ||
| "operationType": "Delete" | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
35 changes: 35 additions & 0 deletions
35
...DocumentDB/preview/2020-06-01-preview/examples/CosmosDBRestorableMongodbResourceList.json
This file contains hidden or 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,35 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2020-06-01-preview", | ||
| "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", | ||
| "location": "WestUS", | ||
| "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", | ||
| "restoreLocation": "WestUS", | ||
| "restoreTimestampInUtc": "10/13/2020 4:56" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "databaseName": "Database1", | ||
| "collectionNames": [ | ||
| "Collection1" | ||
| ] | ||
| }, | ||
| { | ||
| "databaseName": "Database2", | ||
| "collectionNames": [ | ||
| "Collection1", | ||
| "Collection2" | ||
| ] | ||
| }, | ||
| { | ||
| "databaseName": "Database3", | ||
| "collectionNames": [] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.