gcloud beta alloydb clusters import

NAME
gcloud beta alloydb clusters import - import data to an AlloyDB cluster from Google Cloud Storage
SYNOPSIS
gcloud beta alloydb clusters importCLUSTER--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:
gcloudbetaalloydbclustersimportmy-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 thefull list of regions athttps://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 groupare 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 groupare 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. Thesevariants are also available:
gcloudalloydbclustersimport
gcloudalphaalloydbclustersimport

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.