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

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}
cloudSqlMigrationConfigobjectConfiguration information for migrating from self-managed hive metastore on Google Cloud using Cloud SQL as the backend database to Dataproc Metastore.
createTimestringOutput only. The time when the migration execution was started.
endTimestringOutput only. The time when the migration execution finished.
phasestringOutput only. The current phase of the migration execution.
statestringOutput only. The current state of the migration execution.
stateMessagestringOutput only. Additional information about the current state of the migration execution.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, migrationExecutionsId, projectsId, servicesIdGets details of a single migration execution.
listSELECTlocationsId, projectsId, servicesIdLists migration executions on a service.
deleteDELETElocationsId, migrationExecutionsId, projectsId, servicesIdDeletes a single migration execution.

SELECT examples

Lists migration executions on a service.

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

DELETE example

Deletes the specified migration_executions resource.

/*+ delete */
DELETE FROM google.metastore.migration_executions
WHERE locationsId = '{{ locationsId }}'
AND migrationExecutionsId = '{{ migrationExecutionsId }}'
AND projectsId = '{{ projectsId }}'
AND servicesId = '{{ servicesId }}';