Skip to main content

catalog_relations

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

Overview

Namecatalog_relations
TypeResource
Iddatadog.catalog.catalog_relations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringRelation ID.
attributesobjectRelation attributes.
metaobjectRelation metadata.
relationshipsobjectRelation relationships.
subtypestringRelation subtype.
typestringRelation type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_catalog_relationselectregionpage[offset], page[limit], filter[type], filter[from_ref], filter[to_ref], includeGet a list of entity relations from Software Catalog.

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
regionstring(default: datadoghq.com)
filter[from_ref]stringFilter relations by the reference of the first entity in the relation. (example: service:shopping-cart)
filter[to_ref]stringFilter relations by the reference of the second entity in the relation. (example: service:shopping-cart)
filter[type]stringFilter relations by type.
includestringInclude relationship data.
page[limit]integer (int64)Maximum number of relations in the response. (example: 100)
page[offset]integer (int64)Specific offset to use as the beginning of the returned page.

SELECT examples

Get a list of entity relations from Software Catalog.

SELECT
id,
attributes,
meta,
relationships,
subtype,
type
FROM datadog.catalog.catalog_relations
WHERE region = '{{ region }}' -- required
AND page[offset] = '{{ page[offset] }}'
AND page[limit] = '{{ page[limit] }}'
AND filter[type] = '{{ filter[type] }}'
AND filter[from_ref] = '{{ filter[from_ref] }}'
AND filter[to_ref] = '{{ filter[to_ref] }}'
AND include = '{{ include }}'
;