MachineImageTargetDetails

The target details of the machine image resource that will be created by the image import job.

JSON representation
{
  "machineImageName": string,
  "targetProject": string,
  "description": string,
  "singleRegionStorage": boolean,
  "encryption": {
    object (Encryption)
  },
  "machineImageParametersOverrides": {
    object (MachineImageParametersOverrides)
  },
  "serviceAccount": {
    object (ServiceAccount)
  },
  "additionalLicenses": [
    string
  ],
  "labels": {
    string: string,
    ...
  },
  "tags": [
    string
  ],
  "shieldedInstanceConfig": {
    object (ShieldedInstanceConfig)
  },
  "networkInterfaces": [
    {
      object (NetworkInterface)
    }
  ],

  // Union field os_adaptation_config can be only one of the following:
  "osAdaptationParameters": {
    object (ImageImportOsAdaptationParameters)
  },
  "skipOsAdaptation": {
    object (SkipOsAdaptation)
  }
  // End of list of possible types for union field os_adaptation_config.
}
Fields
machineImageName

string

Required. The name of the machine image to be created.

targetProject

string

Required. Reference to the TargetProject resource that represents the target project in which the imported machine image will be created.

description

string

Optional. An optional description of the machine image.

singleRegionStorage

boolean

Optional. Set to true to set the machine image storageLocations to the single region of the import job. When false, the closest multi-region is selected.

encryption

object (Encryption)

Immutable. The encryption to apply to the machine image.

machineImageParametersOverrides

object (MachineImageParametersOverrides)

Optional. Parameters overriding decisions based on the source machine image configurations.

serviceAccount

object (ServiceAccount)

Optional. The service account to assign to the instance created by the machine image.

additionalLicenses[]

string

Optional. Additional licenses to assign to the instance created by the machine image. Format: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME Or https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME

labels

map (key: string, value: string)

Optional. The labels to apply to the instance created by the machine image.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

tags[]

string

Optional. The tags to apply to the instance created by the machine image.

shieldedInstanceConfig

object (ShieldedInstanceConfig)

Optional. Shielded instance configuration.

networkInterfaces[]

object (NetworkInterface)

Optional. The network interfaces to create with the instance created by the machine image. Internal and external IP addresses are ignored for machine image import.

Union field os_adaptation_config.

os_adaptation_config can be only one of the following:

osAdaptationParameters

object (ImageImportOsAdaptationParameters)

Optional. Use to set the parameters relevant for the OS adaptation process.

skipOsAdaptation

object (SkipOsAdaptation)

Optional. Use to skip OS adaptation process.

SkipOsAdaptation

This type has no fields.

Mentions that the machine image import is not using OS adaptation process.

MachineImageParametersOverrides

Parameters overriding decisions based on the source machine image configurations.

JSON representation
{
  "machineType": string
}
Fields
machineType

string

Optional. The machine type to create the MachineImage with. If empty, the service will choose a relevant machine type based on the information from the source image. For more information about machine types, please refer to https://cloud.google.com/compute/docs/machine-resource.

ServiceAccount

Service account to assign to the instance created by the machine image.

JSON representation
{
  "email": string,
  "scopes": [
    string
  ]
}
Fields
email

string

Required. The email address of the service account.

scopes[]

string

Optional. The list of scopes to be made available for this service account.

ShieldedInstanceConfig

Shielded instance configuration.

JSON representation
{
  "secureBoot": enum (SecureBoot),
  "enableVtpm": boolean,
  "enableIntegrityMonitoring": boolean
}
Fields
secureBoot

enum (SecureBoot)

Optional. Defines whether the instance created by the machine image has Secure Boot enabled. This can be set to true only if the image boot option is EFI.

enableVtpm

boolean

Optional. Defines whether the instance created by the machine image has vTPM enabled. This can be set to true only if the image boot option is EFI.

enableIntegrityMonitoring

boolean

Optional. Defines whether the instance created by the machine image has integrity monitoring enabled. This can be set to true only if the image boot option is EFI, and vTPM is enabled.

SecureBoot

Possible values for secure boot.

Enums
SECURE_BOOT_UNSPECIFIED No explicit value is selected. Will use the configuration of the source (if exists, otherwise the default will be false).
TRUE Use secure boot. This can be set to true only if the image boot option is EFI.
FALSE Do not use secure boot.