Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 855 Bytes

File metadata and controls

30 lines (22 loc) · 855 Bytes
description Automatically generated file. DO NOT MODIFY
// Code snippets are only available for the latest major version. Current major version is $v0.*

// Dependencies
import (
	  "context"
	  msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
	  graphauditlogs "github.com/microsoftgraph/msgraph-beta-sdk-go/auditlogs"
	  //other-imports
)

requestBody := graphauditlogs.NewConfirmCompromisedPostRequestBody()
requestIds := []string {
	"f01c6af6-6683-4a37-a945-0a925501eede",
	"42bf60ac-d0cb-4206-aa5c-101884298f55",
	"f09c8f14-8d8e-42cf-8a7e-732b0594e79b",
}
requestBody.SetRequestIds(requestIds)

// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
graphClient.AuditLogs().SignIns().ConfirmCompromised().Post(context.Background(), requestBody, nil)