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_kindselectregionpage[offset], page[limit], filter[id], filter[name]Get a list of entity kinds from Software Catalog.
upsert_catalog_kindinsertregion, data__kindCreate or update kinds in Software Catalog.
delete_catalog_kinddeletekind_id, regionDelete 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.
regionstring(default: datadoghq.com)
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 region = '{{ region }}' -- required
AND 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 (
data__description,
data__displayName,
data__kind,
region
)
SELECT
'{{ description }}',
'{{ displayName }}',
'{{ kind }}' /* required */,
'{{ region }}'
RETURNING
data,
meta
;

DELETE examples

Delete a single kind in Software Catalog.

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