---
title: "GET /v1beta/projects/{projectsId}/alerts:enumerateFacets"
method: GET
path: "/v1beta/projects/{projectsId}/alerts:enumerateFacets"
tags: ["projects"]
---

# GET /v1beta/projects/{projectsId}/alerts:enumerateFacets

`GET /v1beta/projects/{projectsId}/alerts:enumerateFacets`

## Request

- Base URL: `https://threatintelligence.googleapis.com`
- URL: `https://threatintelligence.googleapis.com/v1beta/projects/{projectsId}/alerts:enumerateFacets`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

EnumerateAlertFacets returns the facets and the number of alerts that meet the filter criteria and have that value for each facet.

## Path parameters

- `projectsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `filter` string

## Response `200`

Successful response

- EnumerateAlertFacetsResponse: Response message for EnumerateAlertFacets.
  - `facets` Facet[]: List of facets and the counts.
    - `facet` string: Name of the facet. This is also the string that needs to be used in the filtering expression.
    - `facetCounts` FacetCount[]: List of counts for the facet (if categorical).
      - `count` integer: Count of records with the value.
      - `value` string: Value of the facet stringified. Timestamps will be formatted using RFC3339.
    - `facetType` string: The type of the facet. Options include "string", "int", "float", "bool", "enum", "timestamp", "user" and are useful to show the right sort of UI controls when building a AIP-160 style filtering string.
    - `maxValue` string: Max value of the facet stringified based on type. Will be populated and formatted the same as min_value.
    - `minValue` string: Min value of the facet stringified based on type. This is only populated for facets that have a clear ordering, for types like enum it will be left empty. Timestamps will be formatted using RFC3339.
    - `totalCount` string, int64: Total number of records that contain this facet with ANY value.

---

[API](https://skmtc.dev/google/apis/threatintelligence.md) - [All operations](https://skmtc.dev/google/apis/threatintelligence/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/threatintelligence/revisions/409ae060bc26?raw)
