groups_assets
Creates, updates, deletes, gets or lists a groups_assets
resource.
Overview
Name | groups_assets |
Type | Resource |
Id | google.migrationcenter.groups_assets |
Fields
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
add_assets | INSERT | groupsId, locationsId, projectsId | Adds assets to a group. |
remove_assets | DELETE | groupsId, locationsId, projectsId | Removes assets from a group. |
INSERT
example
Use the following StackQL query and manifest file to create a new groups_assets
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.migrationcenter.groups_assets (
groupsId,
locationsId,
projectsId,
requestId,
assets,
allowExisting
)
SELECT
'{{ groupsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ requestId }}',
'{{ assets }}',
{{ allowExisting }}
;
- name: your_resource_model_name
props:
- name: requestId
value: string
- name: assets
value:
- name: assetIds
value:
- string
- name: allowExisting
value: boolean
DELETE
example
Deletes the specified groups_assets
resource.
/*+ delete */
DELETE FROM google.migrationcenter.groups_assets
WHERE groupsId = '{{ groupsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';