entries
Creates, updates, deletes, gets or lists a entries
resource.
Overview
Name | entries |
Type | Resource |
Id | google.dataplex.entries |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Identifier. 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}. |
aspects | object | Optional. 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} |
createTime | string | Output only. The time when the entry was created in Dataplex. |
entrySource | object | Information related to the source system of the data resource that is represented by the entry. |
entryType | string | Required. 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}. |
fullyQualifiedName | string | Optional. 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. |
parentEntry | string | Optional. Immutable. The resource name of the parent entry. |
updateTime | string | Output only. The time when the entry was last updated in Dataplex. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_entry_groups_entries_get | SELECT | entriesId, entryGroupsId, locationsId, projectsId | Gets an Entry. |
projects_locations_entry_groups_entries_list | SELECT | entryGroupsId, locationsId, projectsId | Lists Entries within an EntryGroup. |
projects_locations_entry_groups_entries_create | INSERT | entryGroupsId, locationsId, projectsId | Creates an Entry. |
projects_locations_entry_groups_entries_delete | DELETE | entriesId, entryGroupsId, locationsId, projectsId | Deletes an Entry. |
projects_locations_entry_groups_entries_patch | UPDATE | entriesId, entryGroupsId, locationsId, projectsId | Updates an Entry. |
SELECT
examples
Lists Entries within an EntryGroup.
SELECT
name,
aspects,
createTime,
entrySource,
entryType,
fullyQualifiedName,
parentEntry,
updateTime
FROM google.dataplex.entries
WHERE entryGroupsId = '{{ entryGroupsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new entries
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.dataplex.entries (
entryGroupsId,
locationsId,
projectsId,
name,
entryType,
aspects,
parentEntry,
fullyQualifiedName,
entrySource
)
SELECT
'{{ entryGroupsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ entryType }}',
'{{ aspects }}',
'{{ parentEntry }}',
'{{ fullyQualifiedName }}',
'{{ entrySource }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: entryType
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: aspects
value: object
- name: parentEntry
value: string
- name: fullyQualifiedName
value: string
- name: entrySource
value:
- name: resource
value: string
- name: system
value: string
- name: platform
value: string
- name: displayName
value: string
- name: description
value: string
- name: labels
value: object
- name: ancestors
value:
- - name: name
value: string
- name: type
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: location
value: string
UPDATE
example
Updates a entries
resource.
/*+ update */
UPDATE google.dataplex.entries
SET
name = '{{ name }}',
entryType = '{{ entryType }}',
aspects = '{{ aspects }}',
parentEntry = '{{ parentEntry }}',
fullyQualifiedName = '{{ fullyQualifiedName }}',
entrySource = '{{ entrySource }}'
WHERE
entriesId = '{{ entriesId }}'
AND entryGroupsId = '{{ entryGroupsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified entries
resource.
/*+ delete */
DELETE FROM google.dataplex.entries
WHERE entriesId = '{{ entriesId }}'
AND entryGroupsId = '{{ entryGroupsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';