// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.DeviceManagement.Reports.GetCachedReport;
var requestBody = new GetCachedReportPostRequestBody
{
Id = "Id 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,
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.DeviceManagement.Reports.GetCachedReport.PostAsync(requestBody);
// Code snippets are only available for the latest major version. Current major version is $v1.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go"
graphdevicemanagement "github.com/microsoftgraph/msgraph-sdk-go/devicemanagement"
//other-imports
)
requestBody := graphdevicemanagement.NewGetCachedReportPostRequestBody()
id := "Id value"
requestBody.SetId(&id)
select := []string {
"Select value",
}
requestBody.SetSelect(select)
search := "Search value"
requestBody.SetSearch(&search)
groupBy := []string {
"Group By value",
}
requestBody.SetGroupBy(groupBy)
orderBy := []string {
"Order By value",
}
requestBody.SetOrderBy(orderBy)
skip := int32(4)
requestBody.SetSkip(&skip)
top := int32(3)
requestBody.SetTop(&top)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
graphClient.DeviceManagement().Reports().GetCachedReport().Post(context.Background(), requestBody, nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
com.microsoft.graph.devicemanagement.reports.getcachedreport.GetCachedReportPostRequestBody getCachedReportPostRequestBody = new com.microsoft.graph.devicemanagement.reports.getcachedreport.GetCachedReportPostRequestBody();
getCachedReportPostRequestBody.setId("Id value");
LinkedList<String> select = new LinkedList<String>();
select.add("Select value");
getCachedReportPostRequestBody.setSelect(select);
getCachedReportPostRequestBody.setSearch("Search value");
LinkedList<String> groupBy = new LinkedList<String>();
groupBy.add("Group By value");
getCachedReportPostRequestBody.setGroupBy(groupBy);
LinkedList<String> orderBy = new LinkedList<String>();
orderBy.add("Order By value");
getCachedReportPostRequestBody.setOrderBy(orderBy);
getCachedReportPostRequestBody.setSkip(4);
getCachedReportPostRequestBody.setTop(3);
graphClient.deviceManagement().reports().getCachedReport().post(getCachedReportPostRequestBody);
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.devicemanagement.reports.get_cached_report.get_cached_report_post_request_body import GetCachedReportPostRequestBody
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = GetCachedReportPostRequestBody(
id = "Id value",
select = [
"Select value",
],
search = "Search value",
group_by = [
"Group By value",
],
order_by = [
"Order By value",
],
skip = 4,
top = 3,
)
await graph_client.device_management.reports.get_cached_report.post(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.