public sealed class GetOSPolicyAssignmentReportRequest : IMessage<GetOSPolicyAssignmentReportRequest>, IEquatable<GetOSPolicyAssignmentReportRequest>, IDeepCloneable<GetOSPolicyAssignmentReportRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud OS Config v1 API class GetOSPolicyAssignmentReportRequest.
Get a report of the OS policy assignment for a VM instance.
For {project}, either project-number or project-id can be provided.
For {instance_id}, either Compute Engine instance-id or instance-name
can be provided.
For {assignment_id}, the OSPolicyAssignment id must be provided.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-12 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eGetOSPolicyAssignmentReportRequest\u003c/code\u003e class is 2.4.0, which is part of the Google Cloud OS Config v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class is used to get a report of the OS policy assignment for a specific VM instance.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetOSPolicyAssignmentReportRequest\u003c/code\u003e class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has a constructor that accepts another \u003ccode\u003eGetOSPolicyAssignmentReportRequest\u003c/code\u003e as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property is required and represents the API resource name for the OS policy assignment report, which should follow the specified format including project, location, instance, and assignment details.\u003c/p\u003e\n"]]],[],null,["# Google Cloud OS Config v1 API - Class GetOSPolicyAssignmentReportRequest (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.GetOSPolicyAssignmentReportRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.4.0/Google.Cloud.OsConfig.V1.GetOSPolicyAssignmentReportRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.3.0/Google.Cloud.OsConfig.V1.GetOSPolicyAssignmentReportRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.2.0/Google.Cloud.OsConfig.V1.GetOSPolicyAssignmentReportRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.1.0/Google.Cloud.OsConfig.V1.GetOSPolicyAssignmentReportRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.0.0/Google.Cloud.OsConfig.V1.GetOSPolicyAssignmentReportRequest)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.8.0/Google.Cloud.OsConfig.V1.GetOSPolicyAssignmentReportRequest)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.7.0/Google.Cloud.OsConfig.V1.GetOSPolicyAssignmentReportRequest)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.6.0/Google.Cloud.OsConfig.V1.GetOSPolicyAssignmentReportRequest)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.5.0/Google.Cloud.OsConfig.V1.GetOSPolicyAssignmentReportRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.4.0/Google.Cloud.OsConfig.V1.GetOSPolicyAssignmentReportRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.3.0/Google.Cloud.OsConfig.V1.GetOSPolicyAssignmentReportRequest) \n\n public sealed class GetOSPolicyAssignmentReportRequest : IMessage\u003cGetOSPolicyAssignmentReportRequest\u003e, IEquatable\u003cGetOSPolicyAssignmentReportRequest\u003e, IDeepCloneable\u003cGetOSPolicyAssignmentReportRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud OS Config v1 API class GetOSPolicyAssignmentReportRequest.\n\nGet a report of the OS policy assignment for a VM instance. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GetOSPolicyAssignmentReportRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GetOSPolicyAssignmentReportRequest](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.GetOSPolicyAssignmentReportRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetOSPolicyAssignmentReportRequest](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.GetOSPolicyAssignmentReportRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetOSPolicyAssignmentReportRequest](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.GetOSPolicyAssignmentReportRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.OsConfig.V1](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.OsConfig.V1.dll\n\nConstructors\n------------\n\n### GetOSPolicyAssignmentReportRequest()\n\n public GetOSPolicyAssignmentReportRequest()\n\n### GetOSPolicyAssignmentReportRequest(GetOSPolicyAssignmentReportRequest)\n\n public GetOSPolicyAssignmentReportRequest(GetOSPolicyAssignmentReportRequest other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nRequired. API resource name for OS policy assignment report.\n\nFormat:\n`/projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`\n\nFor `{project}`, either `project-number` or `project-id` can be provided.\nFor `{instance_id}`, either Compute Engine `instance-id` or `instance-name`\ncan be provided.\nFor `{assignment_id}`, the OSPolicyAssignment id must be provided.\n\n### OSPolicyAssignmentReportName\n\n public OSPolicyAssignmentReportName OSPolicyAssignmentReportName { get; set; }\n\n[OSPolicyAssignmentReportName](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReportName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.GetOSPolicyAssignmentReportRequest#Google_Cloud_OsConfig_V1_GetOSPolicyAssignmentReportRequest_Name) resource name\nproperty."]]