gcloud datastream objects lookup - lookup a Datastream stream object
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) (--stream=STREAM : --location=LOCATION) [GCLOUD_WIDE_FLAG ...]
Lookup a stream object by its source object identifier (e.g. schema.table)
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
- 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.
- 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.
- --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.
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.