Skip to main content

image_import_jobs

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

Overview

Nameimage_import_jobs
TypeResource
Idgoogle.vmmigration.image_import_jobs

Fields

NameDatatypeDescription
namestringOutput only. The resource path of the ImageImportJob.
cloudStorageUristringOutput only. The path to the Cloud Storage file from which the image should be imported.
createTimestringOutput only. The time the image import was created (as an API call, not when it was actually created in the target).
createdResourcesarrayOutput only. The resource paths of the resources created by the image import job.
diskImageTargetDetailsobjectThe target details of the image resource that will be created by the import job.
endTimestringOutput only. The time the image import was ended.
errorsarrayOutput only. Provides details on the error that led to the image import state in case of an error.
machineImageTargetDetailsobjectThe target details of the machine image resource that will be created by the image import job.
statestringOutput only. The state of the image import.
stepsarrayOutput only. The image import steps list representing its progress.
warningsarrayOutput only. Warnings that occurred during the image import.

Methods

NameAccessible byRequired ParamsDescription
getSELECTimageImportJobsId, imageImportsId, locationsId, projectsIdGets details of a single ImageImportJob.
listSELECTimageImportsId, locationsId, projectsIdLists ImageImportJobs in a given project.
cancelEXECimageImportJobsId, imageImportsId, locationsId, projectsIdInitiates the cancellation of a running clone job.

SELECT examples

Lists ImageImportJobs in a given project.

SELECT
name,
cloudStorageUri,
createTime,
createdResources,
diskImageTargetDetails,
endTime,
errors,
machineImageTargetDetails,
state,
steps,
warnings
FROM google.vmmigration.image_import_jobs
WHERE imageImportsId = '{{ imageImportsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';