MachineImage
Represents a machine image resource. A machine image is a Compute Engine resource that stores all the configuration, metadata, permissions, and data from one or more disks required to create a Virtual machine (VM) instance. For more information, seeMachine images.
Properties
| Name | Type | Description |
|---|---|---|
| params | object | Input only. [Input Only] Additional parameters that are passed in the request, but are not persisted in the resource. |
| sourceInstanceProperties | object | Output only. [Output Only] DEPRECATED: Please use instance_properties instead for source instance related properties. New properties will not be added to this field. |
| satisfiesPzi | boolean | Output only. Reserved for future use. |
| satisfiesPzs | boolean | Output only. [Output Only] Reserved for future use. |
| labels | object | Labels to apply to this machine image. These can be later modified by the setLabels method. |
| description | string | An optional description of this resource. Provide this property when you create the resource. |
| machineImageEncryptionKey | object | Encrypts the machine image using acustomer-supplied encryption key. After you encrypt a machine image using a customer-supplied key, you must provide the same key if you use the machine image later. F |
| status | string | Output only. [Output Only] The status of the machine image. One of the following values:INVALID, CREATING, READY,DELETING, and UPLOADING. |
| guestFlush | boolean | [Input Only] Whether to attempt an application consistent machine image by informing the OS to prepare for the snapshot process. |
| name | string | Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match |
| storageLocations | array | The regional or multi-regional Cloud Storage bucket location where themachine image is stored. |
| sourceDiskEncryptionKeys | array | [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key. |
| labelFingerprint | string | A fingerprint for the labels being applied to this machine image, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine an |
| savedDisks | array | Output only. An array of Machine Image specific properties for disks attached to the source instance |
| instanceProperties | object | [Output Only] Properties of source instance |
| kind | string | Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine image. |
| sourceInstance | string | The source instance used to create the machine image. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v |
| creationTimestamp | string | Output only. [Output Only] The creation timestamp for this machine image inRFC3339 text format. |
| id | string | Output only. [Output Only] A unique identifier for this machine image. The server defines this identifier. |
| selfLink | string | Output only. [Output Only] The URL for this machine image. The server defines this URL. |
| totalStorageBytes | string | Output only. [Output Only] Total size of the storage used by the machine image. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-machine-image-schema.json",
"title": "MachineImage",
"description": "Represents a machine image resource.\n\nA machine image is a Compute Engine resource that stores all the\nconfiguration, metadata, permissions, and data from one or more disks\nrequired to create a Virtual machine (VM) instance. For more information, seeMachine images.",
"x-generated": "2026-11-11",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/google-cloud-compute-engine-machine-images-api-openapi.yml#/components/schemas/MachineImage",
"properties": {
"params": {
"$ref": "#/$defs/MachineImageParams",
"description": "Input only. [Input Only] Additional parameters that are passed in the request, but are\nnot persisted in the resource."
},
"sourceInstanceProperties": {
"$ref": "#/$defs/SourceInstanceProperties",
"description": "Output only. [Output Only] DEPRECATED: Please use instance_properties\ninstead for source instance related properties. New properties will not be\nadded to this field."
},
"satisfiesPzi": {
"type": "boolean",
"readOnly": true,
"description": "Output only. Reserved for future use."
},
"satisfiesPzs": {
"type": "boolean",
"readOnly": true,
"description": "Output only. [Output Only] Reserved for future use."
},
"labels": {
"description": "Labels to apply to this machine image. These can be later modified by\nthe setLabels method.",
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"description": {
"description": "An optional description of this resource. Provide this property when you\ncreate the resource.",
"type": "string"
},
"machineImageEncryptionKey": {
"$ref": "#/$defs/CustomerEncryptionKey",
"description": "Encrypts the machine image using acustomer-supplied\nencryption key.\n\nAfter you encrypt a machine image using a customer-supplied key, you must\nprovide the same key if you use the machine image later. For example, you\nmust provide the encryption key when you create an instance from the\nencrypted machine image in a future request.\n\nCustomer-supplied encryption keys do not protect access to metadata of the\nmachine image.\n\nIf you do not provide an encryption key when creating the machine image,\nthen the machine image will be encrypted using an automatically generated\nkey and you do not need to provide a key to use the machine image later."
},
"status": {
"readOnly": true,
"type": "string",
"enum": [
"CREATING",
"DELETING",
"INVALID",
"READY",
"UPLOADING"
],
"description": "Output only. [Output Only] The status of the machine image. One of the following values:INVALID, CREATING, READY,DELETING, and UPLOADING."
},
"guestFlush": {
"description": "[Input Only] Whether to attempt an application consistent machine image by\ninforming the OS to prepare for the snapshot process.",
"type": "boolean"
},
"name": {
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
"type": "string",
"description": "Name of the resource; provided by the client when the resource is created.\nThe name must be 1-63 characters long, and comply withRFC1035.\nSpecifically, the name must be 1-63 characters long and match the regular\nexpression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first\ncharacter must be a lowercase letter, and all following characters must be\na dash, lowercase letter, or digit, except the last character, which cannot\nbe a dash."
},
"storageLocations": {
"type": "array",
"description": "The regional or multi-regional Cloud Storage bucket location where themachine image is\nstored.",
"items": {
"type": "string"
}
},
"sourceDiskEncryptionKeys": {
"type": "array",
"description": "[Input Only] Thecustomer-supplied\nencryption key of the disks attached to the source instance. Required\nif the source disk is protected by a customer-supplied encryption key.",
"items": {
"$ref": "#/$defs/SourceDiskEncryptionKey"
}
},
"labelFingerprint": {
"type": "string",
"format": "byte",
"description": "A fingerprint for the labels being applied to this machine image, which is\nessentially a hash of the labels set used for optimistic locking. The\nfingerprint is initially generated by Compute Engine and changes after\nevery request to modify or update labels. You must always provide an\nup-to-date fingerprint hash in order to update or change labels.\n\nTo see the latest fingerprint, make get() request to the\nmachine image."
},
"savedDisks": {
"items": {
"$ref": "#/$defs/SavedDisk"
},
"description": "Output only. An array of Machine Image specific properties for disks attached to the\nsource instance",
"readOnly": true,
"type": "array"
},
"instanceProperties": {
"$ref": "#/$defs/InstanceProperties",
"description": "[Output Only] Properties of source instance"
},
"kind": {
"description": "Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine image.",
"default": "compute#machineImage",
"type": "string",
"readOnly": true
},
"sourceInstance": {
"type": "string",
"description": "The source instance used to create the machine image. You can provide this\nas a partial or full URL to the resource. For example, the following are\nvalid values: \n \n \n - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance \n - projects/project/zones/zone/instances/instance"
},
"creationTimestamp": {
"description": "Output only. [Output Only] The creation timestamp for this machine image inRFC3339\ntext format.",
"type": "string",
"readOnly": true
},
"id": {
"type": "string",
"format": "uint64",
"description": "Output only. [Output Only] A unique identifier for this machine image. The server\ndefines this identifier.",
"readOnly": true
},
"selfLink": {
"description": "Output only. [Output Only] The URL for this machine image. The server defines this URL.",
"type": "string",
"readOnly": true
},
"totalStorageBytes": {
"description": "Output only. [Output Only] Total size of the storage used by the machine image.",
"format": "int64",
"readOnly": true,
"type": "string"
}
},
"type": "object",
"$defs": {
"AcceleratorConfig": {
"type": "object",
"properties": {
"acceleratorCount": {
"type": "integer",
"format": "int32",
"description": "The number of the guest accelerator cards exposed to this instance."
},
"acceleratorType": {
"description": "Full or partial URL of the accelerator type resource to attach to this\ninstance. For example:projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100\nIf you are creating an instance template, specify only the\naccelerator name.\nSee GPUs on Compute Engine\nfor a full list of accelerator types.",
"type": "string"
}
},
"description": "A specification of the type and number of accelerator cards attached to the\ninstance."
},
"AccessConfig": {
"properties": {
"externalIpv6PrefixLength": {
"description": "Applies to ipv6AccessConfigs only. The prefix length of the\nexternal IPv6 range.",
"type": "integer",
"format": "int32"
},
"securityPolicy": {
"type": "string",
"description": "The resource URL for the security policy associated with this access\nconfig."
},
"type": {
"type": "string",
"description": "The type of configuration. In accessConfigs (IPv4), the\ndefault and only option is ONE_TO_ONE_NAT. Inipv6AccessConfigs, the default and only option isDIRECT_IPV6.",
"enum": [
"DIRECT_IPV6",
"ONE_TO_ONE_NAT"
]
},
"natIP": {
"description": "Applies to accessConfigs (IPv4) only. Anexternal IP\naddress associated with this instance. Specify an unused static\nexternal IP address available to the project or leave this field undefined\nto use an IP from a shared ephemeral IP address pool. If you specify a\nstatic external IP address, it must live in the same region as the zone of\nthe instance.",
"type": "string"
},
"name": {
"description": "The name of this access configuration. In accessConfigs\n(IPv4), the default and recommended name is External NAT, but\nyou can use any arbitrary string, such as My external IP orNetwork Access. In ipv6AccessConfigs, the\nrecommend name is External IPv6.",
"type": "string"
},
"networkTier": {
"type": "string",
"description": "This signifies the networking tier used for configuring this access\nconfiguration and can only take the following values: PREMIUM,STANDARD.\n\nIf an AccessConfig is specified without a valid external IP address, an\nephemeral IP will be created with this networkTier.\n\nIf an AccessConfig with a valid external IP address is specified, it must\nmatch that of the networkTier associated with the Address resource owning\nthat IP.",
"enum": [
"FIXED_STANDARD",
"PREMIUM",
"STANDARD",
"STANDARD_OVERRIDES_FIXED_STANDARD"
]
},
"externalIpv6": {
"description": "Applies to ipv6AccessConfigs only.\nThe first IPv6 address of the external IPv6 range associated\nwith this instance, prefix length is stored inexternalIpv6PrefixLength in ipv6AccessConfig. To\nuse a static external IP address, it must be unused and in the same region\nas the instance's zone. If not specified, Google Cloud will automatically\nassign an external IPv6 address from the instance's subnetwork.",
"type": "string"
},
"publicPtrDomainName": {
"description": "The DNS domain name for the public PTR record.\n\nYou can set this field only if the `setPublicPtr` field is enabled inaccessConfig. If this field is unspecified inipv6AccessConfig, a default PTR record will be created for\nfirst IP in associated external IPv6 range.",
"type": "string"
},
"kind": {
"readOnly": true,
"default": "compute#accessConfig",
"type": "string",
"description": "Output only. [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs."
},
"setPublicPtr": {
"type": "boolean",
"description": "Specifies whether a public DNS 'PTR' record should be created to map the\nexternal IP address of the instance to a DNS domain name.\n\nThis field is not used in ipv6AccessConfig. A default PTR\nrecord will be created if the VM has external IPv6 range associated."
}
},
"description": "An access configuration attached to an instance's network interface.\nOnly one access config per instance is supported.",
"type": "object"
},
"AdvancedMachineFeatures": {
"description": "Specifies options for controlling advanced machine features.\nOptions that would traditionally be configured in a BIOS belong\nhere. Features that require operating system support may have\ncorresponding entries in the GuestOsFeatures of anImage (e.g., whether or not the OS in theImage supports nested virtualization being enabled or\ndisabled).",
"type": "object",
"properties": {
"threadsPerCore": {
"description": "The number of threads per physical core. To disable simultaneous\nmultithreading (SMT) set this to 1. If unset, the maximum number\nof threads supported per core by the underlying processor is\nassumed.",
"type": "integer",
"format": "int32"
},
"visibleCoreCount": {
"format": "int32",
"type": "integer",
"description": "The number of physical cores to expose to an instance. Multiply by\nthe number of threads per core to compute the total number of virtual\nCPUs to expose to the instance. If unset, the number of cores is\ninferred from the instance's nominal CPU count and the underlying\nplatform's SMT width."
},
"performanceMonitoringUnit": {
"description": "Type of Performance Monitoring Unit requested on instance.",
"enum": [
"ARCHITECTURAL",
"ENHANCED",
"PERFORMANCE_MONITORING_UNIT_UNSPECIFIED",
"STANDARD"
],
"type": "string"
},
"enableNestedVirtualization": {
"description": "Whether to enable nested virtualization or not (default is false).",
"type": "boolean"
},
"enableUefiNetworking": {
"type": "boolean",
"description": "Whether to enable UEFI networking for instance creation."
},
"turboMode": {
"type": "string",
"description": "Turbo frequency mode to use for the instance.\nSupported modes include:\n* ALL_CORE_MAX\n\nUsing empty string or not setting this field will use the platform-specific\ndefault turbo mode."
}
}
},
"AliasIpRange": {
"type": "object",
"description": "An alias IP range attached to an instance's network interface.",
"properties": {
"ipCidrRange": {
"description": "The IP alias ranges to allocate for this interface. This IP CIDR range\nmust belong to the specified subnetwork and cannot contain IP addresses\nreserved by system or used by other network interfaces. This range may be\na single IP address (such as 10.2.3.4), a netmask (such as/24) or a CIDR-formatted string (such as10.1.2.0/24).",
"type": "string"
},
"subnetworkRangeName": {
"type": "string",
"description": "The name of a subnetwork secondary IP range from which to allocate an IP\nalias range. If not specified, the primary range of the subnetwork is used."
}
}
},
"AttachedDisk": {
"type": "object",
"description": "An instance-attached disk resource.",
"properties": {
"diskEncryptionKey": {
"$ref": "#/$defs/CustomerEncryptionKey",
"description": "Encrypts or decrypts a disk using acustomer-supplied\nencryption key.\n\nIf you are creating a new disk, this field encrypts the new disk using\nan encryption key that you provide. If you are attaching an existing\ndisk that is already encrypted, this field decrypts the disk using\nthe customer-supplied encryption key.\n\nIf you encrypt a disk using a customer-supplied key, you must provide the\nsame key again when you attempt to use this resource at a later time. For\nexample, you must provide the key when you create a snapshot or an image\nfrom the disk or when you attach the disk to a virtual machine instance.\n\nIf you do not provide an encryption key, then the disk will be encrypted\nusing an automatically generated key and you do not need to provide a key\nto use the disk later.\n\nNote:\n\nInstance templates do not storecustomer-supplied\nencryption keys, so you cannot use your own keys to encrypt disks in amanaged instance group.\n\nYou cannot create VMs that have disks with customer-supplied keys using\nthe bulk\ninsert method."
},
"forceAttach": {
"type": "boolean",
"description": "[Input Only] Whether to force attach the regional disk even if it's\ncurrently attached to another instance. If you try to force attach a zonal\ndisk to an instance, you will receive an error."
},
"shieldedInstanceInitialState": {
"$ref": "#/$defs/InitialStateConfig",
"description": "Output only. [Output Only] shielded vm initial state stored on disk"
},
"savedState": {
"readOnly": true,
"description": "Output only. For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this\nfield is set to PRESERVED if the LocalSSD data has been saved\nto a persistent location by customer request. (see the\ndiscard_local_ssd option on Stop/Suspend).\nRead-only in the api.",
"enum": [
"DISK_SAVED_STATE_UNSPECIFIED",
"PRESERVED"
],
"type": "string"
},
"mode": {
"type": "string",
"description": "The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the default is to attach the disk\nin READ_WRITE mode.",
"enum": [
"READ_ONLY",
"READ_WRITE"
]
},
"boot": {
"description": "Indicates that this is a boot disk. The virtual machine will use the first\npartition of the disk for its root filesystem.",
"type": "boolean"
},
"licenses": {
"description": "Output only. [Output Only] Any valid publicly visible licenses.",
"readOnly": true,
"type": "array",
"items": {
"type": "string"
}
},
"source": {
"description": "Specifies a valid partial or full URL to an existing Persistent Disk\nresource. When creating a new instance boot disk, one ofinitializeParams.sourceImage orinitializeParams.sourceSnapshot or disks.source\nis required.\n\nIf desired, you can also attach existing non-root persistent disks using\nthis property. This field is only applicable for persistent disks.\n\nNote that for InstanceTemplate, specify the disk name for zonal disk,\nand the URL for regional disk.",
"type": "string"
},
"initializeParams": {
"$ref": "#/$defs/AttachedDiskInitializeParams",
"description": "[Input Only] Specifies the parameters for a new disk that will be created\nalongside the new instance. Use initialization parameters to create boot\ndisks or local SSDs attached to the new instance.\n\nThis property is mutually exclusive with the source property;\nyou can only define one or the other, but not both."
},
"kind": {
"readOnly": true,
"type": "string",
"description": "Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks.",
"default": "compute#attachedDisk"
},
"deviceName": {
"type": "string",
"description": "Specifies a unique device name of your choice that is reflected into the/dev/disk/by-id/google-* tree of a Linux operating system\nrunning within the instance. This name can be used to reference the device\nfor mounting, resizing, and so on, from within the instance.\n\nIf not specified, the server chooses a default device name to apply to this\ndisk, in the form persistent-disk-x, where x is a number\nassigned by Google Compute Engine. This field is only applicable for\npersistent disks."
},
"guestOsFeatures": {
"items": {
"$ref": "#/$defs/GuestOsFeature"
},
"type": "array",
"description": "A list of features to enable on the guest operating system. Applicable\nonly for bootable images. Read\nEnabling guest operating system features to see a list of available\noptions."
},
"type": {
"enum": [
"PERSISTENT",
"SCRATCH"
],
"description": "Specifies the type of the disk, either SCRATCH orPERSISTENT. If not specified, the default isPERSISTENT.",
"type": "string"
},
"diskSizeGb": {
"format": "int64",
"type": "string",
"description": "The size of the disk in GB."
},
"interface": {
"enum": [
"NVME",
"SCSI"
],
"description": "Specifies the disk interface to use for attaching this disk, which is\neither SCSI or NVME. For most machine types, the\ndefault is SCSI. Local SSDs can use either NVME or SCSI.\nIn certain configurations, persistent disks can use NVMe. For more\ninformation, seeAbout\npersistent disks.",
"type": "string"
},
"architecture": {
"readOnly": true,
"description": "Output only. [Output Only] The architecture of the attached disk. Valid values are ARM64\nor X86_64.",
"type": "string",
"enum": [
"ARCHITECTURE_UNSPECIFIED",
"ARM64",
"X86_64"
]
},
"index": {
"readOnly": true,
"format": "int32",
"type": "integer",
"description": "Output only. [Output Only] A zero-based index to this disk, where 0 is reserved for the\nboot disk. If you have many disks attached to an instance, each\ndisk would have a unique index number."
},
"autoDelete": {
"description": "Specifies whether the disk will be auto-deleted when the instance is\ndeleted (but not when the disk is detached from the instance).",
"type": "boolean"
}
}
},
"AttachedDiskInitializeParams": {
"properties": {
"licenses": {
"description": "A list of publicly visible licenses. Reserved for Google's use.",
"type": "array",
"items": {
"type": "string"
}
},
"diskSizeGb": {
"type": "string",
"format": "int64",
"description": "Specifies the size of the disk in base-2 GB. The size must be at least\n10 GB. If you specify a sourceImage, which is required for\nboot disks, the default size is the size of the sourceImage.\nIf you do not specify a sourceImage, the default disk size\nis 500 GB."
},
"storagePool": {
"type": "string",
"description": "The storage pool in which the new disk is created. You can provide\nthis as a partial or full URL to the resource. For example, the following\nare valid values:\n \n \n - https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool\n - projects/project/zones/zone/storagePools/storagePool \n - zones/zone/storagePools/storagePool"
},
"sourceImage": {
"description": "The source image to create this disk. When creating a new instance boot\ndisk, one of initializeParams.sourceImage orinitializeParams.sourceSnapshot or disks.source\nis required.\n\nTo create a disk with one of the public operating system\nimages, specify the image by its family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image:\n\nprojects/debian-cloud/global/images/family/debian-9\n\n\nAlternatively, use a specific version of a public operating system image:\n\nprojects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD\n\n\nTo create a disk with a custom image that you created, specify the\nimage name in the following format:\n\nglobal/images/my-custom-image\n\n\nYou can also specify a custom image by its image family, which returns\nthe latest version of the image in that family. Replace the image name\nwith family/family-name:\n\nglobal/images/family/my-image-family\n\n\nIf the source image is deleted later, this field will not be set.",
"type": "string"
},
"resourceManagerTags": {
"description": "Input only. Resource manager tags to be bound to the disk. Tag keys and values\nhave the same definition as resource\nmanager tags. Keys and values can be either in numeric format,\nsuch as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in\nnamespaced format such as `{org_id|project_id}/{tag_key_short_name}` and\n`{tag_value_short_name}`. The field is ignored (both PUT & PATCH) when\nempty.",
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"diskType": {
"description": "Specifies the disk type used for the boot disk or an additional data\ndisk. For valid disk type values, see \nSupported types for Hyperdisk volumes and\nPersistent Disk type variables.\n\nWhen creating a single instance, you must provide either the full or\npartial URL of the disk type. For example, the following values are\nvalid: \n \n \n - https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType\n - projects/project/zones/zone/diskTypes/diskType\n - zones/zone/diskTypes/diskType\n\n\n\nWhen creating an instance template, instance flexibility policy, or when\ncreating or updating an all-instances configuration, you specify the\ndisk type without a URL, for example, hyperdisk-balanced.\n\nIf you omit this field for a disk, the default disk type depends on\nthe instance's machine series, as follows.\n \n \n - For first- and second-generation machine series like N1, N2, T2, and\n M1, the\n default disk type is Standard Persistent Disk\n (pd-standard).\n - For C3, C3D, and M3 the default is Balanced Persistent Disk\n (pd-balanced). \n - For other third-generation machine\n series like A3, H3, Z3, all\n fourth-generation types like C4, N4, M4, and newer machine series,\n the default is Hyperdisk Balanced\n (hyperdisk-balanced).\n\n\n\nThe disk type you specify must be compatible with the instance's machine\nseries. For a list of machine series that support Persistent Disk, see Machine\nseries support for Persistent Disk.\n\nFor a list of machine series that support Hyperdisk, seeMachine\nseries support for Hyperdisk.",
"type": "string"
},
"provisionedIops": {
"description": "Indicates how many IOPS to provision for the disk. This sets the number\nof I/O operations per second that the disk can handle. Values must be\nbetween 10,000 and 120,000. For more details, see theExtreme persistent\ndisk documentation.",
"type": "string",
"format": "int64"
},
"labels": {
"type": "object",
"description": "Labels to apply to this disk. These can be later modified by thedisks.setLabels method. This field is only applicable for\npersistent disks.",
"additionalProperties": {
"type": "string"
}
},
"replicaZones": {
"type": "array",
"items": {
"type": "string"
},
"description": "Required for each regional disk associated with the instance. Specify\nthe URLs of the zones where the disk should be replicated to.\nYou must provide exactly two replica zones, and one zone must be the same\nas the instance zone."
},
"resourcePolicies": {
"description": "Resource policies applied to this disk for automatic snapshot creations.\nSpecified using the full or partial URL. For instance template, specify\nonly the resource policy name.",
"items": {
"type": "string"
},
"type": "array"
},
"architecture": {
"enum": [
"ARCHITECTURE_UNSPECIFIED",
"ARM64",
"X86_64"
],
"type": "string",
"description": "The architecture of the attached disk. Valid values are\narm64 or x86_64."
},
"provisionedThroughput": {
"description": "Indicates how much throughput to provision for the disk. This sets the\nnumber of throughput mb per second that the disk can handle. Values must\ngreater than or equal to 1.",
"type": "string",
"format": "int64"
},
"sourceImageEncryptionKey": {
"$ref": "#/$defs/CustomerEncryptionKey",
"description": "Thecustomer-supplied\nencryption key of the source image. Required if the source image is\nprotected by a customer-supplied encryption key.\n\nInstanceTemplate and InstancePropertiesPatch do not storecustomer-supplied\nencryption keys, so you cannot create disks for instances in a managed instance group if the\nsource images are encrypted with your own keys."
},
"onUpdateAction": {
"enum": [
"RECREATE_DISK",
"RECREATE_DISK_IF_SOURCE_CHANGED",
"USE_EXISTING_DISK"
],
"description": "Specifies which action to take on instance update with this disk. Default\nis to use the existing disk.",
"type": "string"
},
"diskName": {
"description": "Specifies the disk name. If not specified, the default is to use the name\nof the instance. If a disk with the same name already exists in the given\nregion, the existing disk is attached to the new instance and the\nnew disk is not created.",
"type": "string"
},
"sourceSnapshotEncryptionKey": {
"$ref": "#/$defs/CustomerEncryptionKey",
"description": "Thecustomer-supplied\nencryption key of the source snapshot."
},
"description": {
"type": "string",
"description": "An optional description. Provide this property when creating the disk."
},
"enableConfidentialCompute": {
"description": "Whether this disk is using confidential compute mode.",
"type": "boolean"
},
"sourceSnapshot": {
"description": "The source snapshot to create this disk. When creating a new instance\nboot disk, one of initializeParams.sourceSnapshot orinitializeParams.sourceImage or disks.source\nis required.\n\nTo create a disk with a snapshot that you created, specify the\nsnapshot name in the following format:\n\nglobal/snapshots/my-backup\n\n\nIf the source snapshot is deleted later, this field will not be set.\n\nNote: You cannot create VMs in bulk using a snapshot as the source. Use\nan image instead when you create VMs using\nthe bulk\ninsert method.",
"type": "string"
}
},
"description": "[Input Only] Specifies the parameters for a new disk that will be created\nalongside the new instance. Use initialization parameters to create boot\ndisks or local SSDs attached to the new instance.\n\nThis field is persisted and returned for instanceTemplate and not returned\nin the context of instance.\n\nThis property is mutually exclusive with the source property;\nyou can only define one or the other, but not both.",
"type": "object"
},
"ConfidentialInstanceConfig": {
"type": "object",
"description": "A set of Confidential Instance options.",
"properties": {
"confidentialInstanceType": {
"type": "string",
"description": "Defines the type of technology used by the confidential instance.",
"enum": [
"BMSAI",
"CCA",
"CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED",
"SEV",
"SEV_SNP",
"TDX"
]
},
"enableConfidentialCompute": {
"type": "boolean",
"description": "Defines whether the instance should have confidential compute enabled.\nWhen enabled, the technology used defaults to \nAMD SEV unless confidentialInstanceType is specified."
}
}
},
"CustomerEncryptionKey": {
"type": "object",
"properties": {
"rawKey": {
"description": "[DEPRECATED] CSEK is no longer supported. Use CMEK instead.\nSpecifies a 256-bit customer-supplied\nencryption key, encoded in RFC\n4648 base64 to either encrypt or decrypt this resource. You can\nprovide either the rawKey or thersaEncryptedKey.\nFor example:\n\n\"rawKey\":\n\"SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=\"",
"type": "string",
"deprecated": true
},
"sha256": {
"type": "string",
"description": "[DEPRECATED] CSEK is no longer supported. Use CMEK instead.\n[Output only] TheRFC\n4648 base64 encoded SHA-256 hash of the customer-supplied\nencryption key that protects this resource.",
"deprecated": true
},
"kmsKeyServiceAccount": {
"type": "string",
"description": "The service account being used for the encryption request for the given KMS\nkey. If absent, the Compute Engine default service account is used.\nFor example:\n\n\"kmsKeyServiceAccount\": \"name@project_id.iam.gserviceaccount.com/"
},
"kmsKeyName": {
"type": "string",
"des
# --- truncated at 32 KB (76 KB total) ---
# Full source: https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-machine-image-schema.json
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/google-cloud-compute-engine-machine-image"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.