Creates a backup job for the organization with the specified ID.
Request
To create a backup job for the organization added to Veeam Backup for Microsoft Office 365, send the POST HTTPS request to the URL of the /Organizations/{ID}/Jobs resource.
HTTPS Request
POST https://<Backup-Office365>:<Port>/v1/Organizations/{ID}/Jobs |
Request Headers
The request header must contain the authorization token for the current logon session.
Request Body
The request body must contain the following properties:
Property | Type | Description |
---|---|---|
Name | string | Specifies the name of the backup job. For example, "name": "Backup Job ABC". |
Description | string | Specifies the description of the backup job. For example, "description": "Critical Mailboxes". |
bool | True: indicates that the backup job will back up all mailboxes of the associated organization. To exclude certain mailboxes from the backup scope, set the ExcludedMailboxes property. False: indicates that the backup job will back up only the selected mailboxes. To add the array of mailboxes to the backup scope, set the SelectedMailboxes property. | |
ExcludedMailboxes | Specifies the array of mailboxes that are excluded from the backup scope. | |
SelectedMailboxes | Specifies the array of mailboxes that are added to the backup scope. | |
SchedulePolicy | Specifies the backup job scheduling options. | |
ProxyId | string | Specifies the ID of the backup proxy where the repository with backups is located. For example, "proxyId": "5a905bb5-9071-433c-9d2f-f805d4da2cf4". |
RepositoryId | string | Specifies the ID of the repository where the mailbox backups will be stored. For example, "repositoryId": "a740fb93-4de8-4de4-977e-765dd092748f". |
IsRun | bool | If set to True, the job will run right after it is created. For example, "IsRun": "true". |
Specifies the array of mailboxes you want to exclude from the backup scope. The following mailbox properties must be defined:
Property | Type | Description |
---|---|---|
Id | string | Specifies the ID of the organization mailbox. For example, "Id": "164db76c-8e1b-49f2-91e1-d978510dec0d" |
string | Specifies the e-mail address of the mailbox. For example, "email": "petep@eastsupport.onmicrosoft.com" | |
Name | string | Specifies the name of the mailbox. For example, "name": "Peter Parker" |
For example:
"allMailboxes": "true", "excludedMailboxes": [ { "id": "ac57ab24-e4b2-4c47-a3da-43fd612323dc", "email": "petep@eastsupport.onmicrosoft.com", "name": "Peter Parker", }, { "id": "1dfcbe30-4b44-4c6f-80f4-bd2b8a0caf8d", "email": "smunez@eastsupport.onmicrosoft.com", "name": "Santiago Munez", }, ...] |
Specifies the array of mailboxes you want to add to the backup scope. The following mailbox properties must be defined:
Property | Type | Description |
---|---|---|
Id | string | Specifies the ID of the organization mailbox. For example, "Id": "164db76c-8e1b-49f2-91e1-d978510dec0d" |
string | Specifies the e-mail address of the mailbox. For example, "email": "petep@eastsupport.onmicrosoft.com" | |
Name | string | Specifies the name of the mailbox. For example, "name": "Peter Parker" |
For example:
"allMailboxes": "false", "selectedMailboxes": [ { "id": "fa89f7b9-42c8-4f55-aa3b-b1dbfb6de9b2", "email": "jsmith@eastsupport.onmicrosoft.com", "name": "John Smith", }, { "id": "cfb59313-3fa0-4585-a7ce-0e6d06f682c4", "email": "etysom@eastsupport.onmicrosoft.com", "name": "Erika Tysom", }, ...] |
Specify the following properties for the backup job schedule:
Property | Type | Description |
---|---|---|
Type | string | Specifies the job schedule type:
For example, "type": "daily". |
DailyType | string | Specifies the days when the backup job will run:
For example, "dailyType": "Sunday". |
DailyTime | UTC | Specifies the time when the job will start. For example, "dailyTime": "08:00:00" |
Periodically | string | Specifies the time interval between the job runs:
For example, "periodicallyEvery": "Hours1". |
BackupWindow | Specifies the job's backup window. A backup window is a time period within which the job must be completed. | |
RetryEnabled | bool | If set to True, indicates that Veeam Backup for Microsoft Office 365 will attempt to restart a backup job if it fails for some reason. For example, "retryEnabled": "true". |
RetryNumber | int | Specifies the number of attempts to run the backup job. For example, "retryNumber": 5. |
RetryWait | int | Specifies the time intervals between the job retry attempts (minutes). For example, "retryWaitInterval": 15. |
For example:
"schedulePolicy": { "type": "Daily", "dailyType": "Sunday", "dailyTime": "08:00:00", "backupWindow": { "backupIntervalsArray": [ true, true, true, ... ], }, "retryEnabled": "true", "retryNumber": 5, "retryWaitInterval": 15 } |
Specify the following property for the job's backup window:
Property | Type | Description |
---|---|---|
BackupIntervalsArray | bool | Specifies an hourly scheme for the backup window. The scheduling scheme consists of 168 boolean elements. These elements can be logically divided into 7 groups by 24. Each group represents a day of the week starting from Sunday. Each element represents a backup hour:
For example, to allow a backup job to run only on Sundays, set the first 24 elements to True. |
For example:
"backupWindow": { "backupIntervalsArray": [ true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false ], } |
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns response code 201 Created.
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 request body message: application/json; charset=utf-8 |
Response Body
In the response body, the server returns a representation of the /Organizations/{ID}/Jobs resource. The resource has the following URL: /Jobs/{ID}.
Example
The example below shows how to create a backup job for the organization added to Veeam Backup for Microsoft Office 365.
Request: POST https://support.east.local:4443/v1/Organizations/b2d9414d-c417-4a94-be3b-b38a3c2e8a7b/Jobs
Request Header: Authorization: Bearer <Access-Token>
Request Body: { "name": "Backup Job ABC", "description": "Critical Mailboxes", "allmailboxes": "false", "selectedMailboxes": [ { "id": "ac57ab24-e4b2-4c47-a3da-43fd612323dc", "email": "petep@eastsupport.onmicrosoft.com", "name": "Peter Parker" }, { "id": "5m7tjl3e-704n-59i1-b491-e80fc5cc6d26", "email": "smunez@eastsupport.onmicrosoft.com", "name": "Santiago Munez" } ], "schedulePolicy": { "type": "Daily", "dailyType": "Sunday", "dailyTime": "08:00:00", "backupWindow": { "backupIntervalsArray": [ true, true, true, ... ], }, "retryEnabled": "true", "retryNumber": 5, "retryWaitInterval": 15 }, "proxyId": "5a905bb5-9071-433c-9d2f-f805d4da2cf4", "repositoryId": "a740fb93-4de8-4de4-977e-765dd092748f", "isRun": "true" }
Response: 201 Created
Response Body: { "id": "b3f0b7ac-c492-4c83-af59-57d224de63a3", "name": "Backup Job ABC", "description": "Critical Mailboxes", "allMailboxes": "false", "lastStatus": "Running", "lastRun": "0001-01-01T00:00:00", "nextRun": "2017-06-13T06:04:24.1650083Z", "isEnabled": "true", "schedulePolicy": { "type": "Daily", "dailyType": "Sunday", "dailyTime": "08:00:00", "backupWindow": { "backupIntervalsArray": [ true, true, true, ... ], "minuteOffset": 0 }, "retryEnabled": "true", "retryNumber": 5, "retryWaitInterval": 15 }, "_links": { "self": { "href": "https://support.east.local:4443/v1/jobs/b3f0b7ac-c492-4c83-af59-57d224de63a3" }, "organization": { "href": "https://support.east.local:4443/v1/organizations/b1407811-4785-4827-aec7-fc999c1031f0" }, "repository": { "href": "https://support.east.local:4443/v1/backuprepositories/a740fb93-4de8-4de4-977e-765dd092748f" }, "proxy": { "href": "https://support.east.local:4443/v1/proxies/5a905bb5-9071-433c-9d2f-f805d4da2cf4" }, "selectedMailboxes": { "href": "https://support.east.local:4443/v1/jobs/b3f0b7ac-c492-4c83-af59-57d224de63a3/selectedmailboxes" }, "jobsessions": { "href": "https://support.east.local:4443/v1/jobs/b3f0b7ac-c492-4c83-af59-57d224de63a3/jobsessions" } } } |
Related Topics