gcloud beta spanner operations list

NAME
gcloud beta spanner operations list - list the Cloud Spanner operations
SYNOPSIS
gcloud beta spanner operations list(--instance=INSTANCE    |--instance-config=INSTANCE_CONFIG)[--backup=BACKUP][--database=DATABASE][--instance-partition=INSTANCE_PARTITION][--type=TYPE][--filter=EXPRESSION][--limit=LIMIT][--page-size=PAGE_SIZE][--sort-by=[FIELD,…]][--uri][GCLOUD_WIDE_FLAG]
DESCRIPTION
(BETA) List the Cloud Spanner operations.
EXAMPLES
To list Cloud Spanner instance operations for an instance, run:
gcloudbetaspanneroperationslist--instance=my-instance-id--type=INSTANCE

To list Cloud Spanner backup operations for an instance, run:

gcloudbetaspanneroperationslist--instance=my-instance-id--type=BACKUP

To list Cloud Spanner database operations for an instance, run:

gcloudbetaspanneroperationslist--instance=my-instance-id--type=DATABASE

To list Cloud Spanner database operations for a database, run:

gcloudbetaspanneroperationslist--instance=my-instance-id--database=my-database-id--type=DATABASE

To list Cloud Spanner backup operations for a database, run:

gcloudbetaspanneroperationslist--instance=my-instance-id--database=my-database-id--type=BACKUP

To list Cloud Spanner backup operations for a backup, run:

gcloudbetaspanneroperationslist--instance=my-instance-id--backup=my-backup-id--type=BACKUP

To list instance partition operations for an instance partition, run:

gcloudbetaspanneroperationslist--instance=my-instance-id--instance-partition=my-partition-id--type=INSTANCE_PARTITION

To list instance partition operations for all instance partitions belonging tothis instance, run:

gcloudbetaspanneroperationslist--instance=my-instance-id--type=INSTANCE_PARTITION
REQUIRED FLAGS
Exactly one of these must be specified:
--instance=INSTANCE
The ID of the instance the operation is executing on.
--instance-config=INSTANCE_CONFIG
The ID of the instance configuration the operation is executing on.
FLAGS
--backup=BACKUP
For backup operations, the name of the backup the operations are executing on.
--database=DATABASE
For database operations, the name of the database the operations are executingon.
--instance-partition=INSTANCE_PARTITION
For instance partition operations, the name of the instance partition theoperation is executing on.
--type=TYPE
(optional) List only the operations of the given type.TYPE must be one of:
BACKUP
If only the instance is specified (--instance), returns all backup operationsassociated with backups in the instance. When a backup is specified (--backup),only the backup operations for the given backup are returned.
DATABASE
If only the instance is specified (--instance), returns all database operationsassociated with the databases in the instance. When a database is specified(--database), the command would return database operations for the givendatabase.
DATABASE_CHANGE_QUORUM
Database change quorum operations are returned for all databases in the giveninstance (--instance only) or only those associated with the given database(--database).
DATABASE_CREATE
Database create operations are returned for all databases in the given instance(--instance only) or only those associated with the given database (--database)
DATABASE_RESTORE
Database restore operations are returned for all databases in the given instance(--instance only) or only those associated with the given database (--database)
DATABASE_UPDATE_DDL
Database update DDL operations are returned for all databases in the giveninstance (--instance only) or only those associated with the given database(--database)
INSTANCE
Returns instance operations for the given instance. Note, type=INSTANCE does notwork with --database or --backup.
INSTANCE_CONFIG_CREATE
Instance configuration create operations are returned for the given instanceconfiguration (--instance-config).
INSTANCE_CONFIG_UPDATE
Instance configuration update operations are returned for the given instanceconfiguration (--instance-config).
INSTANCE_PARTITION
If only the instance is specified (--instance), returns all instance partitionoperations associated with instance partitions in the instance. When an instancepartition is specified (--instance-partition), only the instance partitionoperations for the given instance partition are returned.
LIST COMMAND FLAGS
--filter=EXPRESSION
Apply a Boolean filterEXPRESSION to each resource itemto be listed. If the expression evaluatesTrue, then that item islisted. For more details and examples of filter expressions, run $gcloud topic filters. This flaginteracts with other flags that are applied in this order:--flatten,--sort-by,--filter,--limit.
--limit=LIMIT
Maximum number of resources to list. The default isunlimited. Thisflag interacts with other flags that are applied in this order:--flatten,--sort-by,--filter,--limit.
--page-size=PAGE_SIZE
Some services group resource list output into pages. This flag specifies themaximum number of resources per page. The default is determined by the serviceif it supports paging, otherwise it isunlimited (no paging).Paging may be applied before or after--filter and--limit depending on the service.
--sort-by=[FIELD,…]
Comma-separated list of resource field key names to sort by. The default orderis ascending. Prefix a field with ``~´´ for descending order on thatfield. This flag interacts with other flags that are applied in this order:--flatten,--sort-by,--filter,--limit.
--uri
Print a list of resource URIs instead of the default output, and change thecommand output to a list of URIs. If this flag is used with--format, the formatting is applied on this URI list. To displayURIs alongside other keys instead, use theuri() transform.
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:
gcloudspanneroperationslist
gcloudalphaspanneroperationslist

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 2026-02-18 UTC.