Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 1.24 KB

intune-reporting-devicemanagementreports-getcompliancesettingnoncompliancereport-getcompliancesettingnoncompliancereport-action-go-snippets.md

File metadata and controls

48 lines (40 loc) · 1.24 KB
description
Automatically generated file. DO NOT MODIFY
// 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.NewGetComplianceSettingNonComplianceReportPostRequestBody()
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().GetComplianceSettingNonComplianceReport().Post(context.Background(), requestBody, nil)