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

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Name of resource.
createTimestring (google-datetime)Output only. The timestamp when the resource was created.
descriptionstringFree-text description.
displayNamestringUser-friendly display name. Maximum length is 63 characters.
groupPreferencesetAssignmentsarrayRequired. Collection of combinations of groups and preference sets.
updateTimestring (google-datetime)Output only. The timestamp when the resource was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, reportConfigsIdGets details of a single ReportConfig.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists ReportConfigs in a given project and location.
createinsertprojectsId, locationsIdreportConfigId, requestIdCreates a report configuration.
deletedeleteprojectsId, locationsId, reportConfigsIdrequestId, forceDeletes a ReportConfig.

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
locationsIdstring
projectsIdstring
reportConfigsIdstring
filterstring
forceboolean
orderBystring
pageSizeinteger (int32)
pageTokenstring
reportConfigIdstring
requestIdstring

SELECT examples

Gets details of a single ReportConfig.

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

INSERT examples

Creates a report configuration.

INSERT INTO google.migrationcenter.report_configs (
data__displayName,
data__description,
data__groupPreferencesetAssignments,
projectsId,
locationsId,
reportConfigId,
requestId
)
SELECT
'{{ displayName }}',
'{{ description }}',
'{{ groupPreferencesetAssignments }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ reportConfigId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Deletes a ReportConfig.

DELETE FROM google.migrationcenter.report_configs
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND reportConfigsId = '{{ reportConfigsId }}' --required
AND requestId = '{{ requestId }}'
AND force = '{{ force }}';