1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-12 07:58:28 +00:00
gcloud-help/gcloud/migration/vms/image-imports/help
2024-09-18 09:49:45 +00:00

60 lines
2.1 KiB
Text

NAME
gcloud migration vms image-imports - imports images to Google Compute
Engine from Google Cloud Storage
SYNOPSIS
gcloud migration vms image-imports COMMAND [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
gcloud alpha migration vms image-imports provides a more robust and better
supported method for importing images to Google Compute Engine. Other
image-related operations (for example, list) can be done using gcloud
compute images, as usual.
The commands use VM Migartion API which supports importing of an image from
a Google Cloud Storage file (gs://...) to a target project. VM Migration
API must be enabled in your project.
gcloud alpha migration vms image-imports create creates an Image Import
resource with a nested Image Import Job resource. The Image Import Job
resource tracks the image import progress. After the Image Import Job
completes, successfully or otherwise, there's no further use for the Image
Import resource.
The image is imported to a Google Cloud Project, desginated by the Target
Project resource. To get a list of Target Projects, run the gcloud alpha
migration vms target-projects list command. Use the Google Cloud console to
add target project resources. For information on adding target projects,
see
https://cloud.google.com/migrate/virtual-machines/docs/5.0/how-to/target-project.
A project can support a maximum of 1000 Image Import resources per project.
Hence it's recommended to delete an Image Import resource after the Image
Import Job is complete to avoid reaching the Image Import resources limit.
Deletion of Image Import resource does not affect the imported image.
GCLOUD WIDE FLAGS
These flags are available to all commands: --help.
Run $ gcloud help for details.
COMMANDS
COMMAND is one of the following:
create
import Virtual Disk images to Google Compute Engine.
delete
delete an Image Import resource.
describe
describe an Image Import.
list
list Image Imports.
NOTES
This variant is also available:
$ gcloud alpha migration vms image-imports