Skip to main content

entities

Creates, updates, deletes, gets or lists an entities resource.

Overview

Nameentities
TypeResource
Idconfluent.catalog.entities

Fields

The following fields are returned by SELECT queries:

The entity

NameDatatypeDescription
entityobjectThe entity
referredEntitiesobjectThe referred entities

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_unique_attributesselecttypeName, qualifiedNameminExtInfo, ignoreRelationshipsFetch complete definition of an entity given its type and unique attribute.
partial_entity_updatereplacePartially update an entity attribute.
search_using_attributeexectype, attr, attrName, attrValuePrefix, tag, sortBy, sortOrder, deleted, limit, offsetRetrieve data for the specified attribute search query.
search_using_basicexecquery, type, attr, tag, sortBy, sortOrder, deleted, limit, offsetRetrieve data for the specified fulltext query.

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
qualifiedNamestringThe qualified name of the entity
typeNamestringThe type of the entity
attrarrayOne of more additional attributes to return in the response
attrNamearrayThe attribute to search
attrValuePrefixarrayThe prefix for the attribute value to search
deletedbooleanWhether to include deleted entities
ignoreRelationshipsbooleanWhether to ignore relationships
limitinteger (int32)Limit the result set to only include the specified number of entries
minExtInfobooleanWhether to populate on header and schema attributes
offsetinteger (int32)Start offset of the result set (useful for pagination)
querystringThe full-text query
sortBystringAn attribute to sort by
sortOrderstringSort order, either ASCENDING (default) or DESCENDING
tagstringLimit the result to only entities tagged with the given tag
typearrayLimit the result to only entities of specified types

SELECT examples

Fetch complete definition of an entity given its type and unique attribute.

SELECT
entity,
referredEntities
FROM confluent.catalog.entities
WHERE typeName = '{{ typeName }}' -- required
AND qualifiedName = '{{ qualifiedName }}' -- required
AND minExtInfo = '{{ minExtInfo }}'
AND ignoreRelationships = '{{ ignoreRelationships }}'
;

REPLACE examples

Partially update an entity attribute.

REPLACE confluent.catalog.entities
SET
referredEntities = '{{ referredEntities }}',
entity = '{{ entity }}'
RETURNING
mutatedEntities;

Lifecycle Methods

Retrieve data for the specified attribute search query.

EXEC confluent.catalog.entities.search_using_attribute
@type='{{ type }}',
@attr='{{ attr }}',
@attrName='{{ attrName }}',
@attrValuePrefix='{{ attrValuePrefix }}',
@tag='{{ tag }}',
@sortBy='{{ sortBy }}',
@sortOrder='{{ sortOrder }}',
@deleted={{ deleted }},
@limit='{{ limit }}',
@offset='{{ offset }}'
;