Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,51 @@
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies": {
"get": {
"tags": [
"BackupShortTermRetentionPolicies"
],
"description": "Gets a database's short term retention policy.",
"operationId": "BackupShortTermRetentionPolicies_ListByDatabase",
"parameters": [
{
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
},
{
"$ref": "#/parameters/ServerNameParameter"
},
{
"$ref": "#/parameters/DatabaseNameParameter"
},
{
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Successfully retrieved the policy.",
"schema": {
"$ref": "#/definitions/BackupShortTermRetentionPolicyListResult"
}
},
"default": {
"description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found."
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"Get the short term retention policy for the database.": {
"$ref": "./examples/ListShortTermRetentionPoliciesByDatabase.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}": {
"get": {
"tags": [
Expand Down Expand Up @@ -205,78 +250,9 @@
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies": {
"get": {
"tags": [
"BackupShortTermRetentionPolicies"
],
"description": "Gets a database's short term retention policy.",
"operationId": "BackupShortTermRetentionPolicies_ListByDatabase",
"parameters": [
{
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
},
{
"$ref": "#/parameters/ServerNameParameter"
},
{
"$ref": "#/parameters/DatabaseNameParameter"
},
{
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Successfully retrieved the policy.",
"schema": {
"$ref": "#/definitions/BackupShortTermRetentionPolicyListResult"
}
},
"default": {
"description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found."
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"Get the short term retention policy for the database.": {
"$ref": "./examples/ListShortTermRetentionPoliciesByDatabase.json"
}
}
}
}
},
"definitions": {
"BackupShortTermRetentionPolicyProperties": {
"description": "Properties of a short term retention policy",
"type": "object",
"properties": {
"retentionDays": {
"format": "int32",
"description": "The backup retention period in days. This is how many days Point-in-Time Restore will be supported.",
"type": "integer"
},
"diffBackupIntervalInHours": {
"format": "int32",
"description": "The differential backup interval in hours. This is how many interval hours between each differential backup will be supported. This is only applicable to live databases but not dropped databases.",
"enum": [
"12",
"24"
],
"type": "integer",
"x-ms-enum": {
"name": "DiffBackupIntervalInHours",
"modelAsString": true
}
}
}
},
"BackupShortTermRetentionPolicy": {
"description": "A short term retention policy.",
"type": "object",
Expand Down Expand Up @@ -311,21 +287,45 @@
"readOnly": true
}
}
},
"BackupShortTermRetentionPolicyProperties": {
"description": "Properties of a short term retention policy",
"type": "object",
"properties": {
"retentionDays": {
"format": "int32",
"description": "The backup retention period in days. This is how many days Point-in-Time Restore will be supported.",
"type": "integer"
},
"diffBackupIntervalInHours": {
"format": "int32",
"description": "The differential backup interval in hours. This is how many interval hours between each differential backup will be supported. This is only applicable to live databases but not dropped databases.",
"enum": [
"12",
"24"
],
"type": "integer",
"x-ms-enum": {
"name": "DiffBackupIntervalInHours",
"modelAsString": true
}
}
}
}
},
"parameters": {
"ServerNameParameter": {
"name": "serverName",
"DatabaseNameParameter": {
"name": "databaseName",
"in": "path",
"description": "The name of the server.",
"description": "The name of the database.",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
},
"DatabaseNameParameter": {
"name": "databaseName",
"ServerNameParameter": {
"name": "serverName",
"in": "path",
"description": "The name of the database.",
"description": "The name of the server.",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
Expand Down
Loading