Skip to main content

tag_defs

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

Overview

Nametag_defs
TypeResource
Idconfluent.catalog.tag_defs

Fields

The following fields are returned by SELECT queries:

The tag definition

NameDatatypeDescription
namestringThe name
attributeDefsarrayThe attribute definitions
categorystringThe category (PRIMITIVE, OBJECT_ID_TYPE, ENUM, STRUCT, CLASSIFICATION, ENTITY, ARRAY, MAP, RELATIONSHIP, BUSINESS_METADATA)
createTimeinteger (int64)The create time
createdBystringThe creator
descriptionstringThe description
entityTypesarrayThe entity types
guidstringThe internal guid
optionsobjectThe options
serviceTypestringThe service type
subTypesarrayThe subtypes
superTypesarrayThe supertypes
typeVersionstringThe type version
updateTimeinteger (int64)The update time
updatedBystringThe updater
versioninteger (int32)The version

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_tag_def_by_nameselecttagNameGet the tag definition with the given name.
get_all_tag_defsselectprefixBulk retrieval API for retrieving tag definitions.
create_tag_defsinsertBulk create API for tag definitions.
update_tag_defsreplaceBulk update API for tag definitions.
delete_tag_defdeletetagNameDelete API for tag definition identified by its name.

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
tagNamestringThe name of the tag definition
prefixstringThe prefix of a tag definition name

SELECT examples

Get the tag definition with the given name.

SELECT
name,
attributeDefs,
category,
createTime,
createdBy,
description,
entityTypes,
guid,
options,
serviceType,
subTypes,
superTypes,
typeVersion,
updateTime,
updatedBy,
version
FROM confluent.catalog.tag_defs
WHERE tagName = '{{ tagName }}' -- required
;

INSERT examples

Bulk create API for tag definitions.

INSERT INTO confluent.catalog.tag_defs (

)
SELECT

RETURNING
name,
attributeDefs,
category,
createTime,
createdBy,
description,
entityTypes,
error,
guid,
options,
serviceType,
subTypes,
superTypes,
typeVersion,
updateTime,
updatedBy,
version
;

REPLACE examples

Bulk update API for tag definitions.

REPLACE confluent.catalog.tag_defs
SET
-- No updatable properties
RETURNING
name,
attributeDefs,
category,
createTime,
createdBy,
description,
entityTypes,
error,
guid,
options,
serviceType,
subTypes,
superTypes,
typeVersion,
updateTime,
updatedBy,
version;

DELETE examples

Delete API for tag definition identified by its name.

DELETE FROM confluent.catalog.tag_defs
WHERE tagName = '{{ tagName }}' --required
;