Skip to main content

reports

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

Overview

Namereports
TypeResource
Idgoogle.migrationcenter.reports

Fields

NameDatatypeDescription
namestringOutput only. Name of resource.
descriptionstringFree-text description.
createTimestringOutput only. Creation timestamp.
displayNamestringUser-friendly display name. Maximum length is 63 characters.
statestringReport creation state.
summaryobjectDescribes the Summary view of a Report, which contains aggregated values for all the groups and preference sets included in this Report.
typestringReport type.
updateTimestringOutput only. Last update timestamp.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, projectsId, reportConfigsId, reportsIdGets details of a single Report.
listSELECTlocationsId, projectsId, reportConfigsIdLists Reports in a given ReportConfig.
createINSERTlocationsId, projectsId, reportConfigsIdCreates a report.
deleteDELETElocationsId, projectsId, reportConfigsId, reportsIdDeletes a Report.

SELECT examples

Lists Reports in a given ReportConfig.

SELECT
name,
description,
createTime,
displayName,
state,
summary,
type,
updateTime
FROM google.migrationcenter.reports
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND reportConfigsId = '{{ reportConfigsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.migrationcenter.reports (
locationsId,
projectsId,
reportConfigsId,
displayName,
description,
type,
state
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ reportConfigsId }}',
'{{ displayName }}',
'{{ description }}',
'{{ type }}',
'{{ state }}'
;

DELETE example

Deletes the specified reports resource.

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