Skip to main content

device_interfaces

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

Overview

Namedevice_interfaces
TypeResource
Iddatadog.infrastructure.device_interfaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe interface ID (example: example:1.2.3.4:99)
attributesobjectThe interface attributes
typestringThe type of the resource. The value should always be interface.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_interfacesselectdevice_id, regionget_ip_addressesGet the list of interfaces of the device.

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
device_idstringThe ID of the device to get interfaces from. (example: example:1.2.3.4)
regionstring(default: datadoghq.com)
get_ip_addressesbooleanWhether to get the IP addresses of the interfaces. (example: true)

SELECT examples

Get the list of interfaces of the device.

SELECT
id,
attributes,
type
FROM datadog.infrastructure.device_interfaces
WHERE device_id = '{{ device_id }}' -- required
AND region = '{{ region }}' -- required
AND get_ip_addresses = '{{ get_ip_addresses }}'
;