# GroupFindingsResponse

- [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/GroupFindingsResponse#SCHEMA_REPRESENTATION)
- [GroupResult](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/GroupFindingsResponse#GroupResult)
  - [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/GroupFindingsResponse#GroupResult.SCHEMA_REPRESENTATION)

Response message for group by findings.

| JSON representation |
|---|
| ``` { "groupByResults": [ { object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/GroupFindingsResponse#GroupResult`) } ], "nextPageToken": string, "totalSize": integer } ``` |

| Fields ||
|---|---|
| `groupByResults[]` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/GroupFindingsResponse#GroupResult`)`` Group results. There exists an element for each existing unique combination of property/values. The element contains a count for the number of times those specific property/values appear. |
| `nextPageToken` | `string` Token to retrieve the next page of results, or empty if there are no more results. |
| `totalSize` | `integer` The total number of results matching the query. |

## GroupResult

Result containing the properties and count of a groupBy request.

| JSON representation |
|---|
| ``` { "properties": { string: value, ... }, "count": string } ``` |

| Fields ||
|---|---|
| `properties` | ``map (key: string, value: value (`https://protobuf.dev/reference/protobuf/google.protobuf#value` format))`` Properties matching the groupBy fields in the request. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `count` | `string (https://developers.google.com/discovery/v1/type-format format)` Total count of resources for the given properties. |