---
title: "List GCP scan options"
method: GET
path: "/api/v2/agentless_scanning/accounts/gcp"
tags: ["Agentless Scanning"]
---

# List GCP scan options

`GET /api/v2/agentless_scanning/accounts/gcp`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `security_monitoring_findings_read`

Fetches the scan options configured for all GCP projects.

## Response `200`

OK

- GcpScanOptionsArray: Response object containing a list of GCP scan options.
  - `data` GcpScanOptionsData[], required: A list of GCP scan options.
    - `attributes` GcpScanOptionsDataAttributes: Attributes for GCP scan options configuration.
      - `compliance_host` boolean: Indicates whether host compliance scanning is enabled.
      - `vuln_containers_os` boolean: Indicates if scanning for vulnerabilities in containers is enabled.
      - `vuln_host_os` boolean: Indicates if scanning for vulnerabilities in hosts is enabled.
    - `id` string, required: The GCP project ID.
    - `type` 'gcp_scan_options', required: GCP scan options resource type.

## Other responses

- `403`: Not Authorized
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
