settings
Creates, updates, deletes, gets or lists a settings
resource.
Overview
Name | settings |
Type | Resource |
Id | google.migrationcenter.settings |
Fields
The following fields are returned by SELECT
queries:
- get_settings
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The name of the resource. |
disableCloudLogging | boolean | Disable Cloud Logging for the Migration Center API. Users are billed for the logs. |
preferenceSet | string | The preference set used by default for a project. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_settings | select | projectsId , locationsId | Gets the details of regional settings. | |
update_settings | update | projectsId , locationsId | updateMask , requestId | Updates the regional-level project settings. |
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.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
projectsId | string | |
requestId | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get_settings
Gets the details of regional settings.
SELECT
name,
disableCloudLogging,
preferenceSet
FROM google.migrationcenter.settings
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required;
UPDATE
examples
- update_settings
Updates the regional-level project settings.
UPDATE google.migrationcenter.settings
SET
data__preferenceSet = '{{ preferenceSet }}',
data__disableCloudLogging = {{ disableCloudLogging }}
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;