- NAME
-
- gcloud spanner instances create - create a Cloud Spanner instance
- SYNOPSIS
-
-
gcloud spanner instances create
INSTANCE
--config
=CONFIG
--description
=DESCRIPTION
[--async
] [--default-backup-schedule-type
=DEFAULT_BACKUP_SCHEDULE_TYPE
] [--edition
=EDITION
] [--expire-behavior
=EXPIRE_BEHAVIOR
] [--instance-type
=INSTANCE_TYPE
] [--nodes
=NODES
|--processing-units
=PROCESSING_UNITS
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
- Create a Cloud Spanner instance.
- EXAMPLES
-
To create a Cloud Spanner instance, run:
gcloud spanner instances create my-instance-id --config=regional-us-east1 --description=my-instance-display-name --nodes=3
- POSITIONAL ARGUMENTS
-
INSTANCE
- Cloud Spanner instance ID.
- REQUIRED FLAGS
-
--config
=CONFIG
- Instance configuration defines the geographic placement and replication of the databases in that instance. Available configurations can be found by running "gcloud spanner instance-configs list"
--description
=DESCRIPTION
- Description of the instance.
- OPTIONAL FLAGS
-
--async
- Return immediately, without waiting for the operation in progress to complete.
--default-backup-schedule-type
=DEFAULT_BACKUP_SCHEDULE_TYPE
-
The default backup schedule type that is used in the instance.
DEFAULT_BACKUP_SCHEDULE_TYPE
must be one of:AUTOMATIC
- A default backup schedule is created automatically when a new database is created in an instance. You can edit or delete the default backup schedule once it's created. The default backup schedule creates a full backup every 24 hours. These full backups are retained for 7 days.
DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED
- Not specified.
NONE
- No default backup schedule is created automatically when a new database is created in an instance.
--edition
=EDITION
-
Cloud Spanner edition.
EDITION
must be one of:EDITION_UNSPECIFIED
- Spanner's legacy pricing model. For more information, see the Spanner editions overview
ENTERPRISE
- Enterprise edition
ENTERPRISE_PLUS
- Enterprise Plus edition
STANDARD
- Standard edition
--expire-behavior
=EXPIRE_BEHAVIOR
-
The expire behavior of a free trial instance.
EXPIRE_BEHAVIOR
must be one of:free-to-provisioned
- When the free trial instance expires, upgrade the instance to a provisioned instance.
remove-after-grace-period
- When the free trial instance expires, disable the instance, and delete it after the grace period passes if it has not been upgraded to a provisioned instance.
--instance-type
=INSTANCE_TYPE
-
Specifies the type for this instance.
INSTANCE_TYPE
must be one of:free-instance
- Free trial instances provide no guarantees for dedicated resources, both node_count and processing_units should be 0. They come with stricter usage limits and limited support.
provisioned
- Provisioned instances have dedicated resources, standard usage limits, and support.
-
At most one of these can be specified:
--nodes
=NODES
- Number of nodes for the instance.
--processing-units
=PROCESSING_UNITS
- Number of processing units for the instance.
- 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
-
These variants are also available:
gcloud alpha spanner instances create
gcloud beta spanner instances create
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-11-12 UTC.