Home > Use Public APIs

Export to PDF

Use Public APIs

NOTE

We are upgrading to a new API for better user experience, stability, and easier integration.* Visit our documentation page **for more details.

Cloud Backup for Microsoft 365 provides the /cloudbackup/jobs and /cloudbackup/licenseconsumption API endpoints. These interfaces empower users to seamlessly retrieve job-related information and monitor subscription consumption through standardized HTTP GET requests. By leveraging these APIs, users gain comprehensive insights and granular access to job reports and subscription consumption metrics, thereby enhancing the ability to manage, analyze, and optimize backup operations with precision and efficiency.

Permission

NOTE

We are upgrading to a new API for better user experience, stability, and easier integration.* Visit our documentation page **for more details.

The following permissions are required to call this API.

NOTE

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 Configure App Registrations.

APIPermission required
/cloudbackup/jobsmicrosoft365backup.jobInfo.read.all
/cloudbackup/licenseconsumptionmicrosoft365backup.subscriptionInfo.read.all

API Method

NOTE

We are upgrading to a new API for better user experience, stability, and easier integration.* Visit our documentation page **for more details.

MethodPathDescription
GET/cloudbackup/jobsGets the job information of Cloud Backup for Microsoft 365.
GET/cloudbackup/licenseconsumptionGets the subscription consumption information of Cloud Backup for Microsoft 365.

Path Details

NOTE

We are upgrading to a new API for better user experience, stability, and easier integration.* Visit our documentation page **for more details.

[GET]/cloudbackup/jobs

Gets the job information of Cloud Backup for Microsoft 365.

Query Parameters

ParameterDescriptionType
StartTimeSets a start time (UTC time) for the time range.long
FinishTimeSets an end time (UTC time) for the time range.long
JobTypeSets the job types that you want to get.Defined by #/components/schemas/BackupJobType.enumValid values: 0 (for All)1 (for Backup)2 (for Restore)3 (for Export)4 (for Delete)5 (for Retention)
ObjectTypeSets the service type of the jobs to get.Defined by #/components/schemas/CloudBackupJobObjectType.enumValid values: 0 (for All) 1 (for Exchange Online) 2 (for SharePoint Online) 3 (for OneDrive)4 (for Microsoft 365 Groups)5 (for Project Online)6 (for Public Folder)7 (Teams) 8 (Viva Engage)9 (Teams Chat)10 (Power BI) 11 (Power Automate) 12 (Power Apps)
JobStateSets the job status.Defined by #/components/schemas/CloudBackupJobStateenumValid values:0 (for All)1 (for In Progress)2 (for Finished)3 (for Failed)4 (for Finished with Exception)5 (for Partially Finished)
PageIndexSets the starting number of the page to get the jobs. The default value is 0.int
PageSizeSets the number of jobs to display on one page. The default value is 10.int

Responses

If the request has been successfully processed, a 200 OK response will be returned, along with the requested information displayed in the response body.

Retrieved result:

ResponseDescriptionType
TotalCountThe total count of the retrieved jobsint
JobsA list of jobslist
NextLinkReference to the next page of resultsstring

Job summary:

ResponseDescriptionType
IdJob IDstring
StateJob statusString
StartTimeJob started timelong
FinishTimeJob finished timelong
DurationDurationlong
BackupDetailsJob detailsint

Backup details:

ResponseDescriptionType
TotalCountTotal countlong
FailedCountNumber of failed objectslong
SuccessfulCountNumber of successful objectslong
SkippedCountNumber of skipped objectslong

Job errors:

ResponseDescriptionType
IsErrorCodeWhether this error has an error code associatedboolean
ValueError messagestring
UrlError code URLstring
NumberOccurrences of the error in this joblong

Example (application/json):

Request

{
  StartTime?: long
  FinishTime?: long.
  JobType?: #/components/schemas/BackupJobType
  ObjectType?: #/components/schemas/CloudBackupJobObjectType
  JobState?: #/components/schemas/CloudBackupJobState
  PageIndex?: int
  PageSize?: int
}

Response

{
  TotalCount?: int
  Jobs:[
  {  
    Id?: string 
    State?: string
    StartTime?: long
    FinishTime?: long
    Duration?: long
    BackupDetails?: 
    {
      TotalCount?: long
      FailedCount?: long
      SuccessfulCount?: long
      SkippedCount?: long
    }

    JobErrors: [

                {

                    IsErrorCode: boolean,

                    Value: string

                    Url: string

                    Number: long

                }

               ]

  }

  ]

}

[GET]/cloudbackup/licenseconsumption

Gets the subscription consumption information of Cloud Backup for Microsoft 365.

Responses

If the request has been successfully processed, a 200 OK response will be returned along with the requested information displayed in the response body.

ResponseDescriptionType
OutOfPolicyTimeThe UTC that the license got out of policy.long
PurchasedUserSeatsPurchased user seatsint
AssignedUserSeatsAssigned user seatsint
PurchasedStorageSizePurchased storage sizeint
ProtectedSizeProtected sizeint

Example (application/json)

Response

{
  OutOfPolicyTime?: long
  PurchasedUserSeats?: int
  AssignedUserSeats?: int
  PurchasedStorageSize?: int
  ProtectedSize?: int
}