ndm_tag_interfaces
Creates, updates, deletes, gets or lists a ndm_tag_interfaces resource.
Overview
| Name | ndm_tag_interfaces |
| Type | Resource |
| Id | datadog.infrastructure.ndm_tag_interfaces |
Fields
The following fields are returned by SELECT queries:
- list_interface_user_tags
| Name | Datatype | Description |
|---|---|---|
id | string | The interface ID (example: example:1.2.3.4:1) |
attributes | object | The definition of ListTagsResponseDataAttributes object. |
type | string | The type of the resource. The value should always be tags. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_interface_user_tags | select | interface_id | Returns the tags associated with the specified interface. | |
update_interface_user_tags | update | interface_id | Updates 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.
| Name | Datatype | Description |
|---|---|---|
interface_id | string | The ID of the interface for which to update tags. (example: example:1.2.3.4:1) |
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
- list_interface_user_tags
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
- update_interface_user_tags
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;