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:

Successful response

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, entriesIdview, aspectTypes, pathsGets an Entry.
projects_locations_entry_groups_entries_listselectprojectsId, locationsId, entryGroupsIdpageSize, pageToken, filterLists Entries within an EntryGroup.
projects_locations_entry_groups_entries_createinsertprojectsId, locationsId, entryGroupsIdentryIdCreates an Entry.
projects_locations_entry_groups_entries_patchupdateprojectsId, locationsId, entryGroupsId, entriesIdupdateMask, allowMissing, deleteMissingAspects, aspectKeysUpdates 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 view = '{{ view }}'
AND aspectTypes = '{{ aspectTypes }}'
AND paths = '{{ paths }}';

INSERT examples

Creates an Entry.

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

UPDATE examples

Updates an Entry.

UPDATE google.dataplex.entries
SET
data__name = '{{ name }}',
data__entryType = '{{ entryType }}',
data__aspects = '{{ aspects }}',
data__parentEntry = '{{ parentEntry }}',
data__fullyQualifiedName = '{{ fullyQualifiedName }}',
data__entrySource = '{{ entrySource }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND entryGroupsId = '{{ entryGroupsId }}' --required
AND entriesId = '{{ entriesId }}' --required
AND updateMask = '{{ updateMask}}'
AND allowMissing = {{ allowMissing}}
AND deleteMissingAspects = {{ deleteMissingAspects}}
AND aspectKeys = '{{ aspectKeys}}'
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;