image_imports
Creates, updates, deletes, gets or lists a image_imports
resource.
Overview
Name | image_imports |
Type | Resource |
Id | google.vmmigration.image_imports |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource path of the ImageImport. |
cloudStorageUri | string | Immutable. 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. |
diskImageTargetDefaults | object | The target details of the image resource that will be created by the import job. |
encryption | object | Encryption message describes the details of the applied encryption. |
machineImageTargetDefaults | object | The target details of the machine image resource that will be created by the image import job. |
recentImageImportJobs | array | Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | imageImportsId, locationsId, projectsId | Gets details of a single ImageImport. |
list | SELECT | locationsId, projectsId | Lists ImageImports in a given project. |
create | INSERT | locationsId, projectsId | Creates a new ImageImport in a given project. |
delete | DELETE | imageImportsId, locationsId, projectsId | Deletes a single ImageImport. |
SELECT
examples
Lists ImageImports in a given project.
SELECT
name,
cloudStorageUri,
createTime,
diskImageTargetDefaults,
encryption,
machineImageTargetDefaults,
recentImageImportJobs
FROM google.vmmigration.image_imports
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new image_imports
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.vmmigration.image_imports (
locationsId,
projectsId,
cloudStorageUri,
diskImageTargetDefaults,
machineImageTargetDefaults,
encryption
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ cloudStorageUri }}',
'{{ diskImageTargetDefaults }}',
'{{ machineImageTargetDefaults }}',
'{{ encryption }}'
;
- name: your_resource_model_name
props:
- name: cloudStorageUri
value: string
- name: diskImageTargetDefaults
value:
- name: osAdaptationParameters
value:
- name: generalize
value: boolean
- name: licenseType
value: string
- name: dataDiskImageImport
value: []
- name: imageName
value: string
- name: targetProject
value: string
- name: description
value: string
- name: familyName
value: string
- name: labels
value: object
- name: additionalLicenses
value:
- string
- name: singleRegionStorage
value: boolean
- name: encryption
value:
- name: kmsKey
value: string
- name: machineImageTargetDefaults
value:
- name: skipOsAdaptation
value: []
- name: machineImageName
value: string
- name: targetProject
value: string
- name: description
value: string
- name: singleRegionStorage
value: boolean
- name: machineImageParametersOverrides
value:
- name: machineType
value: string
- name: serviceAccount
value:
- name: email
value: string
- name: scopes
value:
- string
- name: additionalLicenses
value:
- string
- name: labels
value: object
- name: tags
value:
- string
- name: shieldedInstanceConfig
value:
- name: secureBoot
value: string
- name: enableVtpm
value: boolean
- name: enableIntegrityMonitoring
value: boolean
- name: networkInterfaces
value:
- - name: network
value: string
- name: subnetwork
value: string
- name: internalIp
value: string
- name: externalIp
value: string
- name: networkTier
value: string
- name: name
value: string
- name: createTime
value: string
- name: recentImageImportJobs
value:
- - name: cloudStorageUri
value: string
- name: name
value: string
- name: createdResources
value:
- string
- name: state
value: string
- name: createTime
value: string
- name: endTime
value: string
- name: errors
value:
- - name: code
value: integer
- name: message
value: string
- name: details
value:
- object
- name: warnings
value:
- - name: code
value: string
- name: warningMessage
value:
- name: locale
value: string
- name: message
value: string
- name: helpLinks
value:
- - name: description
value: string
- name: url
value: string
- name: warningTime
value: string
- name: steps
value:
- - name: initializing
value: []
- name: loadingSourceFiles
value: []
- name: adaptingOs
value: []
- name: creatingImage
value: []
- name: startTime
value: string
- name: endTime
value: string
DELETE
example
Deletes the specified image_imports
resource.
/*+ delete */
DELETE FROM google.vmmigration.image_imports
WHERE imageImportsId = '{{ imageImportsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';