Skip to main content

entry_groups

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

Overview

Nameentry_groups
TypeResource
Idgoogle.datacatalog.entry_groups

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name of the entry group in URL format. Note: The entry group itself and its child resources might not be stored in the location specified in its name.
dataCatalogTimestampsobjectOutput only. Timestamps of the entry group. Default value is empty. (id: GoogleCloudDatacatalogV1SystemTimestamps)
descriptionstringEntry group description. Can consist of several sentences or paragraphs that describe the entry group contents. Default value is an empty string.
displayNamestringA short name to identify the entry group, for example, "analytics data - jan 2011". Default value is an empty string.
transferredToDataplexbooleanOptional. When set to [true], it means DataCatalog EntryGroup was transferred to Dataplex Universal Catalog. It makes EntryGroup and its Entries to be read-only in DataCatalog. However, new Tags on EntryGroup and its Entries can be created. After setting the flag to [true] it cannot be unset.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_entry_groups_getselectprojectsId, locationsId, entryGroupsIdreadMaskGets an entry group.
projects_locations_entry_groups_listselectprojectsId, locationsIdpageSize, pageTokenLists entry groups.
projects_locations_entry_groups_createinsertprojectsId, locationsIdentryGroupIdCreates an entry group. An entry group contains logically related entries together with Cloud Identity and Access Management policies. These policies specify users who can create, edit, and view entries within entry groups. Data Catalog automatically creates entry groups with names that start with the @ symbol for the following resources: * BigQuery entries (@bigquery) * Pub/Sub topics (@pubsub) * Dataproc Metastore services (@dataproc_metastore_{SERVICE_NAME_HASH}) You can create your own entry groups for Cloud Storage fileset entries and custom entries together with the corresponding IAM policies. User-created entry groups can't contain the @ symbol, it is reserved for automatically created groups. Entry groups, like entries, can be searched. A maximum of 10,000 entry groups may be created per organization across all locations. You must enable the Data Catalog API in the project identified by the parent parameter. For more information, see Data Catalog resource project.
projects_locations_entry_groups_patchupdateprojectsId, locationsId, entryGroupsIdupdateMaskUpdates an entry group. You must enable the Data Catalog API in the project identified by the entry_group.name parameter. For more information, see Data Catalog resource project.
projects_locations_entry_groups_deletedeleteprojectsId, locationsId, entryGroupsIdforceDeletes an entry group. You must enable the Data Catalog API in the project identified by the name parameter. For more information, see Data Catalog resource project.

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
locationsIdstring
projectsIdstring
entryGroupIdstring
forceboolean
pageSizeinteger (int32)
pageTokenstring
readMaskstring (google-fieldmask)
updateMaskstring (google-fieldmask)

SELECT examples

Gets an entry group.

SELECT
name,
dataCatalogTimestamps,
description,
displayName,
transferredToDataplex
FROM google.datacatalog.entry_groups
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND entryGroupsId = '{{ entryGroupsId }}' -- required
AND readMask = '{{ readMask }}';

INSERT examples

Creates an entry group. An entry group contains logically related entries together with Cloud Identity and Access Management policies. These policies specify users who can create, edit, and view entries within entry groups. Data Catalog automatically creates entry groups with names that start with the @ symbol for the following resources: * BigQuery entries (@bigquery) * Pub/Sub topics (@pubsub) * Dataproc Metastore services (@dataproc_metastore_{SERVICE_NAME_HASH}) You can create your own entry groups for Cloud Storage fileset entries and custom entries together with the corresponding IAM policies. User-created entry groups can't contain the @ symbol, it is reserved for automatically created groups. Entry groups, like entries, can be searched. A maximum of 10,000 entry groups may be created per organization across all locations. You must enable the Data Catalog API in the project identified by the parent parameter. For more information, see Data Catalog resource project.

INSERT INTO google.datacatalog.entry_groups (
data__name,
data__displayName,
data__description,
data__transferredToDataplex,
projectsId,
locationsId,
entryGroupId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ description }}',
{{ transferredToDataplex }},
'{{ projectsId }}',
'{{ locationsId }}',
'{{ entryGroupId }}'
RETURNING
name,
dataCatalogTimestamps,
description,
displayName,
transferredToDataplex
;

UPDATE examples

Updates an entry group. You must enable the Data Catalog API in the project identified by the entry_group.name parameter. For more information, see Data Catalog resource project.

UPDATE google.datacatalog.entry_groups
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__description = '{{ description }}',
data__transferredToDataplex = {{ transferredToDataplex }}
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND entryGroupsId = '{{ entryGroupsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
dataCatalogTimestamps,
description,
displayName,
transferredToDataplex;

DELETE examples

Deletes an entry group. You must enable the Data Catalog API in the project identified by the name parameter. For more information, see Data Catalog resource project.

DELETE FROM google.datacatalog.entry_groups
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND entryGroupsId = '{{ entryGroupsId }}' --required
AND force = '{{ force }}';