report_configs
Creates, updates, deletes, gets or lists a report_configs
resource.
Overview
Name | report_configs |
Type | Resource |
Id | google.migrationcenter.report_configs |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. Name of resource. |
description | string | Free-text description. |
createTime | string | Output only. The timestamp when the resource was created. |
displayName | string | User-friendly display name. Maximum length is 63 characters. |
groupPreferencesetAssignments | array | Required. Collection of combinations of groups and preference sets. |
updateTime | string | Output only. The timestamp when the resource was last updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, projectsId, reportConfigsId | Gets details of a single ReportConfig. |
list | SELECT | locationsId, projectsId | Lists ReportConfigs in a given project and location. |
create | INSERT | locationsId, projectsId | Creates a report configuration. |
delete | DELETE | locationsId, projectsId, reportConfigsId | Deletes 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.migrationcenter.report_configs (
locationsId,
projectsId,
displayName,
description,
groupPreferencesetAssignments
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ displayName }}',
'{{ description }}',
'{{ groupPreferencesetAssignments }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: displayName
value: string
- name: description
value: string
- name: groupPreferencesetAssignments
value:
- - name: group
value: string
- name: preferenceSet
value: string
DELETE
example
Deletes the specified report_configs
resource.
/*+ delete */
DELETE FROM google.migrationcenter.report_configs
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND reportConfigsId = '{{ reportConfigsId }}';