Agentless Scanning

Update GCP scan options

Update the Agentless scan options for an activated GCP project.

patch/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
    • API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
    • or OAuth 2
      Authorization code: /oauth2/v1/authorize
      Token URL: /oauth2/v1/token scopes: org_management

Path parameters

project_idstring required
Example:company-project-id

The GCP project ID.

Request body

Example request

{
  "data": {
    "id": "company-project-id",
    "type": "gcp_scan_options"
  }
}

Response

OK

Example response

{
  "data": {
    "attributes": {
      "compliance_host": false,
      "vuln_containers_os": true,
      "vuln_host_os": true
    },
    "id": "company-project-id",
    "type": "gcp_scan_options"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.