Skip to content

Commit 225bc10

Browse files
committed
add continuoustier and oldestrestorabletimestamp
1 parent 78ee0dc commit 225bc10

File tree

6 files changed

+50
-1
lines changed

6 files changed

+50
-1
lines changed

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-04-15/cosmos-db.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9741,6 +9741,13 @@
97419741
"$ref": "#/definitions/BackupPolicy"
97429742
}
97439743
],
9744+
"properties": {
9745+
"continuousModeProperties": {
9746+
"type": "object",
9747+
"description": "Configuration values for continuous mode backup",
9748+
"$ref": "#/definitions/ContinuousModeProperties"
9749+
}
9750+
},
97449751
"x-ms-discriminator-value": "Continuous"
97459752
},
97469753
"PeriodicModeProperties": {
@@ -9766,6 +9773,17 @@
97669773
}
97679774
}
97689775
},
9776+
"ContinuousModeProperties": {
9777+
"type": "object",
9778+
"description": "Configuration values for periodic mode backup",
9779+
"properties": {
9780+
"tier": {
9781+
"description": "Enum to indicate type of Continuos backup mode",
9782+
"type": "string",
9783+
"$ref": "#/definitions/ContinuousTier"
9784+
}
9785+
}
9786+
},
97699787
"LocationListResult": {
97709788
"type": "object",
97719789
"properties": {
@@ -9859,6 +9877,18 @@
98599877
"modelAsString": true
98609878
}
98619879
},
9880+
"ContinuousTier": {
9881+
"description": "Enum to indicate type of Continuous backup tier.",
9882+
"type": "string",
9883+
"enum": [
9884+
"Continuous7Days",
9885+
"Continuous30Days"
9886+
],
9887+
"x-ms-enum": {
9888+
"name": "ContinuousTier",
9889+
"modelAsString": true
9890+
}
9891+
},
98629892
"MinimalTlsVersion": {
98639893
"description": "Indicates the minimum allowed Tls version. The default is Tls 1.0, except for Cassandra and Mongo API's, which only work with Tls 1.2.",
98649894
"type": "string",

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-04-15/examples/CosmosDBRestorableDatabaseAccountGet.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"accountName": "ddb1",
1717
"creationTime": "2020-04-11T21:56:15Z",
1818
"deletionTime": "2021-03-12T22:05:09Z",
19+
"oldestRestorableTime": "2021-03-01T22:05:09Z",
1920
"apiType": "Sql",
2021
"restorableLocations": [
2122
{

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-04-15/examples/CosmosDBRestorableDatabaseAccountList.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"accountName": "ddb1",
1818
"creationTime": "2020-04-11T21:56:15Z",
1919
"deletionTime": "2021-03-12T22:05:09Z",
20+
"oldestRestorableTime": "2021-03-12T22:05:09Z",
2021
"apiType": "Sql",
2122
"restorableLocations": [
2223
{
@@ -41,6 +42,7 @@
4142
"properties": {
4243
"accountName": "ddb2",
4344
"creationTime": "2020-05-01T08:05:18Z",
45+
"oldestRestorableTime": "2020-05-01T08:05:18Z",
4446
"apiType": "Sql",
4547
"restorableLocations": [
4648
{

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-04-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"accountName": "ddb1",
1717
"creationTime": "2020-04-11T21:56:15Z",
1818
"deletionTime": "2021-03-12T22:05:09Z",
19+
"oldestRestorableTime": "2021-03-12T22:05:09Z",
1920
"apiType": "Sql",
2021
"restorableLocations": [
2122
{
@@ -40,6 +41,7 @@
4041
"properties": {
4142
"accountName": "ddb2",
4243
"creationTime": "2020-05-01T08:05:18Z",
44+
"oldestRestorableTime": "2020-05-01T08:05:18Z",
4345
"apiType": "Sql",
4446
"restorableLocations": [
4547
{

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-04-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@
4040
]
4141
},
4242
"backupPolicy": {
43-
"type": "Continuous"
43+
"type": "Continuous",
44+
"continuousModeProperties": {
45+
"tier": "Continuous30Days"
46+
}
4447
},
4548
"consistencyPolicy": {
4649
"defaultConsistencyLevel": "BoundedStaleness",
@@ -112,6 +115,12 @@
112115
"failoverPriority": 0
113116
}
114117
],
118+
"backupPolicy": {
119+
"type": "Continuous",
120+
"continuousModeProperties": {
121+
"tier": "Continuous30Days"
122+
}
123+
},
115124
"enableFreeTier": false,
116125
"apiProperties": {},
117126
"enableAnalyticalStorage": false,

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-04-15/restorable.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,11 @@
973973
"format": "date-time",
974974
"description": "The time at which the restorable database account has been deleted (ISO-8601 format)."
975975
},
976+
"oldestRestorableTime": {
977+
"type": "string",
978+
"format": "date-time",
979+
"description": "The least recent time at which the database account can be restored to (ISO-8601 format)."
980+
},
976981
"apiType": {
977982
"type": "string",
978983
"readOnly": true,

0 commit comments

Comments
 (0)