Skip to main content

dashboard_list_items

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

Overview

Namedashboard_list_items
TypeResource
Iddatadog.dashboards.dashboard_list_items

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the dashboard. (example: q5j-nti-fv6)
integration_idstringThe short name of the integration.
authorobjectCreator of the object.
createdstring (date-time)Date of creation of the dashboard.
iconstringURL to the icon of the dashboard.
is_favoritebooleanWhether or not the dashboard is in the favorites.
is_read_onlybooleanWhether or not the dashboard is read only.
is_sharedbooleanWhether the dashboard is publicly shared or not.
modifiedstring (date-time)Date of last edition of the dashboard.
popularityinteger (int32)Popularity of the dashboard.
tagsarrayList of team names representing ownership of a dashboard.
titlestringTitle of the dashboard.
typestringThe type of the dashboard. (example: host_timeboard)
urlstringURL path to the dashboard.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_dashboard_list_itemsselectdashboard_list_id, regionFetch the dashboard list’s dashboard definitions.
create_dashboard_list_itemsinsertdashboard_list_id, regionAdd dashboards to an existing dashboard list.
update_dashboard_list_itemsreplacedashboard_list_id, regionUpdate dashboards of an existing dashboard list.
delete_dashboard_list_itemsdeletedashboard_list_id, regionDelete dashboards from an existing dashboard list.

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
dashboard_list_idinteger (int64)ID of the dashboard list to delete items from.
regionstring(default: datadoghq.com)

SELECT examples

Fetch the dashboard list’s dashboard definitions.

SELECT
id,
integration_id,
author,
created,
icon,
is_favorite,
is_read_only,
is_shared,
modified,
popularity,
tags,
title,
type,
url
FROM datadog.dashboards.dashboard_list_items
WHERE dashboard_list_id = '{{ dashboard_list_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Add dashboards to an existing dashboard list.

INSERT INTO datadog.dashboards.dashboard_list_items (
data__dashboards,
dashboard_list_id,
region
)
SELECT
'{{ dashboards }}',
'{{ dashboard_list_id }}',
'{{ region }}'
RETURNING
added_dashboards_to_list
;

REPLACE examples

Update dashboards of an existing dashboard list.

REPLACE datadog.dashboards.dashboard_list_items
SET
data__dashboards = '{{ dashboards }}'
WHERE
dashboard_list_id = '{{ dashboard_list_id }}' --required
AND region = '{{ region }}' --required
RETURNING
dashboards;

DELETE examples

Delete dashboards from an existing dashboard list.

DELETE FROM datadog.dashboards.dashboard_list_items
WHERE dashboard_list_id = '{{ dashboard_list_id }}' --required
AND region = '{{ region }}' --required
;