Create cloudPcExportJob

Namespace: microsoft.graph


APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Create a new cloudPcExportJob resource to initiate downloading the entire or specified portion of a report.

Use the GET cloudPcExportJob operation to verify the exportJobStatus property of the cloudPcExportJob resource. When the property result is completed, the report has finished downloading to the location specified by the exportUrl property.


One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) CloudPC.Read.All, CloudPC.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application CloudPC.Read.All, CloudPC.ReadWrite.All

HTTP request

POST /deviceManagement/virtualEndpoint/reports/exportJobs

Request headers

Name Description
Authorization Bearer {token}. Required.
Content-Type application/json. Required.

Request body

In the request body, supply a JSON representation of the cloudPcExportJob object.

You can specify the following properties when creating a cloudPcExportJob.

Property Type Description
filter String The filter applied on the report. Optional.
format String The format of the exported report. Optional.
reportName cloudPcReportName The report name. The possible values are: remoteConnectionHistoricalReports, dailyAggregatedRemoteConnectionReports, totalAggregatedRemoteConnectionReports, sharedUseLicenseUsageReport, sharedUseLicenseUsageRealTimeReport, unknownFutureValue, noLicenseAvailableConnectivityFailureReport, inaccessibleCloudPcReports. Optional.
select String collection The selected columns of the report. Optional.


If successful, this method returns a 201 Created response code and a cloudPcExportJob object in the response body.



The following is an example of a request.

Content-Type: application/json
Content-length: 315

  "reportName": "TotalAggregatedRemoteConnectionReports",
  "select": [


The following is an example of the response

Note: The response object shown here might be shortened for readability.

HTTP/1.1 201 Created
Content-Type: application/json

    "@odata.context": "$metadata#deviceManagement/virtualEndpoint/reports/exportJobs/$entity",
    "id": "TotalAggregatedRemoteConnectionReports__d39979c9-a0a2-4916-a158-1b984742ffff",
    "reportName": "totalAggregatedRemoteConnectionReports",
    "filter": null,
    "select": [
    "format": null,
    "expirationDateTime": "0001-01-01T00:00:00Z",
    "requestDateTime": "2022-09-16T12:00:06.5137388Z",
    "exportJobStatus": "inProgress",
    "exportUrl": null