groups
Creates, updates, deletes, gets or lists a groups
resource.
Overview
Name | groups |
Type | Resource |
Id | google.vmmigration.groups |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The Group name. |
description | string | User-provided description of the group. |
createTime | string | Output only. The create time timestamp. |
displayName | string | Display name is a user defined name for this group which can be updated. |
migrationTargetType | string | Immutable. The target type of this group. |
updateTime | string | Output only. The update time timestamp. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | groupsId, locationsId, projectsId | Gets details of a single Group. |
list | SELECT | locationsId, projectsId | Lists Groups in a given project and location. |
create | INSERT | locationsId, projectsId | Creates a new Group in a given project and location. |
delete | DELETE | groupsId, locationsId, projectsId | Deletes a single Group. |
patch | UPDATE | groupsId, locationsId, projectsId | Updates the parameters of a single Group. |
SELECT
examples
Lists Groups in a given project and location.
SELECT
name,
description,
createTime,
displayName,
migrationTargetType,
updateTime
FROM google.vmmigration.groups
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new groups
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.vmmigration.groups (
locationsId,
projectsId,
description,
displayName,
migrationTargetType
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ description }}',
'{{ displayName }}',
'{{ migrationTargetType }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: description
value: string
- name: displayName
value: string
- name: migrationTargetType
value: string
UPDATE
example
Updates a groups
resource.
/*+ update */
UPDATE google.vmmigration.groups
SET
description = '{{ description }}',
displayName = '{{ displayName }}',
migrationTargetType = '{{ migrationTargetType }}'
WHERE
groupsId = '{{ groupsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified groups
resource.
/*+ delete */
DELETE FROM google.vmmigration.groups
WHERE groupsId = '{{ groupsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';