gcloud beta data-catalog entries create Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta data-catalog entries create - create a Data Catalog entry
- SYNOPSIS
gcloud beta data-catalog entries create(ENTRY:--entry-group=ENTRY_GROUP--location=LOCATION)--gcs-file-patterns=[GCS_FILE_PATTERNS,…][--description=DESCRIPTION][--display-name=DISPLAY_NAME][--schema=[COLUMN_NAME=COLUMN_TYPE,…] |--schema-from-file=PATH_TO_FILE][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(BETA)(DEPRECATED)This command is deprecated. Pleaseusegcloud dataplexentriesinstead.Create a Data Catalog entry.
- EXAMPLES
- To create an entry for a Google Cloud Storage fileset, run:
gcloudbetadata-catalogentriescreateentry1--location=us-central1--entry-group=group1--gcs-file-patterns="gs://bucket1/abc/*,gs://bucket1/file1"--display-name="analytics data"To create an entry for a Google Cloud Storage fileset with an inline schema,run:
gcloudbetadata-catalogentriescreateentry1--location=us-central1--entry-group=group1--gcs-file-patterns="gs://bucket1/*"--display-name="sales data"--schema="qtr=STRING,sales=FLOAT,year=STRING"To create an entry for a Google Cloud Storage fileset with a schema from a file,run:
gcloudbetadata-catalogentriescreateentry1--location=us-central1--entry-group=group1--gcs-file-patterns="gs://bucket1/*"--display-name="sales data"--schema-from-file=/tmp/schema.json - POSITIONAL ARGUMENTS
- Entry resource - Entry to create. The arguments in this group can be used tospecify the attributes of this resource. (NOTE) Some attributes are not givenarguments in this group but can be set in other ways.
To set the
projectattribute:- provide the argument
entryon the command line with a fullyspecified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
ENTRY- ID of the entry or fully qualified identifier for the entry.
To set the
entryattribute:- provide the argument
entryon the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--entry-group=ENTRY_GROUP- Entry group of the entry.To set the
entry-groupattribute:- provide the argument
entryon the command line with a fullyspecified name; - provide the argument
--entry-groupon the command line.
- provide the argument
--location=LOCATION- Location of the entry.To set the
locationattribute:- provide the argument
entryon the command line with a fullyspecified name; - provide the argument
--locationon the command line.
- provide the argument
- provide the argument
- Entry resource - Entry to create. The arguments in this group can be used tospecify the attributes of this resource. (NOTE) Some attributes are not givenarguments in this group but can be set in other ways.
- REQUIRED FLAGS
--gcs-file-patterns=[GCS_FILE_PATTERNS,…]- Patterns to identify a set of files in Google Cloud Storage. A star(
*) may be used at the end of a pattern to match arbitrary filesbeginning with that pattern.Examples of valid file patterns:
- gs://bucket_name/
*- Matches all files in 'bucket_name'. - gs://bucket_name/file
*- Matches files prefixed by 'file' in'bucket_name'. - gs://another_bucket/a.txt - Matches 'gs://another_bucket/a.txt'.
- gs://bucket_name/
- OPTIONAL FLAGS
--description=DESCRIPTION- Textual description of the entry.
--display-name=DISPLAY_NAME- Human-readable name for the entry.
- Column schema for the entry. A schema consists of a list of column names alongwith their types, descriptions, modes, and nested subcolumns. For example:
At most one of these can be specified:-column:first_namedescription:Firstnamemode:REQUIREDtype:STRING-column:last_namedescription:Lastnamemode:REQUIREDtype:STRING-column:addressesdescription:Addressesmode:REPEATEDtype:RECORDsubcolumns:-column:citydescription:Citymode:NULLABLEtype:STRING-column:statedescription:Statemode:NULLABLEtype:STRING
--schema=[COLUMN_NAME=COLUMN_TYPE,…]- Inline schema for the entry. When specifying a schema via this argument, onlycolumn names and types should be provided. Column modes will default toNULLABLE, and column descriptions and nested subcolumns are not supported.
--schema-from-file=PATH_TO_FILE- Path to a JSON or YAML file containing the schema for the entry. This can beused to specify schemas with column descriptions, column modes other thanNULLABLE, and nested subcolumns. Use a full or relative path to a local filecontaining the value of schema.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - API REFERENCE
- This command uses the
datacatalog/v1beta1API. The fulldocumentation for this API can be found at:https://cloud.google.com/data-catalog/docs/ - NOTES
- This command is currently in beta and might change without notice. Thesevariants are also available:
gclouddata-catalogentriescreategcloudalphadata-catalogentriescreate
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-22 UTC.