image_import_jobs
Creates, updates, deletes, gets or lists a image_import_jobs
resource.
Overview
Name | image_import_jobs |
Type | Resource |
Id | google.vmmigration.image_import_jobs |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource path of the ImageImportJob. |
cloudStorageUri | string | Output only. The path to the Cloud Storage file from which the image should be imported. |
createTime | string | Output only. The time the image import was created (as an API call, not when it was actually created in the target). |
createdResources | array | Output only. The resource paths of the resources created by the image import job. |
diskImageTargetDetails | object | The target details of the image resource that will be created by the import job. |
endTime | string | Output only. The time the image import was ended. |
errors | array | Output only. Provides details on the error that led to the image import state in case of an error. |
machineImageTargetDetails | object | The target details of the machine image resource that will be created by the image import job. |
state | string | Output only. The state of the image import. |
steps | array | Output only. The image import steps list representing its progress. |
warnings | array | Output only. Warnings that occurred during the image import. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | imageImportJobsId, imageImportsId, locationsId, projectsId | Gets details of a single ImageImportJob. |
list | SELECT | imageImportsId, locationsId, projectsId | Lists ImageImportJobs in a given project. |
cancel | EXEC | imageImportJobsId, imageImportsId, locationsId, projectsId | Initiates 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 }}';