Skip to main content

groups_assets

Creates, updates, deletes, gets or lists a groups_assets resource.

Overview

Namegroups_assets
TypeResource
Idgoogle.migrationcenter.groups_assets

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
add_assetsinsertprojectsId, locationsId, groupsIdAdds assets to a group.
remove_assetsdeleteprojectsId, locationsId, groupsIdRemoves assets from a group.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
groupsIdstring
locationsIdstring
projectsIdstring

INSERT examples

Adds assets to a group.

INSERT INTO google.migrationcenter.groups_assets (
data__requestId,
data__assets,
data__allowExisting,
projectsId,
locationsId,
groupsId
)
SELECT
'{{ requestId }}',
'{{ assets }}',
{{ allowExisting }},
'{{ projectsId }}',
'{{ locationsId }}',
'{{ groupsId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Removes assets from a group.

DELETE FROM google.migrationcenter.groups_assets
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND groupsId = '{{ groupsId }}' --required;