Skip to main content

entries

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

Overview​

Nameentries
TypeResource
Idgoogle.dataplex.entries

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The relative resource name of the entry, in the format projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}.
aspectsobjectOptional. The aspects that are attached to the entry. Depending on how the aspect is attached to the entry, the format of the aspect key can be one of the following: If the aspect is attached directly to the entry: {project_id_or_number}.{location_id}.{aspect_type_id} If the aspect is attached to an entry's path: {project_id_or_number}.{location_id}.{aspect_type_id}@{path}
createTimestring (google-datetime)Output only. The time when the entry was created in Dataplex Universal Catalog.
entrySourceobjectOptional. Information related to the source system of the data resource that is represented by the entry. (id: GoogleCloudDataplexV1EntrySource)
entryTypestringRequired. Immutable. The relative resource name of the entry type that was used to create this entry, in the format projects/{project_id_or_number}/locations/{location_id}/entryTypes/{entry_type_id}.
fullyQualifiedNamestringOptional. A name for the entry that can be referenced by an external system. For more information, see Fully qualified names (https://cloud.google.com/data-catalog/docs/fully-qualified-names). The maximum size of the field is 4000 characters.
parentEntrystringOptional. Immutable. The resource name of the parent entry, in the format projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}.
updateTimestring (google-datetime)Output only. The time when the entry was last updated in Dataplex Universal Catalog.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_entry_groups_entries_getselectprojectsId, locationsId, entryGroupsId, entriesIdaspectTypes, paths, viewGets an Entry.
projects_locations_entry_groups_entries_listselectprojectsId, locationsId, entryGroupsIdfilter, pageSize, pageTokenLists Entries within an EntryGroup.
projects_locations_entry_groups_entries_createinsertprojectsId, locationsId, entryGroupsIdentryIdCreates an Entry.
projects_locations_entry_groups_entries_patchupdateprojectsId, locationsId, entryGroupsId, entriesIdallowMissing, aspectKeys, deleteMissingAspects, updateMaskUpdates an Entry.
projects_locations_entry_groups_entries_deletedeleteprojectsId, locationsId, entryGroupsId, entriesIdDeletes an Entry.

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
entriesIdstring
entryGroupsIdstring
locationsIdstring
projectsIdstring
allowMissingboolean
aspectKeysstring
aspectTypesstring
deleteMissingAspectsboolean
entryIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring
pathsstring
updateMaskstring (google-fieldmask)
viewstring

SELECT examples​

Gets an Entry.

SELECT
name,
aspects,
createTime,
entrySource,
entryType,
fullyQualifiedName,
parentEntry,
updateTime
FROM google.dataplex.entries
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND entryGroupsId = '{{ entryGroupsId }}' -- required
AND entriesId = '{{ entriesId }}' -- required
AND aspectTypes = '{{ aspectTypes }}'
AND paths = '{{ paths }}'
AND view = '{{ view }}'
;

INSERT examples​

Creates an Entry.

INSERT INTO google.dataplex.entries (
data__aspects,
data__entrySource,
data__entryType,
data__fullyQualifiedName,
data__name,
data__parentEntry,
projectsId,
locationsId,
entryGroupsId,
entryId
)
SELECT
'{{ aspects }}',
'{{ entrySource }}',
'{{ entryType }}',
'{{ fullyQualifiedName }}',
'{{ name }}',
'{{ parentEntry }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ entryGroupsId }}',
'{{ entryId }}'
RETURNING
name,
aspects,
createTime,
entrySource,
entryType,
fullyQualifiedName,
parentEntry,
updateTime
;

UPDATE examples​

Updates an Entry.

UPDATE google.dataplex.entries
SET
data__aspects = '{{ aspects }}',
data__entrySource = '{{ entrySource }}',
data__entryType = '{{ entryType }}',
data__fullyQualifiedName = '{{ fullyQualifiedName }}',
data__name = '{{ name }}',
data__parentEntry = '{{ parentEntry }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND entryGroupsId = '{{ entryGroupsId }}' --required
AND entriesId = '{{ entriesId }}' --required
AND allowMissing = {{ allowMissing}}
AND aspectKeys = '{{ aspectKeys}}'
AND deleteMissingAspects = {{ deleteMissingAspects}}
AND updateMask = '{{ updateMask}}'
RETURNING
name,
aspects,
createTime,
entrySource,
entryType,
fullyQualifiedName,
parentEntry,
updateTime;

DELETE examples​

Deletes an Entry.

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