Skip to main content

catalog_kinds

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

Overview

Namecatalog_kinds
TypeResource
Iddatadog.catalog.catalog_kinds

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringA read-only globally unique identifier for the entity generated by Datadog. User supplied values are ignored. (example: 4b163705-23c0-4573-b2fb-f6cea2163fcb)
attributesobjectKind attributes.
metaobjectKind metadata.
typestringKind.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_catalog_kindselectpage[offset], page[limit], filter[id], filter[name]Get a list of entity kinds from Software Catalog.
upsert_catalog_kindinsertkindCreate or update kinds in Software Catalog.
delete_catalog_kinddeletekind_idDelete a single kind in 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
kind_idstringEntity kind.
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.
filter[id]stringFilter entities by UUID.
filter[name]stringFilter entities by name.
page[limit]integer (int64)Maximum number of kinds 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 kinds from Software Catalog.

SELECT
id,
attributes,
meta,
type
FROM datadog.catalog.catalog_kinds
WHERE page[offset] = '{{ page[offset] }}'
AND page[limit] = '{{ page[limit] }}'
AND filter[id] = '{{ filter[id] }}'
AND filter[name] = '{{ filter[name] }}'
;

INSERT examples

Create or update kinds in Software Catalog.

INSERT INTO datadog.catalog.catalog_kinds (
description,
display_name,
kind
)
SELECT
'{{ description }}',
'{{ display_name }}',
'{{ kind }}' /* required */
RETURNING
data,
meta
;

DELETE examples

Delete a single kind in Software Catalog.

DELETE FROM datadog.catalog.catalog_kinds
WHERE kind_id = '{{ kind_id }}' --required
;