File: //snap/google-cloud-cli/394/lib/surface/migration/vms/image_imports/list.yaml
- release_tracks: [ALPHA, GA]
help_text:
brief: list Image Imports.
description: |
{command} 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:
$ {command} --location=us-central1
request:
collection: vmmigration.projects.locations.imageImports
response:
id_field: name
arguments:
resource:
help_text: |
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.
spec: !REF googlecloudsdk.command_lib.migration.vms.resources:location
output:
format: table(name.basename(), recentImageImportJobs[0].state, cloudStorageUri, diskImageTargetDefaults.imageName, diskImageTargetDefaults.targetProject.basename(), createTime)