Skip to main content

report_configs

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

Overview

Namereport_configs
TypeResource
Idgoogle.migrationcenter.report_configs

Fields

NameDatatypeDescription
namestringOutput only. Name of resource.
descriptionstringFree-text description.
createTimestringOutput only. The timestamp when the resource was created.
displayNamestringUser-friendly display name. Maximum length is 63 characters.
groupPreferencesetAssignmentsarrayRequired. Collection of combinations of groups and preference sets.
updateTimestringOutput only. The timestamp when the resource was last updated.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, projectsId, reportConfigsIdGets details of a single ReportConfig.
listSELECTlocationsId, projectsIdLists ReportConfigs in a given project and location.
createINSERTlocationsId, projectsIdCreates a report configuration.
deleteDELETElocationsId, projectsId, reportConfigsIdDeletes a ReportConfig.

SELECT examples

Lists ReportConfigs in a given project and location.

SELECT
name,
description,
createTime,
displayName,
groupPreferencesetAssignments,
updateTime
FROM google.migrationcenter.report_configs
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new report_configs resource.

/*+ create */
INSERT INTO google.migrationcenter.report_configs (
locationsId,
projectsId,
displayName,
description,
groupPreferencesetAssignments
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ displayName }}',
'{{ description }}',
'{{ groupPreferencesetAssignments }}'
;

DELETE example

Deletes the specified report_configs resource.

/*+ delete */
DELETE FROM google.migrationcenter.report_configs
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND reportConfigsId = '{{ reportConfigsId }}';