---
title: "GET /v1/projects/{projectsId}/locations/{locationsId}/targetProjects"
method: GET
path: "/v1/projects/{projectsId}/locations/{locationsId}/targetProjects"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/locations/{locationsId}/targetProjects

`GET /v1/projects/{projectsId}/locations/{locationsId}/targetProjects`

## Request

- Base URL: `https://vmmigration.googleapis.com`
- URL: `https://vmmigration.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/targetProjects`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Lists TargetProjects in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `filter` string
- `orderBy` string
- `pageSize` integer
- `pageToken` string

## Response `200`

Successful response

- ListTargetProjectsResponse: Response message for 'ListTargetProjects' call.
  - `nextPageToken` string: Output only. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
  - `targetProjects` TargetProject[]: Output only. The list of target response.
    - `createTime` string, google-datetime: Output only. The time this target project resource was created (not related to when the Compute Engine project it points to was created).
    - `description` string: The target project's description.
    - `name` string: Output only. The name of the target project.
    - `project` string: Required. The target project ID (number) or project name.
    - `updateTime` string, google-datetime: Output only. The last time the target project resource was updated.
  - `unreachable` string[]: Output only. Locations that could not be reached.

---

[API](https://skmtc.dev/google/apis/vmmigration.md) - [All operations](https://skmtc.dev/google/apis/vmmigration/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/vmmigration/revisions/dc534bc294f6?raw)
