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

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

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

## Request

- Base URL: `https://vmmigration.googleapis.com`
- URL: `https://vmmigration.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/groups`
- 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 Groups in a given project and location.

## 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

- ListGroupsResponse: Response message for 'ListGroups' request.
  - `groups` Group[]: Output only. The list of groups response.
    - `createTime` string, google-datetime: Output only. The create time timestamp.
    - `description` string: User-provided description of the group.
    - `displayName` string: Display name is a user defined name for this group which can be updated.
    - `migrationTargetType` 'MIGRATION_TARGET_TYPE_UNSPECIFIED' | 'MIGRATION_TARGET_TYPE_GCE' | 'MIGRATION_TARGET_TYPE_DISKS': Immutable. The target type of this group.
    - `name` string: Output only. The Group name.
    - `updateTime` string, google-datetime: Output only. The update time timestamp.
  - `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.
  - `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)
