POST https://graph.microsoft.com/v1.0/deviceManagement/reports/getDeviceNonComplianceReport
Content-type: application/json
Content-length: 278
{
"name": "Name value",
"select": [
"Select value"
],
"search": "Search value",
"groupBy": [
"Group By value"
],
"orderBy": [
"Order By value"
],
"skip": 4,
"top": 3,
"sessionId": "Session Id value",
"filter": "Filter value"
}
// 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);
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
mgc device-management reports get-device-non-compliance-report post --body '{\
"name": "Name value",\
"select": [\
"Select value"\
],\
"search": "Search value",\
"groupBy": [\
"Group By value"\
],\
"orderBy": [\
"Order By value"\
],\
"skip": 4,\
"top": 3,\
"sessionId": "Session Id value",\
"filter": "Filter value"\
}\
'
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
// 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.NewGetDeviceNonComplianceReportPostRequestBody()
name := "Name value"
requestBody.SetName(&name)
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)
sessionId := "Session Id value"
requestBody.SetSessionId(&sessionId)
filter := "Filter value"
requestBody.SetFilter(&filter)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
graphClient.DeviceManagement().Reports().GetDeviceNonComplianceReport().Post(context.Background(), requestBody, nil)
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
// 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);
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
const options = {
authProvider,
};
const client = Client.init(options);
const stream = {
name: 'Name value',
select: [
'Select value'
],
search: 'Search value',
groupBy: [
'Group By value'
],
orderBy: [
'Order By value'
],
skip: 4,
top: 3,
sessionId: 'Session Id value',
filter: 'Filter value'
};
await client.api('/deviceManagement/reports/getDeviceNonComplianceReport')
.post(stream);
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\DeviceManagement\Reports\GetDeviceNonComplianceReport\GetDeviceNonComplianceReportPostRequestBody;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new GetDeviceNonComplianceReportPostRequestBody();
$requestBody->setName('Name value');
$requestBody->setSelect(['Select value', ]);
$requestBody->setSearch('Search value');
$requestBody->setGroupBy(['Group By value', ]);
$requestBody->setOrderBy(['Order By value', ]);
$requestBody->setSkip(4);
$requestBody->setTop(3);
$requestBody->setSessionId('Session Id value');
$requestBody->setFilter('Filter value');
$graphServiceClient->deviceManagement()->reports()->getDeviceNonComplianceReport()->post($requestBody)->wait();
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
Import-Module Microsoft.Graph.DeviceManagement.Actions
$params = @{
name = "Name value"
select = @(
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
sessionId = "Session Id value"
filter = "Filter value"
}
Get-MgDeviceManagementReportDeviceNonComplianceReport -BodyParameter $params
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
from msgraph import GraphServiceClient
from msgraph.generated.devicemanagement.reports.get_device_non_compliance_report.get_device_non_compliance_report_post_request_body import GetDeviceNonComplianceReportPostRequestBody
graph_client = GraphServiceClient(credentials, scopes)
request_body = GetDeviceNonComplianceReportPostRequestBody(
name = "Name value",
select = [
"Select value",
],
search = "Search value",
group_by = [
"Group By value",
],
order_by = [
"Order By value",
],
skip = 4,
top = 3,
session_id = "Session Id value",
filter = "Filter value",
)
await graph_client.device_management.reports.get_device_non_compliance_report.post(request_body)
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
以下は、応答の例です。 注: 簡潔にするために、ここに示す応答オブジェクトは切り詰められている場合があります。 実際の呼び出しではすべてのプロパティが返されます。