File: //snap/google-cloud-cli/396/help/man/man1/gcloud_compute_migration_machine-image-imports.1
.TH "GCLOUD_COMPUTE_MIGRATION_MACHINE\-IMAGE\-IMPORTS" 1
.SH "NAME"
.HP
gcloud compute migration machine\-image\-imports \- imports machine images to Google Compute Engine from Google Cloud Storage
.SH "SYNOPSIS"
.HP
\f5gcloud compute migration machine\-image\-imports\fR \fICOMMAND\fR [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
gcloud migration vms machine\-image\-imports provides a more robust and better
supported method for importing machine 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 Migration API which supports importing of a machine image
from a Google Cloud Storage file (gs://...) to a target project. VM Migration
API must be enabled in your project.
\f5gcloud migration vms machine\-image\-imports create\fR creates a machine
Image Import resource with a nested Image Import Job resource. The Image Import
Job resource tracks the machine image import progress. After the Image Import
Job completes, successfully or otherwise, there's no further use for the Image
Import resource.
The machine 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 up to a certain number of 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 machine image.
For more information about the image import resource, see
https://cloud.google.com/migrate/virtual\-machines/docs/5.0/migrate/image_import.
.SH "GCLOUD WIDE FLAGS"
These flags are available to all commands: \-\-help.
Run \fB$ gcloud help\fR for details.
.SH "COMMANDS"
\f5\fICOMMAND\fR\fR is one of the following:
.RS 2m
.TP 2m
\fBcreate\fR
import machine images to Google Compute Engine.
.TP 2m
\fBdelete\fR
delete an Image Import resource.
.TP 2m
\fBdescribe\fR
describe an Image Import.
.TP 2m
\fBlist\fR
list Image Imports.
.RE
.sp
.SH "NOTES"
This variant is also available:
.RS 2m
$ gcloud alpha compute migration machine\-image\-imports
.RE