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

# Get GCP scan options

`GET /api/v2/agentless_scanning/accounts/gcp/{project_id}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp/{project_id}`
- 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 Agentless scan options for an activated GCP project.

## Path parameters

- `project_id` string, required

## Response `200`

OK

- GcpScanOptions: Response object containing GCP scan options for a single project.
  - `data` GcpScanOptionsData: Single GCP scan options entry.
    - `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

- `400`: Bad Request
- `403`: Not Authorized
- `404`: Not Found
- `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)
