Skip to main content

migration_executions

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

Overview

Namemigration_executions
TypeResource
Idgoogle.metastore.migration_executions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringOutput only. The relative resource name of the migration execution, in the following form: projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}
cloudSqlMigrationConfigobjectDeprecated: Migrations to Dataproc Metastore are no longer supported. Use BigLake Metastore migration instead. Configuration information specific to migrating from self-managed hive metastore on Google Cloud using Cloud SQL as the backend database to Dataproc Metastore. (id: CloudSQLMigrationConfig)
createTimestring (google-datetime)Output only. The time when the migration execution was started.
endTimestring (google-datetime)Output only. The time when the migration execution finished.
phasestringOutput only. Deprecated: Phase was designed for incoming migrations to Dataproc Metastore, not applicable when migrating away from it. The current phase of the migration execution. (PHASE_UNSPECIFIED, REPLICATION, CUTOVER)
statestringOutput only. The current state of the migration execution. (STATE_UNSPECIFIED, STARTING, RUNNING, CANCELLING, AWAITING_USER_ACTION, SUCCEEDED, FAILED, CANCELLED, DELETING, ROLLED_BACK)
stateMessagestringOutput only. Additional information about the current state of the migration execution.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, servicesId, migrationExecutionsIdGets details of a single migration execution.
listselectprojectsId, locationsId, servicesIdpageSize, filter, pageToken, orderByLists migration executions on a service.
deletedeleteprojectsId, locationsId, servicesId, migrationExecutionsIdrequestIdDeletes a single migration execution.

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
migrationExecutionsIdstring
projectsIdstring
servicesIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring

SELECT examples

Gets details of a single migration execution.

SELECT
name,
cloudSqlMigrationConfig,
createTime,
endTime,
phase,
state,
stateMessage
FROM google.metastore.migration_executions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND servicesId = '{{ servicesId }}' -- required
AND migrationExecutionsId = '{{ migrationExecutionsId }}' -- required
;

DELETE examples

Deletes a single migration execution.

DELETE FROM google.metastore.migration_executions
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND servicesId = '{{ servicesId }}' --required
AND migrationExecutionsId = '{{ migrationExecutionsId }}' --required
AND requestId = '{{ requestId }}'
;