1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-09 02:55:19 +00:00
gcloud-help/gcloud/beta/alloydb/clusters/import
2026-02-11 11:28:25 +00:00

101 lines
2.9 KiB
Text

NAME
gcloud beta alloydb clusters import - import data to an AlloyDB cluster
from Google Cloud Storage
SYNOPSIS
gcloud beta alloydb clusters import CLUSTER --gcs-uri=GCS_URI
--region=REGION
(--sql | [--csv --table=TABLE : --columns=COLUMNS
--escape-character=ESCAPE_CHARACTER
--field-delimiter=FIELD_DELIMITER --quote-character=QUOTE_CHARACTER])
[--async] [--database=DATABASE] [--user=USER] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) Import data to an AlloyDB cluster from Google Cloud Storage.
EXAMPLES
To import data into a cluster, run:
$ gcloud beta alloydb clusters import my-cluster \
--region=us-central1 --database=my-database \
--gcs-uri=gs://my-bucket/source-file-path --sql --user=my-user"
POSITIONAL ARGUMENTS
CLUSTER
AlloyDB cluster ID
REQUIRED FLAGS
URI of the source file for import.
This must be specified.
--gcs-uri=GCS_URI
Path to the Google Cloud Storage file from which import has to be
done.
--region=REGION
Regional location (e.g. asia-east1, us-east1). See the full list of
regions at https://cloud.google.com/sql/docs/instance-locations.
Import options for the cluster.
Exactly one of these must be specified:
SQL import options for the cluster.
--sql
Specify source file type.
CSV import options for the cluster.
--csv
Specify source file type.
This flag argument must be specified if any of the other arguments in
this group are specified.
--table=TABLE
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.
--columns=COLUMNS
Comma-separated list of column names to be used for import.
--escape-character=ESCAPE_CHARACTER
Escape character in the source file.
--field-delimiter=FIELD_DELIMITER
Field delimiter in the source file.
--quote-character=QUOTE_CHARACTER
Quote character in the source file.
OPTIONAL FLAGS
--async
Return immediately, without waiting for the operation in progress to
complete.
--database=DATABASE
Database name.
--user=USER
Database user for the import.
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.
NOTES
This command is currently in beta and might change without notice. These
variants are also available:
$ gcloud alloydb clusters import
$ gcloud alpha alloydb clusters import