File: //snap/google-cloud-cli/current/lib/surface/migration/vms/target_projects/list.yaml
- release_tracks: [ALPHA, GA]
help_text:
brief: list Target Projects.
description: |
{command} 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:
$ {command}
request:
collection: vmmigration.projects.locations.targetProjects
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:locationDefaultGlobal
removed_flags: [location]
output:
format: table(name, project, createTime)