Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4298,6 +4298,45 @@
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/backupStorageRedundancies": {
"get": {
"operationId": "BackupStorageRedundancies_GetByLocation",
"x-ms-examples": {
"CosmosDBBackupStorageRedundanciesList": {
"$ref": "./examples/CosmosDBBackupStorageRedundanciesList.json"
}
},
"description": "Lists all the available backup redundancy types in a region.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/locationParameter"
}
],
"responses": {
"200": {
"description": "The operation completed successfully.",
"schema": {
"$ref": "#/definitions/BackupStorageRedundanciesResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": null
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -7787,6 +7826,11 @@
"format": "int32",
"minimum": 0,
"description": "An integer representing the time (in hours) that each backup is retained"
},
"backupStorageRedundancy": {
"description": "Enum to indicate type of backup residency",
"type": "string",
"$ref": "#/definitions/BackupStorageRedundancy"
}
}
},
Expand Down Expand Up @@ -7898,6 +7942,48 @@
"description": "The time at which the regional restorable database account has been deleted (ISO-8601 format)."
}
}
},
"BackupStorageRedundanciesResult": {
"description": "Available backup storage redundancy types in selected location.",
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The selected location."
},
"properties": {
"type": "object",
"description": "Available backup storage redundancy types.",
"$ref": "#/definitions/BackupStorageRedundancyProperties"
}
}
},
"BackupStorageRedundancyProperties": {
"description": "Available backup storage redundancy types.",
"type": "object",
"properties": {
"backupStorageRedundancies": {
"readOnly": true,
"type": "array",
"items": {
"$ref": "#/definitions/BackupStorageRedundancy"
},
"description": "Available backup storage types in list."
}
}
},
"BackupStorageRedundancy": {
"description": "Enum to indicate type of backup storage redundancy.",
"type": "string",
"enum": [
"Geo",
"Local",
"Zone"
],
"x-ms-enum": {
"name": "BackupStorageRedundancy",
"modelAsString": true
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"api-version": "2020-06-01-preview",
"subscriptionId": "subid",
"location": "West US"
},
"responses": {
"200": {
"body": {
"location": "West US",
"properties": {
"backupStorageRedundancies": [
"Local",
"Geo"
]
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
"type": "Periodic",
"periodicModeProperties": {
"backupIntervalInMinutes": 240,
"backupRetentionIntervalInHours": 720
"backupRetentionIntervalInHours": 720,
"backupStorageRedundancy": "Geo"
}
},
"cors": [
Expand Down Expand Up @@ -176,7 +177,8 @@
"type": "Periodic",
"periodicModeProperties": {
"backupIntervalInMinutes": 240,
"backupRetentionIntervalInHours": 720
"backupRetentionIntervalInHours": 720,
"backupStorageRedundancy": "Geo"
}
},
"cors": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
"type": "Periodic",
"periodicModeProperties": {
"backupIntervalInMinutes": 240,
"backupRetentionIntervalInHours": 720
"backupRetentionIntervalInHours": 720,
"backupStorageRedundancy": "Geo"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@
"type": "Periodic",
"periodicModeProperties": {
"backupIntervalInMinutes": 240,
"backupRetentionIntervalInHours": 720
"backupRetentionIntervalInHours": 720,
"backupStorageRedundancy": "Geo"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
"type": "Periodic",
"periodicModeProperties": {
"backupIntervalInMinutes": 240,
"backupRetentionIntervalInHours": 720
"backupRetentionIntervalInHours": 720,
"backupStorageRedundancy": "Geo"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
"type": "Periodic",
"periodicModeProperties": {
"backupIntervalInMinutes": 240,
"backupRetentionIntervalInHours": 720
"backupRetentionIntervalInHours": 720,
"backupStorageRedundancy": "Geo"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"type": "Periodic",
"periodicModeProperties": {
"backupIntervalInMinutes": 240,
"backupRetentionIntervalInHours": 720
"backupRetentionIntervalInHours": 720,
"backupStorageRedundancy": "Geo"
}
}
}
Expand Down Expand Up @@ -151,7 +152,8 @@
"type": "Periodic",
"periodicModeProperties": {
"backupIntervalInMinutes": 240,
"backupRetentionIntervalInHours": 720
"backupRetentionIntervalInHours": 720,
"backupStorageRedundancy": "Geo"
}
}
},
Expand Down