Skip to main content

entry_links

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

Overview​

Nameentry_links
TypeResource
Idgoogle.dataplex.entry_links

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringOutput only. Immutable. Identifier. The relative resource name of the Entry Link, of the form: projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}
aspectsobjectOptional. The aspects that are attached to the entry link. The format of the aspect key has to be the following: {project_id_or_number}.{location_id}.{aspect_type_id} Currently, only a single aspect of a Dataplex-owned Aspect Type is allowed.
createTimestring (google-datetime)Output only. The time when the Entry Link was created.
entryLinkTypestringRequired. Immutable. Relative resource name of the Entry Link Type used to create this Entry Link. For example: Entry link between synonym terms in a glossary: projects/dataplex-types/locations/global/entryLinkTypes/synonym Entry link between related terms in a glossary: projects/dataplex-types/locations/global/entryLinkTypes/related Entry link between glossary terms and data assets: projects/dataplex-types/locations/global/entryLinkTypes/definition
entryReferencesarrayRequired. Immutable. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.
updateTimestring (google-datetime)Output only. The time when the Entry Link was last updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_entry_groups_entry_links_getselectprojectsId, locationsId, entryGroupsId, entryLinksIdGets an Entry Link.
projects_locations_entry_groups_entry_links_createinsertprojectsId, locationsId, entryGroupsIdentryLinkIdCreates an Entry Link.
projects_locations_entry_groups_entry_links_patchupdateprojectsId, locationsId, entryGroupsId, entryLinksIdallowMissing, aspectKeysUpdates an Entry Link.
projects_locations_entry_groups_entry_links_deletedeleteprojectsId, locationsId, entryGroupsId, entryLinksIdDeletes an Entry Link.

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
entryGroupsIdstring
entryLinksIdstring
locationsIdstring
projectsIdstring
allowMissingboolean
aspectKeysstring
entryLinkIdstring

SELECT examples​

Gets an Entry Link.

SELECT
name,
aspects,
createTime,
entryLinkType,
entryReferences,
updateTime
FROM google.dataplex.entry_links
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND entryGroupsId = '{{ entryGroupsId }}' -- required
AND entryLinksId = '{{ entryLinksId }}' -- required
;

INSERT examples​

Creates an Entry Link.

INSERT INTO google.dataplex.entry_links (
data__aspects,
data__entryLinkType,
data__entryReferences,
projectsId,
locationsId,
entryGroupsId,
entryLinkId
)
SELECT
'{{ aspects }}',
'{{ entryLinkType }}',
'{{ entryReferences }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ entryGroupsId }}',
'{{ entryLinkId }}'
RETURNING
name,
aspects,
createTime,
entryLinkType,
entryReferences,
updateTime
;

UPDATE examples​

Updates an Entry Link.

UPDATE google.dataplex.entry_links
SET
data__aspects = '{{ aspects }}',
data__entryLinkType = '{{ entryLinkType }}',
data__entryReferences = '{{ entryReferences }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND entryGroupsId = '{{ entryGroupsId }}' --required
AND entryLinksId = '{{ entryLinksId }}' --required
AND allowMissing = {{ allowMissing}}
AND aspectKeys = '{{ aspectKeys}}'
RETURNING
name,
aspects,
createTime,
entryLinkType,
entryReferences,
updateTime;

DELETE examples​

Deletes an Entry Link.

DELETE FROM google.dataplex.entry_links
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND entryGroupsId = '{{ entryGroupsId }}' --required
AND entryLinksId = '{{ entryLinksId }}' --required
;