auto_migration_config
Creates, updates, deletes, gets or lists an auto_migration_config resource.
Overview
| Name | auto_migration_config |
| Type | Resource |
| Id | google.config.auto_migration_config |
Fields
The following fields are returned by SELECT queries:
- get_auto_migration_config
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The name of the AutoMigrationConfig. Format: 'projects/{project_id}/locations/{location}/AutoMigrationConfig'. |
autoMigrationEnabled | boolean | Optional. Whether the auto migration is enabled for the project. |
updateTime | string (google-datetime) | Output only. Time the AutoMigrationConfig was last updated. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_auto_migration_config | select | projectsId, locationsId | Get the AutoMigrationConfig for a given project and location. | |
update_auto_migration_config | update | projectsId, locationsId | updateMask | Updates 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.
| Name | Datatype | Description |
|---|---|---|
locationsId | string | |
projectsId | string | |
updateMask | string (google-fieldmask) |
SELECT examples
- get_auto_migration_config
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
- update_auto_migration_config
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;