File: //snap/google-cloud-cli/396/help/man/man1/gcloud_beta_alloydb_clusters_import.1
.TH "GCLOUD_BETA_ALLOYDB_CLUSTERS_IMPORT" 1
.SH "NAME"
.HP
gcloud beta alloydb clusters import \- import data to an AlloyDB cluster from Google Cloud Storage
.SH "SYNOPSIS"
.HP
\f5gcloud beta alloydb clusters import\fR \fICLUSTER\fR \fB\-\-gcs\-uri\fR=\fIGCS_URI\fR \fB\-\-region\fR=\fIREGION\fR (\fB\-\-sql\fR\ |\ [\fB\-\-csv\fR\ \fB\-\-table\fR=\fITABLE\fR\ :\ \fB\-\-columns\fR=\fICOLUMNS\fR\ \fB\-\-escape\-character\fR=\fIESCAPE_CHARACTER\fR\ \fB\-\-field\-delimiter\fR=\fIFIELD_DELIMITER\fR\ \fB\-\-quote\-character\fR=\fIQUOTE_CHARACTER\fR]) [\fB\-\-async\fR] [\fB\-\-database\fR=\fIDATABASE\fR] [\fB\-\-user\fR=\fIUSER\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(BETA)\fR Import data to an AlloyDB cluster from Google Cloud Storage.
.SH "EXAMPLES"
To import data into a cluster, run:
.RS 2m
$ gcloud beta alloydb clusters import my\-cluster \e
\-\-region=us\-central1 \-\-database=my\-database \e
\-\-gcs\-uri=gs://my\-bucket/source\-file\-path \-\-sql \-\-user=my\-user"
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fICLUSTER\fR
AlloyDB cluster ID
.RE
.sp
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
URI of the source file for import.
This must be specified.
.RS 2m
.TP 2m
\fB\-\-gcs\-uri\fR=\fIGCS_URI\fR
Path to the Google Cloud Storage file from which import has to be done.
.RE
.sp
.TP 2m
\fB\-\-region\fR=\fIREGION\fR
Regional location (e.g. \f5asia\-east1\fR, \f5us\-east1\fR). See the full list
of regions at https://cloud.google.com/sql/docs/instance\-locations.
.TP 2m
Import options for the cluster.
Exactly one of these must be specified:
.RS 2m
.TP 2m
SQL import options for the cluster.
.RS 2m
.TP 2m
\fB\-\-sql\fR
Specify source file type.
.RE
.sp
.TP 2m
CSV import options for the cluster.
.RS 2m
.TP 2m
\fB\-\-csv\fR
Specify source file type.
This flag argument must be specified if any of the other arguments in this group
are specified.
.TP 2m
\fB\-\-table\fR=\fITABLE\fR
Table name to which the data has to be imported.
This flag argument must be specified if any of the other arguments in this group
are specified.
.TP 2m
\fB\-\-columns\fR=\fICOLUMNS\fR
Comma\-separated list of column names to be used for import.
.TP 2m
\fB\-\-escape\-character\fR=\fIESCAPE_CHARACTER\fR
Escape character in the source file.
.TP 2m
\fB\-\-field\-delimiter\fR=\fIFIELD_DELIMITER\fR
Field delimiter in the source file.
.TP 2m
\fB\-\-quote\-character\fR=\fIQUOTE_CHARACTER\fR
Quote character in the source file.
.RE
.RE
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
\fB\-\-async\fR
Return immediately, without waiting for the operation in progress to complete.
.TP 2m
\fB\-\-database\fR=\fIDATABASE\fR
Database name.
.TP 2m
\fB\-\-user\fR=\fIUSER\fR
Database user for the import.
.RE
.sp
.SH "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 \fB$ gcloud help\fR for details.
.SH "NOTES"
This command is currently in beta and might change without notice. These
variants are also available:
.RS 2m
$ gcloud alloydb clusters import
.RE
.RS 2m
$ gcloud alpha alloydb clusters import
.RE