Skip to main content

tags

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

Overview

Nametags
TypeResource
Idconfluent.catalog.tags

Fields

The following fields are returned by SELECT queries:

The tags

NameDatatypeDescription
attributesstringThe tag attributes (opaque JSON object)
entityGuidstringThe internal entity guid
entityNamestringThe qualified name of the entity
entityStatusstringThe entity status (ACTIVE, DELETED, PURGED)
entityTypestringThe entity type
errorobjectError message of this operation
propagatebooleanWhether to propagate the tag
removePropagationsOnEntityDeletebooleanWhether to remove propagations on entity delete
typeNamestringThe tag name
validityPeriodsarrayThe validity periods

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_tagsselecttypeName, qualifiedNameGets the list of tags for a given entity represented by a qualified name.
create_tagsinsertBulk API to create multiple tags.
update_tagsreplaceBulk API to update multiple tags.
delete_tagdeletetypeName, qualifiedName, tagNameDelete a tag for an entity.

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
tagNamestringThe name of the tag
typeNamestringThe type of the entity

SELECT examples

Gets the list of tags for a given entity represented by a qualified name.

SELECT
attributes,
entityGuid,
entityName,
entityStatus,
entityType,
error,
propagate,
removePropagationsOnEntityDelete,
typeName,
validityPeriods
FROM confluent.catalog.tags
WHERE typeName = '{{ typeName }}' -- required
AND qualifiedName = '{{ qualifiedName }}' -- required
;

INSERT examples

Bulk API to create multiple tags.

INSERT INTO confluent.catalog.tags (

)
SELECT

RETURNING
attributes,
entityGuid,
entityName,
entityStatus,
entityType,
error,
propagate,
removePropagationsOnEntityDelete,
typeName,
validityPeriods
;

REPLACE examples

Bulk API to update multiple tags.

REPLACE confluent.catalog.tags
SET
-- No updatable properties
RETURNING
attributes,
entityGuid,
entityName,
entityStatus,
entityType,
error,
propagate,
removePropagationsOnEntityDelete,
typeName,
validityPeriods;

DELETE examples

Delete a tag for an entity.

DELETE FROM confluent.catalog.tags
WHERE typeName = '{{ typeName }}' --required
AND qualifiedName = '{{ qualifiedName }}' --required
AND tagName = '{{ tagName }}' --required
;