Skip to main content

ndm_tag_interfaces

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

Overview

Namendm_tag_interfaces
TypeResource
Iddatadog.infrastructure.ndm_tag_interfaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe interface ID (example: example:1.2.3.4:1)
attributesobjectThe definition of ListTagsResponseDataAttributes object.
typestringThe type of the resource. The value should always be tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_interface_user_tagsselectinterface_idReturns the tags associated with the specified interface.
update_interface_user_tagsupdateinterface_idUpdates the tags associated with the specified interface.

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
interface_idstringThe ID of the interface for which to update tags. (example: example:1.2.3.4:1)
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

Returns the tags associated with the specified interface.

SELECT
id,
attributes,
type
FROM datadog.infrastructure.ndm_tag_interfaces
WHERE interface_id = '{{ interface_id }}' -- required
;

UPDATE examples

Updates the tags associated with the specified interface.

UPDATE datadog.infrastructure.ndm_tag_interfaces
SET
data = '{{ data }}'
WHERE
interface_id = '{{ interface_id }}' --required
RETURNING
data;