Expression that defines the filter to apply across findings.
The expression is a list of one or more restrictions combined via logical
operators AND and OR.
Parentheses are supported, and OR has higher precedence than AND.
Restrictions have the form <field> <operator> <value> and may have a -
character in front of them to indicate negation. Examples include:
name
security_marks.marks.marka
The supported operators are:
= for all value types.
>, <, >=, <= for integer values.
:, meaning substring matching, for strings.
The supported value types are:
string literals in quotes.
integer literals without quotes.
boolean literals true and false without quotes.
The following field and operator combinations are supported:
name: =
parent: =, :
resource_name: =, :
state: =, :
category: =, :
external_uri: =, :
event_time: =, >, <, >=, <=
Usage: This should be milliseconds since epoch or an RFC3339 string.
Examples:
event_time = "2019-06-10T16:07:18-07:00"event_time = 1560208038000
Required. Expression that defines what assets fields to use for grouping.
The string value should follow SQL syntax: comma separated list of fields.
For example: "parent,resource_name".
The value returned by the last GroupFindingsResponse; indicates
that this is a continuation of a prior GroupFindings call, and
that the system should return the next page of data.
[[["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-08-28 UTC."],[[["\u003cp\u003eThis documentation details the \u003ccode\u003eGroupFindingsRequest\u003c/code\u003e class, part of the Security Command Center v2 API within the \u003ccode\u003eGoogle.Cloud.SecurityCenter.V2\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGroupFindingsRequest\u003c/code\u003e is a request message used for grouping findings, inheriting from \u003ccode\u003eobject\u003c/code\u003e and implementing 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 offers properties such as \u003ccode\u003eFilter\u003c/code\u003e for defining filtering criteria, \u003ccode\u003eGroupBy\u003c/code\u003e for specifying grouping fields, and \u003ccode\u003eParent\u003c/code\u003e for identifying the source for grouping.\u003c/p\u003e\n"],["\u003cp\u003eConstructors are available to create new instances of \u003ccode\u003eGroupFindingsRequest\u003c/code\u003e, including one that creates a new instance based on another instance.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePageSize\u003c/code\u003e and \u003ccode\u003ePageToken\u003c/code\u003e properties can be set to control pagination, and a \u003ccode\u003eParentAsSourceName\u003c/code\u003e property provides a typed view of the \u003ccode\u003eParent\u003c/code\u003e resource name.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class GroupFindingsRequest (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.GroupFindingsRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.GroupFindingsRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.GroupFindingsRequest) \n\n public sealed class GroupFindingsRequest : IPageRequest, IMessage\u003cGroupFindingsRequest\u003e, IEquatable\u003cGroupFindingsRequest\u003e, IDeepCloneable\u003cGroupFindingsRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class GroupFindingsRequest.\n\nRequest message for grouping by findings. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GroupFindingsRequest \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)[GroupFindingsRequest](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.GroupFindingsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GroupFindingsRequest](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.GroupFindingsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GroupFindingsRequest](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.GroupFindingsRequest), [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.SecurityCenter.V2](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V2.dll\n\nConstructors\n------------\n\n### GroupFindingsRequest()\n\n public GroupFindingsRequest()\n\n### GroupFindingsRequest(GroupFindingsRequest)\n\n public GroupFindingsRequest(GroupFindingsRequest other)\n\nProperties\n----------\n\n### Filter\n\n public string Filter { get; set; }\n\nExpression that defines the filter to apply across findings.\nThe expression is a list of one or more restrictions combined via logical\noperators `AND` and `OR`.\nParentheses are supported, and `OR` has higher precedence than `AND`.\n\nRestrictions have the form `\u003cfield\u003e \u003coperator\u003e \u003cvalue\u003e` and may have a `-`\ncharacter in front of them to indicate negation. Examples include:\n\n- name\n- security_marks.marks.marka\n\nThe supported operators are:\n\n- `=` for all value types.\n- `\u003e`, `\u003c`, `\u003e=`, `\u003c=` for integer values.\n- `:`, meaning substring matching, for strings.\n\nThe supported value types are:\n\n- string literals in quotes.\n- integer literals without quotes.\n- boolean literals `true` and `false` without quotes.\n\nThe following field and operator combinations are supported:\n\n- name: `=`\n- parent: `=`, `:`\n- resource_name: `=`, `:`\n- state: `=`, `:`\n- category: `=`, `:`\n- external_uri: `=`, `:`\n- event_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=`\n\n Usage: This should be milliseconds since epoch or an RFC3339 string.\n Examples:\n `event_time = \"2019-06-10T16:07:18-07:00\"`\n `event_time = 1560208038000`\n- severity: `=`, `:`\n\n- security_marks.marks: `=`, `:`\n- resource:\n - resource.name: `=`, `:`\n - resource.parent_name: `=`, `:`\n - resource.parent_display_name: `=`, `:`\n - resource.project_name: `=`, `:`\n - resource.project_display_name: `=`, `:`\n - resource.type: `=`, `:`\n\n### GroupBy\n\n public string GroupBy { get; set; }\n\nRequired. Expression that defines what assets fields to use for grouping.\nThe string value should follow SQL syntax: comma separated list of fields.\nFor example: \"parent,resource_name\".\n\n### PageSize\n\n public int PageSize { get; set; }\n\nThe maximum number of results to return in a single response. Default is\n10, minimum is 1, maximum is 1000.\n\n### PageToken\n\n public string PageToken { get; set; }\n\nThe value returned by the last `GroupFindingsResponse`; indicates\nthat this is a continuation of a prior `GroupFindings` call, and\nthat the system should return the next page of data.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. Name of the source to groupBy. If no location is specified,\nfinding is assumed to be in global.\nThe following list shows some examples:\n\n- `organizations/[organization_id]/sources/[source_id]` + `organizations/[organization_id]/sources/[source_id]/locations/[location_id]`\n- `folders/[folder_id]/sources/[source_id]`\n- `folders/[folder_id]/sources/[source_id]/locations/[location_id]`\n- `projects/[project_id]/sources/[source_id]`\n- `projects/[project_id]/sources/[source_id]/locations/[location_id]`\n\nTo groupBy across all sources provide a source_id of `-`. The following\nlist shows some examples:\n\n- `organizations/{organization_id}/sources/-`\n- `organizations/{organization_id}/sources/-/locations/[location_id]`\n- `folders/{folder_id}/sources/-`\n- `folders/{folder_id}/sources/-/locations/[location_id]`\n- `projects/{project_id}/sources/-`\n- `projects/{project_id}/sources/-/locations/[location_id]`\n\n### ParentAsSourceName\n\n public SourceName ParentAsSourceName { get; set; }\n\n[SourceName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SourceName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.GroupFindingsRequest#Google_Cloud_SecurityCenter_V2_GroupFindingsRequest_Parent) resource name property."]]