- NAME
-
- gcloud beta datastream connection-profiles discover - discover a Datastream connection profile
- SYNOPSIS
-
-
gcloud beta datastream connection-profiles discover--location=LOCATION(--connection-profile-name=CONNECTION_PROFILE_NAME|--connection-profile-object-file=CONNECTION_PROFILE_OBJECT_FILE) [--full-hierarchy|--hierarchy-depth=HIERARCHY_DEPTH] [--mysql-rdbms-file=MYSQL_RDBMS_FILE|--oracle-rdbms-file=ORACLE_RDBMS_FILE|--postgresql-rdbms-file=POSTGRESQL_RDBMS_FILE|--sqlserver-rdbms-file=SQLSERVER_RDBMS_FILE] [--recursive|--recursive-depth=RECURSIVE_DEPTH] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(BETA)(DEPRECATED)Datastream beta version is deprecated. Please use` gcloud datastream connection-profiles discovercommand instead.Discover data objects accessible from a Datastream connection profile
- EXAMPLES
- To discover an existing connection profile:
gcloud beta datastream connection-profiles discover CONNECTION_PROFILE --location = us-central1 --connection-profile-name = some-cp --recursive = trueTo discover a non-existing connection profile:
gcloud beta datastream connection-profiles discover CONNECTION_PROFILE --location = us-central1 --connection-profile-object-file = path/to/yaml/or/json/file - REQUIRED FLAGS
-
- Location resource - The location you want to list the connection profiles for.
This represents a Cloud resource. (NOTE) Some attributes are not given arguments
in this group but can be set in other ways.
To set the
projectattribute:- provide the argument
--locationon the command line with a fully specified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
-
--location=LOCATION - ID of the location or fully qualified identifier for the location.
To set the
locationattribute:- provide the argument
--locationon the command line.
- provide the argument
- provide the argument
- Exactly one of these must be specified:
- Connection profile resource - Resource ID of the connection profile. This
represents a Cloud resource. (NOTE) Some attributes are not given arguments in
this group but can be set in other ways.
To set the
projectattribute:- provide the argument
--connection-profile-nameon the command line with a fully specified name; - provide the argument
--projecton the command line; - set the property
core/project.
To set the
locationattribute:- provide the argument
--connection-profile-nameon the command line with a fully specified name; - provide the argument
--locationon the command line.
-
--connection-profile-name=CONNECTION_PROFILE_NAME - ID of the connection_profile or fully qualified identifier for the
connection_profile.
To set the
connection_profileattribute:- provide the argument
--connection-profile-nameon the command line. - provide the argument
- provide the argument
-
--connection-profile-object-file=CONNECTION_PROFILE_OBJECT_FILE - Path to a YAML (or JSON) file containing the configuration for a connection profile object. If you pass - as the value of the flag the file content will be read from stdin.
- Connection profile resource - Resource ID of the connection profile. This
represents a Cloud resource. (NOTE) Some attributes are not given arguments in
this group but can be set in other ways.
- Location resource - The location you want to list the connection profiles for.
This represents a Cloud resource. (NOTE) Some attributes are not given arguments
in this group but can be set in other ways.
- OPTIONAL FLAGS
-
- At most one of these can be specified:
-
--full-hierarchy - Whether to retrieve the full hierarchy of data objects (TRUE) or only the current level (FALSE).
-
--hierarchy-depth=HIERARCHY_DEPTH - The number of hierarchy levels below the current level to be retrieved.
-
- At most one of these can be specified:
-
--mysql-rdbms-file=MYSQL_RDBMS_FILE - Path to a YAML (or JSON) file containing the MySQL RDBMS to enrich with child data objects and metadata. If you pass - as the value of the flag the file content will be read from stdin.
-
--oracle-rdbms-file=ORACLE_RDBMS_FILE - Path to a YAML (or JSON) file containing the Oracle RDBMS to enrich with child data objects and metadata. If you pass - as the value of the flag the file content will be read from stdin.
-
--postgresql-rdbms-file=POSTGRESQL_RDBMS_FILE - Path to a YAML (or JSON) file containing the PostgreSQL RDBMS to enrich with child data objects and metadata. If you pass - as the value of the flag the file content will be read from stdin.
-
--sqlserver-rdbms-file=SQLSERVER_RDBMS_FILE - Path to a YAML (or JSON) file containing the SQL Server RDBMS to enrich with child data objects and metadata. If you pass - as the value of the flag the file content will be read from stdin.
-
- At most one of these can be specified:
-
--recursive - (DEPRECATED) Whether to retrieve the full hierarchy of data objects (TRUE) or
only the current level (FALSE).
The --recursive option is deprecated; use
--full-hierarchyinstead. -
--recursive-depth=RECURSIVE_DEPTH - (DEPRECATED) The number of hierarchy levels below the current level to be
retrieved.
The --recursive-depth option is deprecated; use
--hierarchy-depthinstead.
-
- At most one of these can be specified:
- 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. - NOTES
- This command is currently in beta and might change without notice. This variant
is also available:
gcloud datastream connection-profiles discover
gcloud beta datastream connection-profiles discover
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.

