Retrieve Job Information
Get the job-related information (/backup/m365/jobs
navigation property) from Cloud Backup for Microsoft 365. By invoking the /backup/m365/jobs
endpoint, users can gain comprehensive insights and granular access to job reports, enhancing the ability to manage, analyze, and optimize backup operations with precision and efficiency.
Permission
The following permission is required to call this API.
You must register an app through AvePoint Online Services > App registration to authenticate and authorize your access to AvePoint Graph API. For details, refer to Authentication and Authorization.
API | Permission |
---|---|
/backup/m365/jobs |
microsoft365backup.jobInfo.read.all |
Request
This section outlines the HTTP method and endpoint used to retrieve job information. It provides a concise description of the action performed by the API call.
Method | Endpoint | Description |
---|---|---|
GET | /backup/m365/jobs |
Gets the job information of Cloud Backup for Microsoft 365. |
Query Parameters
The API supports several query parameters to refine and customize the data retrieval process. These parameters allow uses to specify pagination, job types, time ranges, and other criteria to filter the results effectively.
Parameter | Description | Type | Required? |
---|---|---|---|
startTime | Sets a start time (UTC time) for the time range. For example, 2024-01-01. | string | No |
finishTime | Sets an end time (UTC time) for the time range. For example, 2024-12-01. | string | No |
jobType | Sets the job types that you want to get. Valid values:
|
enum | No |
objectType | Sets the service type of the jobs to get. Valid values:
|
enum |
No |
jobState | Sets the job status. Valid values:
|
enum | No |
location | This parameter is only available for AOS tenants that support Multi-Geo. If no value is set for this parameter, this method retrieves the unusual activities from all locations in your AOS tenant. To get unusual activities from specific data centers, use the following values:
|
string | No |
pageIndex | Sets the starting number of the page to get the jobs. The default value is 0. |
integer | No |
pageSize | Sets the number of jobs to display on one page. The default value is 10. |
integer | No |
Responses
The API response provides detailed information about the jobs retrieved. Each job in the response includes various attributes that describe its properties and status.
Retrieved result:
Elements | Description | Type |
---|---|---|
totalNumber | The total count of the retrieved jobs | integer |
jobs | A list of jobs | list |
nextLink | Reference to the next page of results | string |
Job summary:
Elements | Description | Type |
---|---|---|
id | Job ID | string |
state | Job status | string |
startTime | Job started time | string |
finishTime | Job finished time | string |
duration | Duration in hours | string |
backupDetails | Job details. | module |
jobErrors | A list of job errors | list |
Backup details:
Elements | Description | Type |
---|---|---|
totalNumber | Total count of objects | long |
failedNumber | Number of objects with errors | long |
successfulNumber | Number of successful objects | long |
skippedNumber | Number of skipped objects | long |
Job errors:
Elements | Description | Type |
---|---|---|
isErrorCode | Whether this error has an error code associated. | boolean |
value | error message | string |
url | error code URL | string |
number | Occurrences of the error in this job. | long |
Request Sample
To use this API, send a GET request to the specified endpoint, including necessary parameters as defined in the references. This will return the relevant job details in a structured format, enabling easy integration with other systems or applications. The following request is an API call to the Cloud Backup for Microsoft 365 environment in the US - East region.
https://graph-us.avepointonlineservices.com/backup/m365/jobs?StartTime=2024-10-24&FinishTime=2024-12-25&ObjectType=0&PageSize=50&PageIndex=1&Location=NAM
Response Sample
If successful, this method returns a 200 OK response code and a collection of jobs in the response body.
For details on the HTTP status code, refer to HttpStatusCode.
{
"totalCount": 2, //Total number of the retrieved jobs
"jobs": [
{
"id": FB20241015105312327583, //Job ID
"state": Finished, // Job status
"startTime": "2024-12-02T07:52:25Z", // The start time of the job in ISO 8601 format. UTC time.
"finishTime": "2024-12-02T07:53:04Z", // The finished time of the job in ISO 8601 format. UTC time.
"duration": "0.011", // Job duration in hours
"backupDetails": {
"totalCount": 16, // Total number of objects involved
"failedCount": 0, // Number of objects with errors
"successfulCount": 14, // Number of successful objects
"skippedCount": 2, // Number of skipped objects
},
"jobErrors": []
},
{
"id": EFB20241015105312828443, //Job ID
"state": Finished, // Job status
"startTime": "2024-12-02T01:33:22Z", // UTC timestamp for the start time of the job
"finishTime": "2024-12-02T01:34:10Z", // UTC timestamp for the finished time of the job
"duration": "0.014", // Job duration
"backupDetails": {
"totalCount": 438, // Total number of objects involved
"failedCount": 0, // Number of objects with errors
"successfulCount": 438, // Number of successful objects
"skippedCount": 0, // Number of skipped objects
},
"jobErrors": []
}
],
"nextLink": "" // no left results.
}