Editing Auto-Backup Settings
This section explains how to edit auto-backup settings.
Request
PUT https://<hostname>/api/v1/settings/autoBackup |
Request Headers
The request header must contain an authorization token of the current session.
Request Parameters
None.
Request Body
Request Body for Daily at this time Option
Property | Type | Description |
|---|---|---|
generationsToSave | integer | Sets the number of the snapshots to keep. |
isEnabled | boolean | Defines if the auto-backup functionality is enabled. |
schedule | Contains the Schedule object. | |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
Schedule Object for Daily at this time Option
Property | Type | Description |
|---|---|---|
id | integer | Sets the identification number of the assigned schedule. |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
frequencyType | string | Sets the frequency of how often an auto-backup must be performed. Possible values:
|
dailyTime | string | Sets at what time an auto-backup must be performed. |
dailyType | string | Sets on which day an auto-backup must be performed. Possible values:
|
Example of Request Body for Daily at this time Option
Request: GET https://abc.ukwest.cloudapp.azure.com/api/v1/settings/autoBackup
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Request Body: { "generationsToSave": 7, "isEnabled": true, "schedule": { "id": 1, "_links": {}, "frequencyType": "Daily", "dailyTime": "20:00:00", "dailyType": "Everyday" }, "_links": {"self": {"href": "https://abc.ukwest.cloudapp.azure.com/api/v1/settings/autoBackup"}} } |
Request Body for Monthly at this time Option
Property | Type | Description |
|---|---|---|
generationsToSave | integer | Sets the number of the snapshots to keep. |
isEnabled | boolean | Sets if the auto-backup functionality is enabled. |
schedule | Contains the Schedule object. | |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
Schedule Object for Monthly at this time Option
Property | Type | Description |
|---|---|---|
id | integer | Sets the identification number of the assigned schedule. |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
frequencyType | string | Sets the frequency of how often an auto-backup must be performed. Possible values:
|
monthlyTime | string | Shows at what time an auto-backup must be performed. |
monthlyType | string | Sets when to perform an auto-backup. Possible values:
|
monthlyDayOfWeek | string | Sets the day on which an auto-backup session must be initiated. |
selectedMonths | string | Sets on which months to create an auto-backup. |
Example of Request Body for Monthly at this time Option
Request: GET https://abc.ukwest.cloudapp.azure.com/api/v1/settings/autoBackup
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Request Body: { "generationsToSave": 7, "isEnabled": true, "schedule": { "id": 1, "_links": {}, "frequencyType": "Monthly", "monthlyTime": "20:00:00", "monthlyType": "First", "monthlyDayOfWeek": "Monday", "selectedMonths": [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ] }, "_links": {"self": {"href": "https://abc.ukwest.cloudapp.azure.com/api/v1/settings/autoBackup"}} } |
Request Body for Periodically every Option
Property | Type | Description |
|---|---|---|
generationsToSave | integer | Sets the number of the snapshots to keep. |
isEnabled | boolean | Sets if the auto-backup functionality is enabled. |
schedule | Contains the Schedule object. | |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
Schedule Object for Periodically every Option
Property | Type | Description |
|---|---|---|
id | integer | Sets the identification number of the assigned schedule. |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
frequencyType | string | Sets the frequency of how often an auto-backup must be performed. Possible values:
|
periodicallyType | string | Sets the unit for periodic backups. Possible values:
|
interval | string | Sets the interval for the specified unit. |
periodicalScheduleWindow | string | Sets the window with allowed and prohibited hours. |
minuteOffset | integer | Sets the offset. |
Example of Request Body for Periodically every Option
Request: GET https://abc.ukwest.cloudapp.azure.com/api/v1/settings/autoBackup
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Request Body: { "generationsToSave": 7, "isEnabled": true, "schedule": { "id": 1, "_links": {}, "frequencyType": "Periodically", "periodicallyType": "Hours", "interval": 1, "periodicalScheduleWindow": { "window": { "Sunday": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 0 ], "Monday": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ], "Tuesday": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ], "Wednesday": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ], "Thursday": [ 0, 1, 2, 3, 4, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ], "Friday": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ], "Saturday": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ] }, "minuteOffset": 0 } }, "_links": {"self": {"href": "https://abc.ukwest.cloudapp.azure.com/api/v1/settings/autoBackup"}} } |
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 200 (OK).
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
Header | Description |
Content-length | The length of the response body. |
Content-type | The media type and syntax of the response body message: application/json; charset=utf-8 |
Request Body
Depends on the specified schedule type. For more information, see Getting Auto-Backup Settings.