Skip to main content

terms

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

Overview

Nameterms
TypeResource
Idgoogle.dataplex.terms

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Identifier. The resource name of the GlossaryTerm. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id}
createTimestring (google-datetime)Output only. The time at which the GlossaryTerm was created.
descriptionstringOptional. The user-mutable description of the GlossaryTerm.
displayNamestringOptional. User friendly display name of the GlossaryTerm. This is user-mutable. This will be same as the GlossaryTermId, if not specified.
labelsobjectOptional. User-defined labels for the GlossaryTerm.
parentstringRequired. The immediate parent of the GlossaryTerm in the resource-hierarchy. It can either be a Glossary or a GlossaryCategory. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} OR projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}
uidstringOutput only. System generated unique id for the GlossaryTerm. This ID will be different if the GlossaryTerm is deleted and re-created with the same name.
updateTimestring (google-datetime)Output only. The time at which the GlossaryTerm was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_glossaries_terms_getselectprojectsId, locationsId, glossariesId, termsIdGets a GlossaryTerm resource.
projects_locations_glossaries_terms_listselectprojectsId, locationsId, glossariesIdpageSize, pageToken, filter, orderByLists GlossaryTerm resources in a Glossary.
projects_locations_glossaries_terms_createinsertprojectsId, locationsId, glossariesIdtermIdCreates a new GlossaryTerm resource.
projects_locations_glossaries_terms_patchupdateprojectsId, locationsId, glossariesId, termsIdupdateMaskUpdates a GlossaryTerm resource.
projects_locations_glossaries_terms_deletedeleteprojectsId, locationsId, glossariesId, termsIdDeletes a GlossaryTerm resource.

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
glossariesIdstring
locationsIdstring
projectsIdstring
termsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
termIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets a GlossaryTerm resource.

SELECT
name,
createTime,
description,
displayName,
labels,
parent,
uid,
updateTime
FROM google.dataplex.terms
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND glossariesId = '{{ glossariesId }}' -- required
AND termsId = '{{ termsId }}' -- required;

INSERT examples

Creates a new GlossaryTerm resource.

INSERT INTO google.dataplex.terms (
data__displayName,
data__description,
data__labels,
data__parent,
projectsId,
locationsId,
glossariesId,
termId
)
SELECT
'{{ displayName }}',
'{{ description }}',
'{{ labels }}',
'{{ parent }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ glossariesId }}',
'{{ termId }}'
RETURNING
name,
createTime,
description,
displayName,
labels,
parent,
uid,
updateTime
;

UPDATE examples

Updates a GlossaryTerm resource.

UPDATE google.dataplex.terms
SET
data__displayName = '{{ displayName }}',
data__description = '{{ description }}',
data__labels = '{{ labels }}',
data__parent = '{{ parent }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND glossariesId = '{{ glossariesId }}' --required
AND termsId = '{{ termsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
description,
displayName,
labels,
parent,
uid,
updateTime;

DELETE examples

Deletes a GlossaryTerm resource.

DELETE FROM google.dataplex.terms
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND glossariesId = '{{ glossariesId }}' --required
AND termsId = '{{ termsId }}' --required;