Gets Job Information

Use the POST api/public/jobreport API to retrieve the backup job information.

ElementDescriptionTypeRequired
StartTimeSets a start time (UTC time format) for the time range.longYes
FinishTimeSets an end time (UTC time format) for the time range.longYes
JobTypeSets the job types that you want to get.EnumValid values:1 (for Azure VM Backup)128 (for Microsoft Entra ID Backup)1024 (for Azure Storage Backup)20003 (for Admin Portal Settings Backup)20009 (for Amazon EC2 Backup)20012,20016 (for Azure SQL Backup)20019 (for Azure AD B2C Backup)Yes
ServiceTypeSets the service type of the jobs to get.EnumValid values:1 (for Azure VM)2 (for Microsoft Entra ID)4 (for Azure Storage)64 (for Admin Portal Settings)256 (for Amazon EC2)512 (for Azure SQL)4096 (for Azure AD B2C)Yes
SearchTextSearches by job ID or description.stringNo
PageNumberSets the starting number of the page to get the jobs. The default value is 0.intYes
PageSizeSets the number of jobs to display on one page. The default value is 10.intYes

Example

var apiRequestUrl= "{API URL}/api/public/jobreport";

var request = "{"SearchText":"","ServiceType":0,"JobType":0,"Pagination":{"PageNumber":0,"PageSize":0},"StartTime":0,"FinishTime":0}"

var requestBearerToken = "{Request Token}";

using (var client = new HttpClient())

{

client.DefaultRequestHeaders.Add("Authorization", "Bearer" + requestBearerToken); var response = client.PostAsync(apiRequestUrl, new StringContent(request, Encoding.UTF8, "application/json")).Result; if (response.IsSuccessStatusCode) { var result = response.Content.ReadAsStringAsync().Result; }

}

On this page