For {project}, either project-number or project-id can be provided.
For {instance}, either instance-name, instance-id, or - can be
provided. If '-' is provided, the response will include
OSPolicyAssignmentReports for all instances in the project/location.
For {assignment}, either assignment-id or - can be provided. If '-'
is provided, the response will include OSPolicyAssignmentReports for all
OSPolicyAssignments in the project/location.
Either {instance} or {assignment} must be -.
For example:
projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports
returns all reports for the instance
projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports
returns all the reports for the given assignment across all instances.
projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports
returns all the reports for all assignments across all instances.
[[["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\u003eThis document provides reference documentation for the \u003ccode\u003eListOSPolicyAssignmentReportsRequest\u003c/code\u003e class in the Google Cloud OS Config v1 API, which is used to list OS policy assignment reports for VM instances.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eListOSPolicyAssignmentReportsRequest\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIPageRequest\u003c/code\u003e, \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 properties like \u003ccode\u003eFilter\u003c/code\u003e, \u003ccode\u003ePageSize\u003c/code\u003e, \u003ccode\u003ePageToken\u003c/code\u003e, and \u003ccode\u003eParent\u003c/code\u003e to specify criteria for filtering, pagination, and identifying the parent resource.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eParent\u003c/code\u003e property is a required string that specifies the resource name and supports various formats to retrieve reports for specific instances, assignments, or all instances and assignments within a project and location.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple available versions of the API, ranging from version 1.3.0 up to the latest version 2.4.0.\u003c/p\u003e\n"]]],[],null,["# Google Cloud OS Config v1 API - Class ListOSPolicyAssignmentReportsRequest (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.ListOSPolicyAssignmentReportsRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.4.0/Google.Cloud.OsConfig.V1.ListOSPolicyAssignmentReportsRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.3.0/Google.Cloud.OsConfig.V1.ListOSPolicyAssignmentReportsRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.2.0/Google.Cloud.OsConfig.V1.ListOSPolicyAssignmentReportsRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.1.0/Google.Cloud.OsConfig.V1.ListOSPolicyAssignmentReportsRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.0.0/Google.Cloud.OsConfig.V1.ListOSPolicyAssignmentReportsRequest)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.8.0/Google.Cloud.OsConfig.V1.ListOSPolicyAssignmentReportsRequest)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.7.0/Google.Cloud.OsConfig.V1.ListOSPolicyAssignmentReportsRequest)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.6.0/Google.Cloud.OsConfig.V1.ListOSPolicyAssignmentReportsRequest)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.5.0/Google.Cloud.OsConfig.V1.ListOSPolicyAssignmentReportsRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.4.0/Google.Cloud.OsConfig.V1.ListOSPolicyAssignmentReportsRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.3.0/Google.Cloud.OsConfig.V1.ListOSPolicyAssignmentReportsRequest) \n\n public sealed class ListOSPolicyAssignmentReportsRequest : IPageRequest, IMessage\u003cListOSPolicyAssignmentReportsRequest\u003e, IEquatable\u003cListOSPolicyAssignmentReportsRequest\u003e, IDeepCloneable\u003cListOSPolicyAssignmentReportsRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud OS Config v1 API class ListOSPolicyAssignmentReportsRequest.\n\nList the OS policy assignment reports for VM instances. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ListOSPolicyAssignmentReportsRequest \n\nImplements\n----------\n\n[IPageRequest](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageRequest.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ListOSPolicyAssignmentReportsRequest](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.ListOSPolicyAssignmentReportsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListOSPolicyAssignmentReportsRequest](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.ListOSPolicyAssignmentReportsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListOSPolicyAssignmentReportsRequest](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.ListOSPolicyAssignmentReportsRequest), [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### ListOSPolicyAssignmentReportsRequest()\n\n public ListOSPolicyAssignmentReportsRequest()\n\n### ListOSPolicyAssignmentReportsRequest(ListOSPolicyAssignmentReportsRequest)\n\n public ListOSPolicyAssignmentReportsRequest(ListOSPolicyAssignmentReportsRequest other)\n\nProperties\n----------\n\n### Filter\n\n public string Filter { get; set; }\n\nIf provided, this field specifies the criteria that must be met by the\n`OSPolicyAssignmentReport` API resource that is included in the response.\n\n### PageSize\n\n public int PageSize { get; set; }\n\nThe maximum number of results to return.\n\n### PageToken\n\n public string PageToken { get; set; }\n\nA pagination token returned from a previous call to the\n`ListOSPolicyAssignmentReports` method that indicates where this listing\nshould continue from.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The parent resource name.\n\nFormat:\n`projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports`\n\nFor `{project}`, either `project-number` or `project-id` can be provided.\nFor `{instance}`, either `instance-name`, `instance-id`, or `-` can be\nprovided. If '-' is provided, the response will include\nOSPolicyAssignmentReports for all instances in the project/location.\nFor `{assignment}`, either `assignment-id` or `-` can be provided. If '-'\nis provided, the response will include OSPolicyAssignmentReports for all\nOSPolicyAssignments in the project/location.\nEither {instance} or {assignment} must be `-`.\n\nFor example:\n`projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports`\nreturns all reports for the instance\n`projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports`\nreturns all the reports for the given assignment across all instances.\n`projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports`\nreturns all the reports for all assignments across all instances.\n\n### ParentAsInstanceOSPolicyAssignmentName\n\n public InstanceOSPolicyAssignmentName ParentAsInstanceOSPolicyAssignmentName { get; set; }\n\n[InstanceOSPolicyAssignmentName](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.InstanceOSPolicyAssignmentName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.ListOSPolicyAssignmentReportsRequest#Google_Cloud_OsConfig_V1_ListOSPolicyAssignmentReportsRequest_Parent) resource name\nproperty."]]