1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-18 14:56:05 +00:00

gcloud: Wed Aug 6 11:07:54 UTC 2025

This commit is contained in:
Automated 2025-08-06 11:07:54 +00:00
parent 0f69685b06
commit 4f9f745739
126 changed files with 4671 additions and 668 deletions

View file

@ -93,6 +93,10 @@ GROUPS
machine-types
Read Compute Engine virtual machine types.
migration
Provides Migrate to Virtual Machines (VM migration) service
functionality.
network-attachments
Manage Compute Engine network attachment resources.

View file

@ -50,8 +50,8 @@ FLAGS
--external-ipv6-address=EXTERNAL_IPV6_ADDRESS
Assigns the given external IPv6 address to an instance. The address
must be the first IP in the range. This option is applicable only to
dual-stack instances with stack-type=IPV4_ONLY.
must be the first IP in the range. This option is not applicable to
instances with stack-type=IPV4_ONLY.
--external-ipv6-prefix-length=EXTERNAL_IPV6_PREFIX_LENGTH
The prefix length of the external IPv6 address range. This flag should

View file

@ -28,8 +28,8 @@ POSITIONAL ARGUMENTS
REQUIRED FLAGS
--disruption-schedule=DISRUPTION_SCHEDULE
Specifies the timing for initiating the fault reporting process. The
default value is ['IMMEDIATE'] which initiates the process right away.
DISRUPTION_SCHEDULE must be (only one value is supported): IMMEDIATE.
default value is IMMEDIATE which initiates the process right away.
DISRUPTION_SCHEDULE must be one of: IMMEDIATE, FUTURE.
--fault-reasons=[behavior=BEHAVIOR],[description=DESCRIPTION]
Specified and can include one or more of the following types:

View file

@ -0,0 +1,37 @@
NAME
gcloud compute migration - provides Migrate to Virtual Machines
(VM migration) service functionality
SYNOPSIS
gcloud compute migration GROUP [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
The gcloud alpha migration vms command group provides the CLI for the
Migrate to Virtual Machines API. Google Cloud Migrate to Virtual Machines
migrates VMs from on-premises data center and other cloud providers to
Google Compute Engine virtual machine (VM) instances. VM Migration API must
be enabled in your project.
GCLOUD WIDE FLAGS
These flags are available to all commands: --help.
Run $ gcloud help for details.
GROUPS
GROUP is one of the following:
image-imports
Imports images to Google Compute Engine from Google Cloud Storage.
machine-image-imports
Imports machine images to Google Compute Engine from Google Cloud
Storage.
target-projects
Manage Target Projects.
NOTES
This variant is also available:
$ gcloud alpha compute migration

View file

@ -0,0 +1,159 @@
NAME
gcloud compute migration image-imports create - import Virtual Disk images
to Google Compute Engine
SYNOPSIS
gcloud compute migration image-imports create
(IMAGE_IMPORT_NAME : --location=LOCATION) --source-file=SOURCE_FILE
[--additional-licenses=[ADDITIONAL_LICENSES,...]]
[--description=DESCRIPTION] [--family-name=FAMILY_NAME]
[--image-name=IMAGE_NAME] [--kms-key=KMS_KEY]
[--labels=[KEY=VALUE,...]] [--single-region-storage]
[--target-project=TARGET_PROJECT]
[--skip-os-adaptation | --adaptation-modifiers=ADAPTATION_MODIFIERS
--boot-conversion=BOOT_CONVERSION
--generalize --license-type=LICENSE_TYPE --rootfs-uuid=ROOTFS_UUID]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
gcloud compute migration image-imports create imports images such as VMWare
VMDK files and VHD files, from a Google Cloud Storage file (gs://...) to
Google Compute Engine, using the Migrate to Virtual Machines service API.
This command creates an Image Import resource with a nested Image Import
Job resource. The Image Import Job resource tracks the image import
progress. To use this command, you must enable VM Migration API in your
project.
EXAMPLES
To import my-ubuntu22.04.vmdk from my-images-bucket to my-target-project in
us-central1, create my-image-import resource in my-project in us-central1.
Run: $ gcloud compute migration image-imports create my-image-import \
--source-file=gs://my-images-bucket/my-ubuntu22.04.vmdk \
--image-name=my-ubuntu-image --location=us-central1 \
--target-project=projects/my-project/locations/global/\
targetProjects/my-target-project --project=my-project
POSITIONAL ARGUMENTS
Image import resource - The Image Import resource you want to create. This
would be the image name if --image-name is not given. The arguments in
this group can be used to specify the attributes of this resource. (NOTE)
Some attributes are not given arguments in this group but can be set in
other ways.
To set the project attribute:
◆ provide the argument image_import_name on the command line with a
fully specified name;
◆ provide the argument --project on the command line;
◆ set the property core/project.
This must be specified.
IMAGE_IMPORT_NAME
ID of the image_import or fully qualified identifier for the
image_import.
To set the image_import_name attribute:
▸ provide the argument image_import_name on the command line.
This positional argument must be specified if any of the other
arguments in this group are specified.
--location=LOCATION
Resource location.
To set the location attribute:
▸ provide the argument image_import_name on the command line with a
fully specified name;
▸ provide the argument --location on the command line;
▸ set the property compute/region.
REQUIRED FLAGS
--source-file=SOURCE_FILE
The path to the Google Cloud Storage file from which the image should
be imported.
OPTIONAL FLAGS
--additional-licenses=[ADDITIONAL_LICENSES,...]
Comma-separated list of the additional licenses to assign to the image.
--description=DESCRIPTION
A description of the image.
--family-name=FAMILY_NAME
The name of the image family to which the new image belongs.
--image-name=IMAGE_NAME
The name of the image that will be imported to Google Compute Engine.
Default is the Image Import name.
--kms-key=KMS_KEY
Fully qualified identifier for the Cloud KMS (Key Management Service)
cryptokey that will be used to protect the image.
--labels=[KEY=VALUE,...]
A map of labels to associate with the image.
--single-region-storage
If true, the location of the imported image will be the region of the
import job. Otherwise the closest multi-region is selected. Default is
false.
--target-project=TARGET_PROJECT
The target project resource path to which the image will be imported.
Default is the customer project. To get a list of the target projects
run the gcloud alpha migration vms target-projects list command.
OS adaptation parameters
At most one of these can be specified:
--skip-os-adaptation
If true, skip OS adaptation. Default false.
--adaptation-modifiers=ADAPTATION_MODIFIERS
A map of flags to pass to the OS adaptation process. The actual value
depends on the modifier and can also be empty. e.g.
--adaptation-modifiers=flag1=value1,flag2
--boot-conversion=BOOT_CONVERSION
This property will trigger an internal process which will convert the
image from using the existing boot option to another. The size of the
boot disk might be increased to allow the conversion. Currently only
support BIOS_TO_EFI.
BOOT_CONVERSION must be one of: bios-to-efi,
boot-conversion-unspecified, none.
--generalize
If true, generalize the imported image. Default false. The
generalization process enables co-existence of multiple VMs created
from the same image. For Windows, generalizing the image removes
computer-specific information such as installed drivers and the
computer security identifier (SID).
--license-type=LICENSE_TYPE
The license to use post migration. LICENSE_TYPE must be one of:
compute-engine-license-type-byol,
compute-engine-license-type-default,
compute-engine-license-type-payg.
--rootfs-uuid=ROOTFS_UUID
Identifies the file system to adapt.
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.
API REFERENCE
This command uses the vmmigration/v1 API. The full documentation for this
API can be found at: https://cloud.google.com/migrate/virtual-machines
NOTES
This variant is also available:
$ gcloud alpha compute migration image-imports create

View file

@ -0,0 +1,70 @@
NAME
gcloud compute migration image-imports delete - delete an Image Import
resource
SYNOPSIS
gcloud compute migration image-imports delete
(IMAGE_IMPORT_NAME : --location=LOCATION) [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
gcloud compute migration image-imports delete deletes an Image Import
resource. To use this command, you must enable VM Migration API in your
project.
This command does not delete any images imported to Google Compute Engine.
EXAMPLES
To delete my-image-import resource in us-central1 in the default project,
run: $ gcloud compute migration image-imports delete my-image-import \
--location=us-central1
POSITIONAL ARGUMENTS
Image import resource - The Image Import resource you want to delete. The
arguments in this group can be used to specify the attributes of this
resource. (NOTE) Some attributes are not given arguments in this group but
can be set in other ways.
To set the project attribute:
◆ provide the argument image_import_name on the command line with a
fully specified name;
◆ provide the argument --project on the command line;
◆ set the property core/project.
This must be specified.
IMAGE_IMPORT_NAME
ID of the image_import or fully qualified identifier for the
image_import.
To set the image_import_name attribute:
▸ provide the argument image_import_name on the command line.
This positional argument must be specified if any of the other
arguments in this group are specified.
--location=LOCATION
Resource location.
To set the location attribute:
▸ provide the argument image_import_name on the command line with a
fully specified name;
▸ provide the argument --location on the command line;
▸ set the property compute/region.
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.
API REFERENCE
This command uses the vmmigration/v1 API. The full documentation for this
API can be found at: https://cloud.google.com/migrate/virtual-machines
NOTES
This variant is also available:
$ gcloud alpha compute migration image-imports delete

View file

@ -0,0 +1,68 @@
NAME
gcloud compute migration image-imports describe - describe an Image Import
SYNOPSIS
gcloud compute migration image-imports describe
(IMAGE_IMPORT_NAME : --location=LOCATION) [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
gcloud compute migration image-imports describe describes an Image Import
resource with a nested Image Import Job. The Image Import Job resource
tracks the image import progress. To use this command, you must enable VM
Migration API in your project.
EXAMPLES
To describe my-image-import resource in us-central1 in the default project,
run: $ gcloud compute migration image-imports describe my-image-import \
--location=us-central1
POSITIONAL ARGUMENTS
Image import resource - The Image Import you want to describe. The
arguments in this group can be used to specify the attributes of this
resource. (NOTE) Some attributes are not given arguments in this group but
can be set in other ways.
To set the project attribute:
◆ provide the argument image_import_name on the command line with a
fully specified name;
◆ provide the argument --project on the command line;
◆ set the property core/project.
This must be specified.
IMAGE_IMPORT_NAME
ID of the image_import or fully qualified identifier for the
image_import.
To set the image_import_name attribute:
▸ provide the argument image_import_name on the command line.
This positional argument must be specified if any of the other
arguments in this group are specified.
--location=LOCATION
Resource location.
To set the location attribute:
▸ provide the argument image_import_name on the command line with a
fully specified name;
▸ provide the argument --location on the command line;
▸ set the property compute/region.
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.
API REFERENCE
This command uses the vmmigration/v1 API. The full documentation for this
API can be found at: https://cloud.google.com/migrate/virtual-machines
NOTES
This variant is also available:
$ gcloud alpha compute migration image-imports describe

View file

@ -0,0 +1,60 @@
NAME
gcloud compute migration image-imports - imports images to Google Compute
Engine from Google Cloud Storage
SYNOPSIS
gcloud compute migration 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 compute migration image-imports

View file

@ -0,0 +1,88 @@
NAME
gcloud compute migration image-imports list - list Image Imports
SYNOPSIS
gcloud compute migration image-imports list [--location=LOCATION]
[--filter=EXPRESSION] [--limit=LIMIT] [--page-size=PAGE_SIZE]
[--sort-by=[FIELD,...]] [--uri] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
gcloud compute migration image-imports list prints a detailed list of Image
Import resources. To use this command, you must enable VM Migration API in
your project.
EXAMPLES
To list the Image Import resources in us-central1 in the default project,
run: $ gcloud compute migration image-imports list --location=us-central1
FLAGS
Location resource - The compute/region of the Image Import. To get a list
of the available regions, run gcloud compute regions list command. If not
specified, the value of the [compute/zone] property in the current gcloud
configuration is used. This represents a Cloud resource. (NOTE) Some
attributes are not given arguments in this group but can be set in other
ways.
To set the project attribute:
◆ provide the argument --location on the command line with a fully
specified name;
◆ set the property compute/region with a fully specified name;
◆ provide the argument --project on the command line;
◆ set the property core/project.
--location=LOCATION
ID of the location or fully qualified identifier for the location.
To set the location attribute:
▸ provide the argument --location on the command line;
▸ set the property compute/region.
LIST COMMAND FLAGS
--filter=EXPRESSION
Apply a Boolean filter EXPRESSION to each resource item to be listed.
If the expression evaluates True, then that item is listed. For more
details and examples of filter expressions, run $ gcloud topic filters.
This flag interacts with other flags that are applied in this order:
--flatten, --sort-by, --filter, --limit.
--limit=LIMIT
Maximum number of resources to list. The default is unlimited. This
flag 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 the maximum number of resources per page. The default is
determined by the service if it supports paging, otherwise it is
unlimited (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 order is ascending. Prefix a field with ``~'' for descending
order on that field. 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
the command output to a list of URIs. If this flag is used with
--format, the formatting is applied on this URI list. To display URIs
alongside other keys instead, use the uri() 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.
API REFERENCE
This command uses the vmmigration/v1 API. The full documentation for this
API can be found at: https://cloud.google.com/migrate/virtual-machines
NOTES
This variant is also available:
$ gcloud alpha compute migration image-imports list

View file

@ -0,0 +1,206 @@
NAME
gcloud compute migration machine-image-imports create - import machine
images to Google Compute Engine
SYNOPSIS
gcloud compute migration machine-image-imports create
(IMAGE_IMPORT_NAME : --location=LOCATION) --source-file=SOURCE_FILE
[--additional-licenses=[ADDITIONAL_LICENSES,...]]
[--description=DESCRIPTION] [--kms-key=KMS_KEY]
[--labels=[KEY=VALUE,...]] [--machine-image-name=MACHINE_IMAGE_NAME]
[--machine-type=MACHINE_TYPE]
[--network-interface=[network=NETWORK],
[networkTier=NETWORKTIER],[subnetwork=SUBNETWORK]]
[--single-region-storage] [--tags=[TAGS,...]]
[--target-project=TARGET_PROJECT]
[--enable-integrity-monitoring --enable-vtpm --secure-boot=SECURE_BOOT]
[--scopes=[SCOPES,...] --service-account=SERVICE_ACCOUNT]
[--skip-os-adaptation | --adaptation-modifiers=ADAPTATION_MODIFIERS
--boot-conversion=BOOT_CONVERSION
--generalize --license-type=LICENSE_TYPE --rootfs-uuid=ROOTFS_UUID]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
gcloud compute migration machine-image-imports create Imports machine
images such as OVA and OVF files, from a Google Cloud Storage file
(gs://...) to Google Compute Engine, using the Migrate to Virtual Machines
service API. This command creates an Image Import resource with a nested
Image Import Job resource. The Image Import Job resource tracks the image
import progress. To use this command, you must enable VM Migration API in
your project.
EXAMPLES
To import ub-14.04.5.ova from my-images-bucket to my-target-project in
us-central1, create my-image-import resource in my-project in us-central1.
Run: $ gcloud compute migration machine-image-imports create \
my-machine-image-import \
--source-file=gs://my-images-bucket/ub-14.04.5.ova \
--image-name=my-ubuntu-machine-image --location=us-central1 \
--target-project=projects/my-project/locations/global/\
targetProjects/my-target-project --project=my-project
POSITIONAL ARGUMENTS
Image import resource - The Image Import resource you want to create. This
would be the machine image name if --machine-image-name is not given. The
arguments in this group can be used to specify the attributes of this
resource. (NOTE) Some attributes are not given arguments in this group but
can be set in other ways.
To set the project attribute:
◆ provide the argument image_import_name on the command line with a
fully specified name;
◆ provide the argument --project on the command line;
◆ set the property core/project.
This must be specified.
IMAGE_IMPORT_NAME
ID of the image_import or fully qualified identifier for the
image_import.
To set the image_import_name attribute:
▸ provide the argument image_import_name on the command line.
This positional argument must be specified if any of the other
arguments in this group are specified.
--location=LOCATION
Resource location.
To set the location attribute:
▸ provide the argument image_import_name on the command line with a
fully specified name;
▸ provide the argument --location on the command line;
▸ set the property compute/region.
REQUIRED FLAGS
--source-file=SOURCE_FILE
The path to the Google Cloud Storage file from which the image should
be imported.
OPTIONAL FLAGS
--additional-licenses=[ADDITIONAL_LICENSES,...]
Comma-separated list of the additional licenses to assign to the
machine image.
--description=DESCRIPTION
A description of the machine image.
--kms-key=KMS_KEY
Fully qualified identifier for the Cloud KMS (Key Management Service)
cryptokey that will be used to protect the image.
--labels=[KEY=VALUE,...]
A map of labels to associate with the machine image.
--machine-image-name=MACHINE_IMAGE_NAME
The name of the machine image that will be imported to Google Compute
Engine. Default is the Image Import name.
--machine-type=MACHINE_TYPE
The machine type to create the machine image with. If not provided, the
service will choose a relevant machine type series based on the
information from the source image.
--network-interface=[network=NETWORK],[networkTier=NETWORKTIER],[subnetwork=SUBNETWORK]
The network interface to use for the instance created by the machine
image. This is a dicionary with the following keys:
◆ network: The network to use for this network interface.
◆ subnetwork: The subnetwork to use for this network interface.
◆ network-tier: The network tier to use for this network interface.
This argument can be specified multiple times in case of multiple
nics.
--single-region-storage
If true, the location of the imported machine image will be the region
of the import job. Otherwise the closest multi-region is selected.
Default is false.
--tags=[TAGS,...]
The tags to apply to the instance created by the machine image.
--target-project=TARGET_PROJECT
The target project resource path to which the machine image will be
imported. Default is the host project. To get a list of the target
projects run the gcloud alpha migration vms target-projects list
command.
Shielded instance configuration.
--enable-integrity-monitoring
Defines whether the instance created by the machine image has
integrity monitoring enabled. This can be set to true only if the
image boot option is EFI, and vTPM is enabled.
--enable-vtpm
Defines whether the instance created by the machine image has vTPM
enabled. This can be set to true only if the image boot option is
EFI.
--secure-boot=SECURE_BOOT
Defines whether the instance created by the machine image has Secure
Boot enabled. This can be set to true only if the image boot option
is EFI. If not specified we will use the configuration of the source.
SECURE_BOOT must be one of: false, secure-boot-unspecified, true.
The service account to assign to the instance created by the machine
image.
--scopes=[SCOPES,...]
The list of scopes to be made available for the service account.
--service-account=SERVICE_ACCOUNT
The email address of the service account.
OS adaptation parameters.
At most one of these can be specified:
--skip-os-adaptation
If true, skip OS adaptation. Default false.
--adaptation-modifiers=ADAPTATION_MODIFIERS
A map of flags to pass to the OS adaptation process. The actual value
depends on the modifier and can also be empty. e.g.
--adaptation-modifiers=flag1=value1,flag2
--boot-conversion=BOOT_CONVERSION
This property will trigger an internal process which will convert the
image from using the existing boot option to another. The size of the
boot disk might be increased to allow the conversion. Currently only
support BIOS_TO_EFI. BOOT_CONVERSION must be one of: bios-to-efi,
boot-conversion-unspecified, none.
--generalize
If true, generalize the imported machine image. Default false. The
generalization process enables co-existence of multiple VMs created
from the same machine image. For Windows, generalizing the machine
image removes computer-specific information such as installed drivers
and the computer security identifier (SID).
--license-type=LICENSE_TYPE
The license to use post migration. LICENSE_TYPE must be one of:
compute-engine-license-type-byol,
compute-engine-license-type-default,
compute-engine-license-type-payg.
--rootfs-uuid=ROOTFS_UUID
Identifies the file system to adapt.
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.
API REFERENCE
This command uses the vmmigration/v1 API. The full documentation for this
API can be found at: https://cloud.google.com/migrate/virtual-machines
NOTES
This variant is also available:
$ gcloud alpha compute migration machine-image-imports create

View file

@ -0,0 +1,71 @@
NAME
gcloud compute migration machine-image-imports delete - delete an Image
Import resource
SYNOPSIS
gcloud compute migration machine-image-imports delete
(IMAGE_IMPORT_NAME : --location=LOCATION) [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
gcloud compute migration machine-image-imports delete deletes an Image
Import resource. To use this command, you must enable VM Migration API in
your project.
This command does not delete any machine images imported to Google Compute
Engine.
EXAMPLES
To delete my-image-import resource in us-central1 in the default project,
run: $ gcloud compute migration machine-image-imports delete \
my-image-import --location=us-central1
POSITIONAL ARGUMENTS
Image import resource - The Image Import resource you want to delete. The
arguments in this group can be used to specify the attributes of this
resource. (NOTE) Some attributes are not given arguments in this group but
can be set in other ways.
To set the project attribute:
◆ provide the argument image_import_name on the command line with a
fully specified name;
◆ provide the argument --project on the command line;
◆ set the property core/project.
This must be specified.
IMAGE_IMPORT_NAME
ID of the image_import or fully qualified identifier for the
image_import.
To set the image_import_name attribute:
▸ provide the argument image_import_name on the command line.
This positional argument must be specified if any of the other
arguments in this group are specified.
--location=LOCATION
Resource location.
To set the location attribute:
▸ provide the argument image_import_name on the command line with a
fully specified name;
▸ provide the argument --location on the command line;
▸ set the property compute/region.
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.
API REFERENCE
This command uses the vmmigration/v1 API. The full documentation for this
API can be found at: https://cloud.google.com/migrate/virtual-machines
NOTES
This variant is also available:
$ gcloud alpha compute migration machine-image-imports delete

View file

@ -0,0 +1,69 @@
NAME
gcloud compute migration machine-image-imports describe - describe an Image
Import
SYNOPSIS
gcloud compute migration machine-image-imports describe
(IMAGE_IMPORT_NAME : --location=LOCATION) [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
gcloud compute migration machine-image-imports describe describes an Image
Import resource with a nested Image Import Job. The Image Import Job
resource tracks the image import progress. To use this command, you must
enable VM Migration API in your project.
EXAMPLES
To describe my-image-import resource in us-central1 in the default project,
run: $ gcloud compute migration machine-image-imports describe \
my-image-import --location=us-central1
POSITIONAL ARGUMENTS
Image import resource - The Image Import you want to describe. The
arguments in this group can be used to specify the attributes of this
resource. (NOTE) Some attributes are not given arguments in this group but
can be set in other ways.
To set the project attribute:
◆ provide the argument image_import_name on the command line with a
fully specified name;
◆ provide the argument --project on the command line;
◆ set the property core/project.
This must be specified.
IMAGE_IMPORT_NAME
ID of the image_import or fully qualified identifier for the
image_import.
To set the image_import_name attribute:
▸ provide the argument image_import_name on the command line.
This positional argument must be specified if any of the other
arguments in this group are specified.
--location=LOCATION
Resource location.
To set the location attribute:
▸ provide the argument image_import_name on the command line with a
fully specified name;
▸ provide the argument --location on the command line;
▸ set the property compute/region.
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.
API REFERENCE
This command uses the vmmigration/v1 API. The full documentation for this
API can be found at: https://cloud.google.com/migrate/virtual-machines
NOTES
This variant is also available:
$ gcloud alpha compute migration machine-image-imports describe

View file

@ -0,0 +1,64 @@
NAME
gcloud compute migration machine-image-imports - imports machine images to
Google Compute Engine from Google Cloud Storage
SYNOPSIS
gcloud compute migration machine-image-imports COMMAND
[GCLOUD_WIDE_FLAG ...]
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.
gcloud migration vms machine-image-imports create 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.
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 machine 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 compute migration machine-image-imports

View file

@ -0,0 +1,89 @@
NAME
gcloud compute migration machine-image-imports list - list Image Imports
SYNOPSIS
gcloud compute migration machine-image-imports list [--location=LOCATION]
[--filter=EXPRESSION] [--limit=LIMIT] [--page-size=PAGE_SIZE]
[--sort-by=[FIELD,...]] [--uri] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
gcloud compute migration machine-image-imports list prints a detailed list
of Image Import resources. To use this command, you must enable VM
Migration API in your project.
EXAMPLES
To list the Image Import resources in us-central1 in the default project,
run: $ gcloud compute migration machine-image-imports list \
--location=us-central1
FLAGS
Location resource - The compute/region of the Image Import. To get a list
of the available regions, run gcloud compute regions list command. If not
specified, the value of the [compute/zone] property in the current gcloud
configuration is used. This represents a Cloud resource. (NOTE) Some
attributes are not given arguments in this group but can be set in other
ways.
To set the project attribute:
◆ provide the argument --location on the command line with a fully
specified name;
◆ set the property compute/region with a fully specified name;
◆ provide the argument --project on the command line;
◆ set the property core/project.
--location=LOCATION
ID of the location or fully qualified identifier for the location.
To set the location attribute:
▸ provide the argument --location on the command line;
▸ set the property compute/region.
LIST COMMAND FLAGS
--filter=EXPRESSION
Apply a Boolean filter EXPRESSION to each resource item to be listed.
If the expression evaluates True, then that item is listed. For more
details and examples of filter expressions, run $ gcloud topic filters.
This flag interacts with other flags that are applied in this order:
--flatten, --sort-by, --filter, --limit.
--limit=LIMIT
Maximum number of resources to list. The default is unlimited. This
flag 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 the maximum number of resources per page. The default is
determined by the service if it supports paging, otherwise it is
unlimited (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 order is ascending. Prefix a field with ``~'' for descending
order on that field. 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
the command output to a list of URIs. If this flag is used with
--format, the formatting is applied on this URI list. To display URIs
alongside other keys instead, use the uri() 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.
API REFERENCE
This command uses the vmmigration/v1 API. The full documentation for this
API can be found at: https://cloud.google.com/migrate/virtual-machines
NOTES
This variant is also available:
$ gcloud alpha compute migration machine-image-imports list

View file

@ -0,0 +1,29 @@
NAME
gcloud compute migration target-projects - manage Target Projects
SYNOPSIS
gcloud compute migration target-projects COMMAND [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
target-projects sub-group is used to manage Target Project resources of the
Migrate to Virtual Machines service. Target projects are defined for each
customer project in the global location. A Target Project could be used as
the target project of various migration commands. VM Migration API must be
enabled in your project.
GCLOUD WIDE FLAGS
These flags are available to all commands: --help.
Run $ gcloud help for details.
COMMANDS
COMMAND is one of the following:
list
list Target Projects.
NOTES
This variant is also available:
$ gcloud alpha compute migration target-projects

View file

@ -0,0 +1,68 @@
NAME
gcloud compute migration target-projects list - list Target Projects
SYNOPSIS
gcloud compute migration target-projects list [--filter=EXPRESSION]
[--limit=LIMIT] [--page-size=PAGE_SIZE] [--sort-by=[FIELD,...]] [--uri]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
gcloud compute migration target-projects list lists Target Project
resources, which are required for setting the target project for migration.
Target projects are defined for each customer project in the global
location. To use this command, you must enable VM Migration API in your
project.
EXAMPLES
To list the Target Project resources in the global location in the default
project, run: $ gcloud compute migration target-projects list
LIST COMMAND FLAGS
--filter=EXPRESSION
Apply a Boolean filter EXPRESSION to each resource item to be listed.
If the expression evaluates True, then that item is listed. For more
details and examples of filter expressions, run $ gcloud topic filters.
This flag interacts with other flags that are applied in this order:
--flatten, --sort-by, --filter, --limit.
--limit=LIMIT
Maximum number of resources to list. The default is unlimited. This
flag 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 the maximum number of resources per page. The default is
determined by the service if it supports paging, otherwise it is
unlimited (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 order is ascending. Prefix a field with ``~'' for descending
order on that field. 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
the command output to a list of URIs. If this flag is used with
--format, the formatting is applied on this URI list. To display URIs
alongside other keys instead, use the uri() 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.
API REFERENCE
This command uses the vmmigration/v1 API. The full documentation for this
API can be found at: https://cloud.google.com/migrate/virtual-machines
NOTES
This variant is also available:
$ gcloud alpha compute migration target-projects list