Skip to main content

settings

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

Overview

Namesettings
TypeResource
Idgoogle.migrationcenter.settings

Fields

NameDatatypeDescription
namestringOutput only. The name of the resource.
disableCloudLoggingbooleanDisable Cloud Logging for the Migration Center API. Users are billed for the logs.
preferenceSetstringThe preference set used by default for a project.

Methods

NameAccessible byRequired ParamsDescription
get_settingsSELECTlocationsId, projectsIdGets the details of regional settings.
update_settingsUPDATElocationsId, projectsIdUpdates the regional-level project settings.

SELECT examples

Gets the details of regional settings.

SELECT
name,
disableCloudLogging,
preferenceSet
FROM google.migrationcenter.settings
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

UPDATE example

Updates a settings resource.

/*+ update */
UPDATE google.migrationcenter.settings
SET
preferenceSet = '{{ preferenceSet }}',
disableCloudLogging = true|false
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';