image_import_jobs
Creates, updates, deletes, gets or lists an image_import_jobs
resource.
Overview
Name | image_import_jobs |
Type | Resource |
Id | google.vmmigration.image_import_jobs |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
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 (google-datetime) | 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 | Output only. Target details used to import a disk image. (id: DiskImageTargetDetails) |
endTime | string (google-datetime) | 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 | Output only. Target details used to import a machine image. (id: MachineImageTargetDetails) |
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. |
Successful response
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 (google-datetime) | 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 | Output only. Target details used to import a disk image. (id: DiskImageTargetDetails) |
endTime | string (google-datetime) | 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 | Output only. Target details used to import a machine image. (id: MachineImageTargetDetails) |
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
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , imageImportsId , imageImportJobsId | Gets details of a single ImageImportJob. | |
list | select | projectsId , locationsId , imageImportsId | pageSize , pageToken , filter , orderBy | Lists ImageImportJobs in a given project. |
cancel | exec | projectsId , locationsId , imageImportsId , imageImportJobsId | Initiates the cancellation of a running clone job. |
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 |
---|---|---|
imageImportJobsId | string | |
imageImportsId | string | |
locationsId | string | |
projectsId | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- get
- list
Gets details of a single ImageImportJob.
SELECT
name,
cloudStorageUri,
createTime,
createdResources,
diskImageTargetDetails,
endTime,
errors,
machineImageTargetDetails,
state,
steps,
warnings
FROM google.vmmigration.image_import_jobs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND imageImportsId = '{{ imageImportsId }}' -- required
AND imageImportJobsId = '{{ imageImportJobsId }}' -- required;
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 projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND imageImportsId = '{{ imageImportsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';
Lifecycle Methods
- cancel
Initiates the cancellation of a running clone job.
EXEC google.vmmigration.image_import_jobs.cancel
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@imageImportsId='{{ imageImportsId }}' --required,
@imageImportJobsId='{{ imageImportJobsId }}' --required;