// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.DeviceManagement.Reports.GetDeviceNonComplianceReport;
var requestBody = new GetDeviceNonComplianceReportPostRequestBody
{
Name = "Name value",
Select = new List<string>
{
"Select value",
},
Search = "Search value",
GroupBy = new List<string>
{
"Group By value",
},
OrderBy = new List<string>
{
"Order By value",
},
Skip = 4,
Top = 3,
SessionId = "Session Id value",
Filter = "Filter value",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.DeviceManagement.Reports.GetDeviceNonComplianceReport.PostAsync(requestBody);
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
com.microsoft.graph.devicemanagement.reports.getdevicenoncompliancereport.GetDeviceNonComplianceReportPostRequestBody getDeviceNonComplianceReportPostRequestBody = new com.microsoft.graph.devicemanagement.reports.getdevicenoncompliancereport.GetDeviceNonComplianceReportPostRequestBody();
getDeviceNonComplianceReportPostRequestBody.setName("Name value");
LinkedList<String> select = new LinkedList<String>();
select.add("Select value");
getDeviceNonComplianceReportPostRequestBody.setSelect(select);
getDeviceNonComplianceReportPostRequestBody.setSearch("Search value");
LinkedList<String> groupBy = new LinkedList<String>();
groupBy.add("Group By value");
getDeviceNonComplianceReportPostRequestBody.setGroupBy(groupBy);
LinkedList<String> orderBy = new LinkedList<String>();
orderBy.add("Order By value");
getDeviceNonComplianceReportPostRequestBody.setOrderBy(orderBy);
getDeviceNonComplianceReportPostRequestBody.setSkip(4);
getDeviceNonComplianceReportPostRequestBody.setTop(3);
getDeviceNonComplianceReportPostRequestBody.setSessionId("Session Id value");
getDeviceNonComplianceReportPostRequestBody.setFilter("Filter value");
graphClient.deviceManagement().reports().getDeviceNonComplianceReport().post(getDeviceNonComplianceReportPostRequestBody);
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.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback.