# REST Resource: projects.locations.groups

- [Resource: Group](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/projects.locations.groups#Group)
  - [JSON representation](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/projects.locations.groups#Group.SCHEMA_REPRESENTATION)
- [MigrationTargetType](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/projects.locations.groups#MigrationTargetType)
- [Methods](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/projects.locations.groups#METHODS_SUMMARY)

## Resource: Group

Describes message for 'Group' resource. The Group is a collections of several MigratingVms.

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "updateTime": string, "description": string, "displayName": string, "migrationTargetType": enum (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/projects.locations.groups#MigrationTargetType`) } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The Group name. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The create time timestamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The update time timestamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `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` | ``enum (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/projects.locations.groups#MigrationTargetType`)`` Immutable. The target type of this group. |

## MigrationTargetType

The possible types of the group.

| Enums ||
|---|---|
| `MIGRATION_TARGET_TYPE_UNSPECIFIED` | Group type is not specified. This defaults to Compute Engine targets. |
| `MIGRATION_TARGET_TYPE_GCE` | All MigratingVMs in the group must have Compute Engine targets. |
| `MIGRATION_TARGET_TYPE_DISKS` | All MigratingVMs in the group must have Compute Engine Disks targets. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/projects.locations.groups/addGroupMigration` | Adds a MigratingVm to a Group. |
| ### `https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/projects.locations.groups/create` | Creates a new Group in a given project and location. |
| ### `https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/projects.locations.groups/delete` | Deletes a single Group. |
| ### `https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/projects.locations.groups/get` | Gets details of a single Group. |
| ### `https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/projects.locations.groups/list` | Lists Groups in a given project and location. |
| ### `https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/projects.locations.groups/patch` | Updates the parameters of a single Group. |
| ### `https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1/projects.locations.groups/removeGroupMigration` | Removes a MigratingVm from a Group. |