- NAME
-
- gcloud datastream objects lookup - lookup a Datastream stream object
- SYNOPSIS
-
-
gcloud datastream objects lookup
(--mysql-database
=MYSQL_DATABASE
--mysql-table
=MYSQL_TABLE
|--oracle-schema
=ORACLE_SCHEMA
--oracle-table
=ORACLE_TABLE
|--postgresql-schema
=POSTGRESQL_SCHEMA
--postgresql-table
=POSTGRESQL_TABLE
|--sqlserver-schema
=SQLSERVER_SCHEMA
--sqlserver-table
=SQLSERVER_TABLE
) (--stream
=STREAM
:--location
=LOCATION
) [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
- Lookup a stream object by its source object identifier (e.g. schema.table)
- EXAMPLES
-
To lookup an existing Mysql stream object:
gcloud datastream objects lookup --stream=my-stream --location=us-central1 --mysql-database=my-db --mysql-table=my-table
To lookup an existing Oracle stream object:
gcloud datastream objects lookup --stream=my-stream --location=us-central1 --oracle-schema=my-schema --oracle-table=my-table
To lookup an existing PostgreSQL stream object:
gcloud datastream objects lookup --stream=my-stream --location=us-central1 --postgresql-schema=my-schema --postgresql-table=my-table
- REQUIRED FLAGS
-
-
Exactly one of these must be specified:
--mysql-database
=MYSQL_DATABASE
-
Mysql database for the object.
This flag argument must be specified if any of the other arguments in this group are specified.
--mysql-table
=MYSQL_TABLE
-
Mysql table for the object.
This flag argument must be specified if any of the other arguments in this group are specified.
--oracle-schema
=ORACLE_SCHEMA
-
Oracle schema for the object.
This flag argument must be specified if any of the other arguments in this group are specified.
--oracle-table
=ORACLE_TABLE
-
Oracle table for the object.
This flag argument must be specified if any of the other arguments in this group are specified.
--postgresql-schema
=POSTGRESQL_SCHEMA
-
PostgreSQL schema for the object.
This flag argument must be specified if any of the other arguments in this group are specified.
--postgresql-table
=POSTGRESQL_TABLE
-
PostgreSQL table for the object.
This flag argument must be specified if any of the other arguments in this group are specified.
--sqlserver-schema
=SQLSERVER_SCHEMA
-
SQL Server schema for the object.
This flag argument must be specified if any of the other arguments in this group are specified.
--sqlserver-table
=SQLSERVER_TABLE
-
SQL Server table for the object.
This flag argument must be specified if any of the other arguments in this group are specified.
-
Stream resource - The stream to list objects for. The arguments in this group
can be used to specify the attributes of this resource. (NOTE) Some attributes
are not given arguments in this group but can be set in other ways.
To set the
project
attribute:-
provide the argument
--stream
on the command line with a fully specified name; -
provide the argument
--project
on the command line; -
set the property
core/project
.
This must be specified.
--stream
=STREAM
-
ID of the stream or fully qualified identifier for the stream.
To set the
stream
attribute:-
provide the argument
--stream
on the command line.
This flag argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--location
=LOCATION
-
The Cloud location for the stream.
To set the
location
attribute:-
provide the argument
--stream
on the command line with a fully specified name; -
provide the argument
--location
on the command line.
-
provide the argument
-
provide the argument
-
Exactly one of these must 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 help
for details.
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 2024-06-11 UTC.