agentless_scanning_account_gcp
Creates, updates, deletes, gets or lists an agentless_scanning_account_gcp resource.
Overview
| Name | agentless_scanning_account_gcp |
| Type | Resource |
| Id | datadog.security.agentless_scanning_account_gcp |
Fields
The following fields are returned by SELECT queries:
- get_gcp_scan_options
- list_gcp_scan_options
| Name | Datatype | Description |
|---|---|---|
id | string | The GCP project ID. (example: ) |
attributes | object | Attributes for GCP scan options configuration. |
type | string | GCP scan options resource type. (gcp_scan_options) (default: gcp_scan_options, example: gcp_scan_options) |
| Name | Datatype | Description |
|---|---|---|
id | string | The GCP project ID. (example: ) |
attributes | object | Attributes for GCP scan options configuration. |
type | string | GCP scan options resource type. (gcp_scan_options) (default: gcp_scan_options, example: gcp_scan_options) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_gcp_scan_options | select | project_id | Fetches the Agentless scan options for an activated GCP project. | |
list_gcp_scan_options | select | Fetches the scan options configured for all GCP projects. | ||
create_gcp_scan_options | insert | Activate Agentless scan options for a GCP project. | ||
update_gcp_scan_options | update | project_id | Update the Agentless scan options for an activated GCP project. | |
delete_gcp_scan_options | delete | project_id | Delete Agentless scan options for a GCP project. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
project_id | string | The GCP project ID. |
site | string | The Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both. |
SELECT examples
- get_gcp_scan_options
- list_gcp_scan_options
Fetches the Agentless scan options for an activated GCP project.
SELECT
id,
attributes,
type
FROM datadog.security.agentless_scanning_account_gcp
WHERE project_id = '{{ project_id }}' -- required
;
Fetches the scan options configured for all GCP projects.
SELECT
id,
attributes,
type
FROM datadog.security.agentless_scanning_account_gcp
;
INSERT examples
- create_gcp_scan_options
- Manifest
Activate Agentless scan options for a GCP project.
INSERT INTO datadog.security.agentless_scanning_account_gcp (
data
)
SELECT
'{{ data }}'
RETURNING
data
;
# Description fields are for documentation purposes
- name: agentless_scanning_account_gcp
props:
- name: data
description: |
Single GCP scan options entry.
value:
attributes:
cloud_function: {{ cloud_function }}
compliance_host: {{ compliance_host }}
vuln_containers_os: {{ vuln_containers_os }}
vuln_host_os: {{ vuln_host_os }}
id: "{{ id }}"
type: "{{ type }}"
UPDATE examples
- update_gcp_scan_options
Update the Agentless scan options for an activated GCP project.
UPDATE datadog.security.agentless_scanning_account_gcp
SET
data = '{{ data }}'
WHERE
project_id = '{{ project_id }}' --required
RETURNING
data;
DELETE examples
- delete_gcp_scan_options
Delete Agentless scan options for a GCP project.
DELETE FROM datadog.security.agentless_scanning_account_gcp
WHERE project_id = '{{ project_id }}' --required
;