Skip to main content

csm_setting_agentless_hosts

Creates, updates, deletes, gets or lists a csm_setting_agentless_hosts resource.

Overview

Namecsm_setting_agentless_hosts
TypeResource
Iddatadog.security.csm_setting_agentless_hosts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe resource identifier of the agentless host. (example: i-0123456789abcdef0)
attributesobjectAttributes of an agentless host.
typestringThe JSON:API type for agentless host resources. The value should always be agentless_host. (agentless_host) (default: agentless_host, example: agentless_host)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_csmagentless_hostsselectpage, size, queryGet the list of agentless hosts for CSM, with optional pagination and filtering.

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
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.
pageinteger (int32)The page index for pagination (zero-based).
querystringA search query string to filter agentless hosts.
sizeinteger (int32)The number of agentless hosts to return per page.

SELECT examples

Get the list of agentless hosts for CSM, with optional pagination and filtering.

SELECT
id,
attributes,
type
FROM datadog.security.csm_setting_agentless_hosts
WHERE page = '{{ page }}'
AND size = '{{ size }}'
AND query = '{{ query }}'
;