Stay organized with collections Save and categorize content based on your preferences.
gcloud beta compute snapshots create
NAME
[--async
] [--chain-name
=CHAIN_NAME
] [--csek-key-file
=FILE
] [--description
=DESCRIPTION
] [--guest-flush
] [--labels
=[KEY
=VALUE
,…]] [--snapshot-type
=SNAPSHOT_TYPE
] [--source-disk
=SOURCE_DISK
] [--source-disk-for-recovery-checkpoint
=SOURCE_DISK_FOR_RECOVERY_CHECKPOINT
] [--source-disk-for-recovery-checkpoint-region
=SOURCE_DISK_FOR_RECOVERY_CHECKPOINT_REGION
] [--source-disk-key-file
=FILE
] [--source-instant-snapshot
=SOURCE_INSTANT_SNAPSHOT
] [--source-instant-snapshot-key-file
=FILE
] [--storage-location
=LOCATION
] [--global
| --region
=REGION
] [--kms-key
=KMS_KEY
: --kms-keyring
=KMS_KEYRING
--kms-location
=KMS_LOCATION
--kms-project
=KMS_PROJECT
] [--source-disk-region
=SOURCE_DISK_REGION
| --source-disk-zone
=SOURCE_DISK_ZONE
] [--source-instant-snapshot-region
=SOURCE_INSTANT_SNAPSHOT_REGION
| --source-instant-snapshot-zone
=SOURCE_INSTANT_SNAPSHOT_ZONE
] [GCLOUD_WIDE_FLAG …
]
(BETA)
gcloud beta compute snapshots create
creates snapshot of persistent disk. Snapshots are useful for backing up persistent disk data and for creating custom images. For more information, see https://cloud.google.com/compute/docs/disks/create-snapshots.
gcloud beta compute snapshots create my-snap --source-disk=my-disk --source-disk-zone=us-east1-a
NAME
--async
--chain-name
=CHAIN_NAME
--csek-key-file
=FILE
If you pass -
as value of the flag, the CSEK is read from stdin. See https://cloud.google.com/compute/docs/disks/customer-supplied-encryption for more details.
--description
=DESCRIPTION
--guest-flush
--labels
=[KEY
=VALUE
,…]
Keys must start with a lowercase character and contain only hyphens (-
), underscores (_
), lowercase characters, and numbers. Values must contain only hyphens (-
), underscores (_
), lowercase characters, and numbers.
--snapshot-type
=SNAPSHOT_TYPE
SNAPSHOT_TYPE
must be one of: ARCHIVE
, STANDARD
.
--source-disk
=SOURCE_DISK
--source-disk-for-recovery-checkpoint
=SOURCE_DISK_FOR_RECOVERY_CHECKPOINT
--source-disk-for-recovery-checkpoint-region
=SOURCE_DISK_FOR_RECOVERY_CHECKPOINT_REGION
compute/region
property value for this command invocation.
--source-disk-key-file
=FILE
--source-instant-snapshot
=SOURCE_INSTANT_SNAPSHOT
--source-instant-snapshot-key-file
=FILE
--storage-location
=LOCATION
At most one of these can be specified:
--global
--region
=REGION
--kms-key
=KMS_KEY
To set the kms-key
attribute:
--kms-key
on the command line.This flag argument must be specified if any of the other arguments in this group are specified.
--kms-keyring
=KMS_KEYRING
To set the kms-keyring
attribute:
--kms-key
on the command line with a fully specified name;--kms-keyring
on the command line.--kms-location
=KMS_LOCATION
To set the kms-location
attribute:
--kms-key
on the command line with a fully specified name;--kms-location
on the command line;--region
on the command line.--kms-project
=KMS_PROJECT
To set the kms-project
attribute:
--kms-key
on the command line with a fully specified name;--kms-project
on the command line;core/project
.--source-disk-region
=SOURCE_DISK_REGION
compute/region
property value for this command invocation.
--source-disk-zone
=SOURCE_DISK_ZONE
compute/zone
property value for this command invocation.
--source-instant-snapshot-region
=SOURCE_INSTANT_SNAPSHOT_REGION
compute/region
property value for this command invocation.
--source-instant-snapshot-zone
=SOURCE_INSTANT_SNAPSHOT_ZONE
compute/zone
property value for this command invocation.
--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.
gcloud compute snapshots create
gcloud alpha compute snapshots 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 2025-05-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-07 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4