Format of the exported report. Possible values are: csv, pdf, json, unknownFutureValue.
snapshotId
String
A snapshot is an identifiable subset of the dataset represented by the ReportName. A sessionId or CachedReportConfiguration id can be used here. If a sessionId is specified, Filter, Select, and OrderBy are applied to the data represented by the sessionId. Filter, Select, and OrderBy cannot be specified together with a CachedReportConfiguration id.
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new DeviceManagementExportJob
{
OdataType = "#microsoft.graph.deviceManagementExportJob",
ReportName = "Report Name value",
Filter = "Filter value",
Select = new List<string>
{
"Select value",
},
Format = DeviceManagementReportFileFormat.Pdf,
SnapshotId = "Snapshot Id value",
LocalizationType = DeviceManagementExportJobLocalizationType.ReplaceLocalizableValues,
Status = DeviceManagementReportStatus.NotStarted,
Url = "Url value",
RequestDateTime = DateTimeOffset.Parse("2017-01-01T00:03:07.1589002-08:00"),
ExpirationDateTime = DateTimeOffset.Parse("2016-12-31T23:57:57.2481234-08:00"),
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceManagement.Reports.ExportJobs["{deviceManagementExportJob-id}"].PatchAsync(requestBody);
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
DeviceManagementExportJob deviceManagementExportJob = new DeviceManagementExportJob();
deviceManagementExportJob.setOdataType("#microsoft.graph.deviceManagementExportJob");
deviceManagementExportJob.setReportName("Report Name value");
deviceManagementExportJob.setFilter("Filter value");
LinkedList<String> select = new LinkedList<String>();
select.add("Select value");
deviceManagementExportJob.setSelect(select);
deviceManagementExportJob.setFormat(DeviceManagementReportFileFormat.Pdf);
deviceManagementExportJob.setSnapshotId("Snapshot Id value");
deviceManagementExportJob.setLocalizationType(DeviceManagementExportJobLocalizationType.ReplaceLocalizableValues);
deviceManagementExportJob.setStatus(DeviceManagementReportStatus.NotStarted);
deviceManagementExportJob.setUrl("Url value");
OffsetDateTime requestDateTime = OffsetDateTime.parse("2017-01-01T00:03:07.1589002-08:00");
deviceManagementExportJob.setRequestDateTime(requestDateTime);
OffsetDateTime expirationDateTime = OffsetDateTime.parse("2016-12-31T23:57:57.2481234-08:00");
deviceManagementExportJob.setExpirationDateTime(expirationDateTime);
DeviceManagementExportJob result = graphClient.deviceManagement().reports().exportJobs().byDeviceManagementExportJobId("{deviceManagementExportJob-id}").patch(deviceManagementExportJob);
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.device_management_export_job import DeviceManagementExportJob
from msgraph.generated.models.device_management_report_file_format import DeviceManagementReportFileFormat
from msgraph.generated.models.device_management_export_job_localization_type import DeviceManagementExportJobLocalizationType
from msgraph.generated.models.device_management_report_status import DeviceManagementReportStatus
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = DeviceManagementExportJob(
odata_type = "#microsoft.graph.deviceManagementExportJob",
report_name = "Report Name value",
filter = "Filter value",
select = [
"Select value",
],
format = DeviceManagementReportFileFormat.Pdf,
snapshot_id = "Snapshot Id value",
localization_type = DeviceManagementExportJobLocalizationType.ReplaceLocalizableValues,
status = DeviceManagementReportStatus.NotStarted,
url = "Url value",
request_date_time = "2017-01-01T00:03:07.1589002-08:00",
expiration_date_time = "2016-12-31T23:57:57.2481234-08:00",
)
result = await graph_client.device_management.reports.export_jobs.by_device_management_export_job_id('deviceManagementExportJob-id').patch(request_body)
Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.