For {project}, either Compute Engine project-number or project-id can be provided. For {instance}, either Compute Engine VM instance-id or instance-name can be provided.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-28 UTC."],[[["\u003cp\u003eThis page details how to retrieve OS policies compliance data for a specific Compute Engine VM instance using the \u003ccode\u003eGetInstanceOSPoliciesCompliance\u003c/code\u003e method, which is now deprecated in favor of \u003ccode\u003eGetOSPolicyAssignmentReport\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses a \u003ccode\u003eGET\u003c/code\u003e method targeting a specific resource using the provided URL which follows gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e path parameter is mandatory, which is a string formatted as \u003ccode\u003eprojects/{project}/locations/{location}/instanceOSPoliciesCompliances/{instance}\u003c/code\u003e where project and instance identifiers can be number or id/name respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe request body for this operation must be empty, with the response body returning an instance of \u003ccode\u003eInstanceOSPoliciesCompliance\u003c/code\u003e if the operation is successful.\u003c/p\u003e\n"],["\u003cp\u003eTo use this method the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope is required for authorization.\u003c/p\u003e\n"]]],[],null,[]]