Stay organized with collections Save and categorize content based on your preferences.
In certain scenarios, you might want to copy an instant snapshot to a different zone or region from its source disk. Possible occasions include:
In these scenarios, you must create a standard or archive snapshot from the instant snapshot, and use that newly created snapshot.
This page explains how to create a standard or archive snapshot from an instant snapshot.
Before you beginSelect the tab for how you plan to use the samples on this page:
ConsoleWhen you use the Google Cloud console to access Google Cloud services and APIs, you don't need to set up authentication.
gcloudInstall the Google Cloud CLI. After installation, initialize the Google Cloud CLI by running the following command:
gcloud init
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
Note: If you installed the gcloud CLI previously, make sure you have the latest version by runninggcloud components update
.To use the REST API samples on this page in a local development environment, you use the credentials you provide to the gcloud CLI.
Install the Google Cloud CLI. After installation, initialize the Google Cloud CLI by running the following command:
gcloud init
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
For more information, see Authenticate for using REST in the Google Cloud authentication documentation.
To get the permissions that you need to create a standard snapshot from an instant snapshot, ask your administrator to grant you the following IAM roles on the project:
roles/compute.instanceAdmin.v1
)roles/iam.serviceAccountUser
)For more information about granting roles, see Manage access to projects, folders, and organizations.
These predefined roles contain the permissions required to create a standard snapshot from an instant snapshot. To see the exact permissions that are required, expand the Required permissions section:
Required permissionsThe following permissions are required to create a standard snapshot from an instant snapshot:
compute.snapshots.create
on the destination project for the new standard snapshot compute.instantSnapshots.useReadOnly
on the source instant snapshotYou might also be able to get these permissions with custom roles or other predefined roles.
RestrictionsIf an instant snapshot's source disk is encrypted with a customer-supplied encryption key (CSEK), the instant snapshot is also encrypted with the same key. Therefore, to create a standard snapshot from a CSEK-encrypted instant snapshot, you must provide the key you used to encrypt the source disk.
You can create a standard snapshot of an individual disk at most 6 times every 60 minutes. This limit also applies to creating a standard snapshot from an instant snapshot of a disk.
Create a standard or archive snapshot from an instant snapshotYou can create a standard or archive snapshot from an instant snapshot by using the gcloud CLI, Google Cloud console, or REST.
ConsoleFind the instant snapshot:
In the Google Cloud console, go to the Snapshots page.
Click the Instant snapshots tab.
In the Name column, note the name of the snapshot you want to restore.
Click Create snapshot.
In the Name field, enter a unique name to identify the snapshot.
Optional. Add more details about the snapshot in the Description field.
Under Snapshot source type, choose Instant snapshot.
In the Source instant snapshot list, select the instant snapshot you want to use.
For Type, choose either Snapshot or Archive snapshot.
In the Location section, choose your snapshot storage location. The predefined or customized default location defined in your snapshot settings is automatically selected. Optionally, you can override the snapshot settings and store your snapshots in a custom storage location by doing the following:
Choose the type of storage location that you want for your snapshot.
In the Select location field, select the specific region or multi-region that you want to use. To use the region or multi-region that is closest to your source disk, select Based on disk's location.
If the instant snapshot is CSEK-encrypted, provide the encryption key:
Click Create to create the snapshot.
Create a standard snapshot from a zonal or regional instant snapshot with the gcloud compute snapshots create
command. You use different flags depending on whether the instant snapshot is of a zonal or regional disk.
Create your standard or archive snapshot from a zonal instant snapshot using the storage location policy defined by your snapshot settings or using an alternative storage location of your choice. For more information, see Choose your snapshot storage location.
gcloud compute snapshots create NEW_STANDARD_SNAPSHOT_NAME \ --source-instant-snapshot=SRC_INSTANT_SNAPSHOT_NAME \ --source-instant-snapshot-zone=SOURCE_ZONE \ --snapshot-type=SNAPSHOT_TYPE
Replace the following with the corresponding values:
NEW_STANDARD_SNAPSHOT_NAME
: a unique name for the new standard snapshot.SRC_INSTANT_SNAPSHOT_NAME
: the name of the source instant snapshot.SOURCE_ZONE
: the zone where the instant snapshot is located.SNAPSHOT_TYPE
: the type of snapshot to create, either STANDARD
or ARCHIVE
. If this flag is omitted, a standard snapshot is created.
To override the snapshot settings and create a standard or archive snapshot in a custom storage location, include the --storage-location
flag to indicate where to store your snapshot:
gcloud compute snapshots create NEW_STANDARD_SNAPSHOT_NAME \ --source-instant-snapshot=SRC_INSTANT_SNAPSHOT_NAME \ --source-instant-snapshot-zone=SOURCE_ZONE \ --storage-location=STORAGE_LOCATION \ --snapshot-type=SNAPSHOT_TYPE
Replace the following with the corresponding values:
NEW_STANDARD_SNAPSHOT_NAME
: a unique name for the new snapshot.SRC_INSTANT_SNAPSHOT_NAME
: the name of the source instant snapshot.SOURCE_ZONE
: the zone where the instant snapshot is located.STORAGE_LOCATION
: For custom storage locations, this is the Cloud Storage multi-region or the Cloud Storage region where you want to store your snapshot. You can specify only one storage location.
Use the --storage-location
flag only when you want to override the predefined or customized default storage location configured in your snapshot settings.
SNAPSHOT_TYPE
: the type of snapshot to create, either STANDARD
or ARCHIVE
. If this flag is omitted, a standard snapshot is created.
Create your standard or archive snapshot from a regional instant snapshot using the storage location policy defined by your snapshot settings or using an alternative storage location of your choice. For more information, see Choose your snapshot storage location.
gcloud compute snapshots create NEW_STANDARD_SNAPSHOT_NAME \ --source-instant-snapshot=SRC_INSTANT_SNAPSHOT_NAME \ --source-instant-snapshot-region=SOURCE_REGION \ --snapshot-type=SNAPSHOT_TYPE
Replace the following with the corresponding values:
NEW_STANDARD_SNAPSHOT_NAME
: a unique name for the new standard snapshot.SRC_INSTANT_SNAPSHOT_NAME
: the name of the source instant snapshot.SOURCE_REGION
: the region where the instant snapshot is located.SNAPSHOT_TYPE
: the type of snapshot to create, either STANDARD
or ARCHIVE
. If this flag is omitted, a standard snapshot is created.
To override the snapshot settings and create a standard or archive snapshot in a custom storage location, include the --storage-location
flag to indicate where to store your snapshot:
gcloud compute snapshots create NEW_STANDARD_SNAPSHOT_NAME \ --source-instant-snapshot=SRC_INSTANT_SNAPSHOT_NAME \ --source-instant-snapshot-region=SOURCE_REGION \ --storage-location=STORAGE_LOCATION \ --snapshot-type=SNAPSHOT_TYPE
Replace the following with the corresponding values:
NEW_STANDARD_SNAPSHOT_NAME
: a unique name for the new snapshot.SRC_INSTANT_SNAPSHOT_NAME
: the name of the source instant snapshot.SOURCE_REGION
: the region where the instant snapshot is located.STORAGE_LOCATION
: For custom storage locations, this is the Cloud Storage multi-region or the Cloud Storage region where you want to store your snapshot. You can specify only one storage location.
Use the --storage-location
flag only when you want to override the predefined or customized default storage location configured in your snapshot settings.
SNAPSHOT_TYPE
: the type of snapshot to create, either STANDARD
or ARCHIVE
. If this flag is omitted, a standard snapshot is created.
To create a standard snapshot from a zonal or regional instant snapshot, make a POST
request to the snapshots.insert method.
The API request properties depend on whether the instant snapshot is of a zonal or regional disk.
Zonal instant snapshotCreate your standard or archive snapshot from a zonal instant snapshot using the storage location policy defined by your snapshot settings or using an alternative storage location of your choice. For more information, see Choose your snapshot storage location.
To create a standard or archive snapshot in the predefined or customized default location configured in your snapshot settings, make a POST
request to the snapshots.insert
method.
To override the snapshot settings and create the snapshot in a custom storage location, include the storageLocations
property in your request.
POST https://compute.googleapis.com/compute/v1/projects/DESTINATION_PROJECT/global/snapshots { "name": "NEW_STANDARD_SNAPSHOT_NAME", "snapshotType": "NEW_SNAPSHOT_TYPE", "sourceInstantSnapshot": "projects/SOURCE_PROJECT/zones/SOURCE_ZONE/instantSnapshots/SOURCE_INSTANT_SNAPSHOT_NAME", "sourceInstantSnapshotEncryptionKey": "SOURCE_ENCRYPTION_KEY" }
Replace the following with the corresponding values:
DESTINATION_PROJECT
: the project in which to create the new snapshot.NEW_STANDARD_SNAPSHOT_NAME
: a unique name for the new snapshot.NEW_SNAPSHOT_TYPE
: the type of snapshot to create, either STANDARD
or ARCHIVE
.SOURCE_PROJECT
: the project containing the source instant snapshot.SOURCE_ZONE
: the zone where the instant snapshot is located.SOURCE_INSTANT_SNAPSHOT_NAME
: the name of the source instant snapshot.SOURCE_ENCRYPTION_KEY
: if the instant snapshot is encrypted with a customer-supplied key or customer-managed key, replace this value with the key information. Otherwise, you can omit this property.STORAGE_LOCATION
: Optional. The Cloud Storage multi-region or the Cloud Storage region where you want to store your snapshot. You can specify only one storage location.Use the storageLocations
parameter only when you want to override the predefined or customized default storage location configured in your snapshot settings.
Create your regional standard or archive snapshot from a regional instant snapshot using the storage location policy defined by your snapshot settings or using an alternative storage location of your choice. For more information, see Choose your snapshot storage location.
To create a standard or archive snapshot volume in the predefined or customized default location configured in your snapshot settings, make a POST
request to the snapshots.insert
method.
POST https://compute.googleapis.com/compute/v1/projects/DESTINATION_PROJECT/global/snapshots { "name": "NEW_STANDARD_SNAPSHOT_NAME", "snapshotType": "NEW_SNAPSHOT_TYPE", "sourceInstantSnapshot": "projects/SOURCE_PROJECT/regions/SOURCE_REGION/instantSnapshots/SOURCE_INSTANT_SNAPSHOT_NAME", "sourceInstantSnapshotEncryptionKey": "SOURCE_ENCRYPTION_KEY" }
Replace the following with the corresponding values:
DESTINATION_PROJECT
: the project in which to create the new snapshot.NEW_STANDARD_SNAPSHOT_NAME
: a unique name for the new snapshot.NEW_SNAPSHOT_TYPE
: the type of snapshot to create, either STANDARD
or ARCHIVE
.SOURCE_PROJECT
: the project containing the source instant snapshot.SOURCE_REGION
: the region where the instant snapshot is located.SOURCE_INSTANT_SNAPSHOT_NAME
: the name of the source instant snapshot.SOURCE_ENCRYPTION_KEY
: if the instant snapshot is encrypted with a customer-supplied key or customer-managed key, replace this value with the key information. Otherwise you can omit this property.If the POST
request is successful, the response body will be an object that you can poll to get the status of the snapshot's creation. See Handling API responses for more information.
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-08-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-08-07 UTC."],[[["This guide explains how to create a standard or archive snapshot from an instant snapshot, which is necessary for various reasons, such as preserving data, protecting against outages, or moving data to long-term storage."],["Creating a standard snapshot from an instant snapshot requires specific IAM roles and permissions, including `compute.snapshots.create` and `compute.instantSnapshots.useReadOnly`."],["The process for creating a standard or archive snapshot can be completed using the Google Cloud console, the gcloud CLI, or REST, with the steps varying slightly based on whether the instant snapshot is zonal or regional."],["If the instant snapshot's source disk is encrypted with a customer-supplied encryption key (CSEK), you must provide that key when creating the standard snapshot."],["There is a limit of six standard snapshot creations per disk every 60 minutes, which applies to both creating snapshots directly from a disk or from an instant snapshot."]]],[]]
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