forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CosmosDB Restoreable APIs for SQL and MongoDB database account (Azure…
…#11428) * adding new restorable apis * fix some typos * fix validations * fix more validations * prettier * fix name and add apitype * fix casing * add custom word etcd * add mongodb * fix prameter name * fix validations * make read only * remove the word snapshot and make properties readonly * pretty * improved some descriptions * update description and removed mongodb content * fix container property name * fix documentcollection name * make query parameter optional * address Meha's comments * move restorable apis to separate file * move restorable database apis back to cosmos-db.json * remove point read apis * fix avocado
- Loading branch information
Showing
12 changed files
with
1,161 additions
and
8 deletions.
There are no files selected for viewing
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
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
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
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
31 changes: 31 additions & 0 deletions
31
...cumentDB/preview/2020-06-01-preview/examples/CosmosDBRestorableMongodbCollectionList.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,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" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...DocumentDB/preview/2020-06-01-preview/examples/CosmosDBRestorableMongodbDatabaseList.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,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 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.