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

# Update GCP scan options

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

Update the Agentless scan options for an activated GCP project.

## Path parameters

- `project_id` string, required

## Request body

- GcpScanOptionsInputUpdate — Request object for updating GCP scan options.
  - `data` GcpScanOptionsInputUpdateData — Data object for updating the scan options of a single GCP project.
    - `attributes` GcpScanOptionsInputUpdateDataAttributes — Attributes for updating 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.

## 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/api-v2.md) · [All operations](https://skmtc.dev/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
