Skip to main content

agentless_scanning_account_gcp

Creates, updates, deletes, gets or lists an agentless_scanning_account_gcp resource.

Overview

Nameagentless_scanning_account_gcp
TypeResource
Iddatadog.security.agentless_scanning_account_gcp

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe GCP project ID. (example: )
attributesobjectAttributes for GCP scan options configuration.
typestringGCP scan options resource type. (gcp_scan_options) (default: gcp_scan_options, example: gcp_scan_options)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_gcp_scan_optionsselectproject_idFetches the Agentless scan options for an activated GCP project.
list_gcp_scan_optionsselectFetches the scan options configured for all GCP projects.
create_gcp_scan_optionsinsertActivate Agentless scan options for a GCP project.
update_gcp_scan_optionsupdateproject_idUpdate the Agentless scan options for an activated GCP project.
delete_gcp_scan_optionsdeleteproject_idDelete 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.

NameDatatypeDescription
project_idstringThe GCP project ID.
sitestringThe 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

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
;

INSERT examples

Activate Agentless scan options for a GCP project.

INSERT INTO datadog.security.agentless_scanning_account_gcp (
data
)
SELECT
'{{ data }}'
RETURNING
data
;

UPDATE examples

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 Agentless scan options for a GCP project.

DELETE FROM datadog.security.agentless_scanning_account_gcp
WHERE project_id = '{{ project_id }}' --required
;