Skip to main content

auto_migration_config

Creates, updates, deletes, gets or lists an auto_migration_config resource.

Overview

Nameauto_migration_config
TypeResource
Idgoogle.config.auto_migration_config

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The name of the AutoMigrationConfig. Format: 'projects/{project_id}/locations/{location}/AutoMigrationConfig'.
autoMigrationEnabledbooleanOptional. Whether the auto migration is enabled for the project.
updateTimestring (google-datetime)Output only. Time the AutoMigrationConfig was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_auto_migration_configselectprojectsId, locationsIdGet the AutoMigrationConfig for a given project and location.
update_auto_migration_configupdateprojectsId, locationsIdupdateMaskUpdates the AutoMigrationConfig for a given project and location.

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
updateMaskstring (google-fieldmask)

SELECT examples

Get the AutoMigrationConfig for a given project and location.

SELECT
name,
autoMigrationEnabled,
updateTime
FROM google.config.auto_migration_config
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
;

UPDATE examples

Updates the AutoMigrationConfig for a given project and location.

UPDATE google.config.auto_migration_config
SET
data__name = '{{ name }}',
data__autoMigrationEnabled = {{ autoMigrationEnabled }}
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;