Optional. The maximum number of results to return from this request.
Non-positive values are ignored. If not specified, the server will
determine the number of results to return.
Optional. If present, retrieves the next batch of results from the
preceding call to this method. page_token must be the value of
next_page_token from the previous response. The values of other method
parameters must be identical to those in the previous call.
[[["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-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eListInsightsRequest\u003c/code\u003e class is used to request a list of insights from the Google Cloud Recommender v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class supports filtering insights based on \u003ccode\u003estateInfo.state\u003c/code\u003e, \u003ccode\u003einsightSubtype\u003c/code\u003e, \u003ccode\u003eseverity\u003c/code\u003e, and \u003ccode\u003etargetResources\u003c/code\u003e, with a maximum filter length of 500 characters.\u003c/p\u003e\n"],["\u003cp\u003eThe class allows for pagination through results using \u003ccode\u003ePageSize\u003c/code\u003e and \u003ccode\u003ePageToken\u003c/code\u003e properties, and the required \u003ccode\u003eParent\u003c/code\u003e property defines the resource for the request.\u003c/p\u003e\n"],["\u003cp\u003eMultiple versions of this API are available, from 2.5.0 to the latest version 3.7.0, each version having its own page.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces like IPageRequest, IMessage, IEquatable, IDeepCloneable, and IBufferMessage, providing functionalities for pagination, message handling, equality checks, deep cloning, and buffered messages.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Recommender v1 API - Class ListInsightsRequest (3.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.ListInsightsRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Recommender.V1/3.6.0/Google.Cloud.Recommender.V1.ListInsightsRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Recommender.V1/3.5.0/Google.Cloud.Recommender.V1.ListInsightsRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Recommender.V1/3.4.0/Google.Cloud.Recommender.V1.ListInsightsRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Recommender.V1/3.3.0/Google.Cloud.Recommender.V1.ListInsightsRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Recommender.V1/3.2.0/Google.Cloud.Recommender.V1.ListInsightsRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Recommender.V1/3.1.0/Google.Cloud.Recommender.V1.ListInsightsRequest)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Recommender.V1/3.0.0/Google.Cloud.Recommender.V1.ListInsightsRequest)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Recommender.V1/2.8.0/Google.Cloud.Recommender.V1.ListInsightsRequest)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Recommender.V1/2.7.0/Google.Cloud.Recommender.V1.ListInsightsRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Recommender.V1/2.6.0/Google.Cloud.Recommender.V1.ListInsightsRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Recommender.V1/2.5.0/Google.Cloud.Recommender.V1.ListInsightsRequest) \n\n public sealed class ListInsightsRequest : IPageRequest, IMessage\u003cListInsightsRequest\u003e, IEquatable\u003cListInsightsRequest\u003e, IDeepCloneable\u003cListInsightsRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Recommender v1 API class ListInsightsRequest.\n\nRequest for the `ListInsights` method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ListInsightsRequest \n\nImplements\n----------\n\n[IPageRequest](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/PagedEnumerableCommon.cs), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ListInsightsRequest](/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.ListInsightsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListInsightsRequest](/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.ListInsightsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListInsightsRequest](/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.ListInsightsRequest), [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.Recommender.V1](/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Recommender.V1.dll\n\nConstructors\n------------\n\n### ListInsightsRequest()\n\n public ListInsightsRequest()\n\n### ListInsightsRequest(ListInsightsRequest)\n\n public ListInsightsRequest(ListInsightsRequest other)\n\nProperties\n----------\n\n### Filter\n\n public string Filter { get; set; }\n\nOptional. Filter expression to restrict the insights returned. Supported\nfilter fields:\n\n- `stateInfo.state`\n\n- `insightSubtype`\n\n- `severity`\n\n- `targetResources`\n\nExamples:\n\n- `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED`\n\n- `insightSubtype = PERMISSIONS_USAGE`\n\n- `severity = CRITICAL OR severity = HIGH`\n\n- `targetResources :\n //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1`\n\n- `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)`\n\nThe max allowed filter length is 500 characters.\n\n(These expressions are based on the filter language described at\n\u003chttps://google.aip.dev/160\u003e)\n\n### PageSize\n\n public int PageSize { get; set; }\n\nOptional. The maximum number of results to return from this request.\nNon-positive values are ignored. If not specified, the server will\ndetermine the number of results to return.\n\n### PageToken\n\n public string PageToken { get; set; }\n\nOptional. If present, retrieves the next batch of results from the\npreceding call to this method. `page_token` must be the value of\n`next_page_token` from the previous response. The values of other method\nparameters must be identical to those in the previous call.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The container resource on which to execute the request.\nAcceptable formats:\n\n- `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`\n\n- `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`\n\n- `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`\n\n- `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`\n\n- `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`\n\nLOCATION here refers to GCP Locations:\n\u003chttps://cloud.google.com/about/locations/\u003e\nINSIGHT_TYPE_ID refers to supported insight types:\n\u003chttps://cloud.google.com/recommender/docs/insights/insight-types\u003e.\n\n### ParentAsInsightTypeName\n\n public InsightTypeName ParentAsInsightTypeName { get; set; }\n\n[InsightTypeName](/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.InsightTypeName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.ListInsightsRequest#Google_Cloud_Recommender_V1_ListInsightsRequest_Parent) resource name property."]]