If you are not sure if the website you would like to visit is secure, you can verify it here. Enter the website address of the page and see parts of its content and the thumbnail images on this site. None (if any) dangerous scripts on the referenced page will be executed. Additionally, if the selected site contains subpages, you can verify it (review) in batches containing 5 pages.
favicon.ico: docs.cloud.google.com/compute/docs/instance-templates/create-instance-templates - Create instance templates  |  .

site address: docs.cloud.google.com/compute/docs/instance-templates/create-instance-templates redirected to: docs.cloud.google.com/compute/docs/instance-templates/create-instance-templates

site title: Create instance templates     Compute Engine     Google Cloud Documentation

Our opinion (on Wednesday 22 July 2026 23:26:19 UTC):

GREEN status (no comments) - no comments
After content analysis of this website we propose the following hashtags:



Meta tags:

Headings (most frequently used words):

instance, an, create, template, gcloud, for, console, go, java, node, js, python, rest, based, on, terraform, permissions, required, this, task, templates, with, and, your, existing, stay, organized, collections, save, categorize, content, preferences, before, you, begin, limitations, gpu, vms, container, image, that, specifies, subnet, use, custom, or, public, images, in, what, next, products, pricing, support, resources, engage,

Text of the page (most frequently used words):
the (678), #instance (333), #create (273), template (248), for (217), and (209), you (187), image (173), disk (165), cloud (138), vms (138), with (135), compute (118), use (117), operation (117), google (104), boot (93), name (85), using (82), disks (81), that (72), project (70), your (69), global (69), about (68), import (66), images (64), network (64), type (63), following (62), troubleshoot (62), from (59), projects (55), string (53), new (52), source (52), set (52), gcloud (52), can (50), family (49), machine (48), manage (47), specify (47), default (47), this (46), templates (46), debian (46), configure (44), region (43), more (42), com (42), instances (40), mig (40), view (40), instancetemplatesclient (40), true (40), projectid (40), custom (39), server (39), see (38), regional (38), gpu (37), templatename (36), container (36), want (33), example (33), cli (33), windows (33), information (32), properties (31), overview (31), local (30), performance (30), engine (29), subnetwork (29), configuration (29), linux (29), reservation (28), instancetemplate (28), build (28), external (28), then (28), public (27), err (27), proto (27), persistent (27), computepb (26), must (26), zone (26), identity (26), subnet (25), return (25), creation (25), only (25), monitoring (25), existing (24), access (23), used (23), wait (23), newbuilder (23), virtual (23), based (23), zones (23), integrity (23), monitor (23), authentication (23), project_id (22), compute_v1 (22), response (22), replace (22), insertinstancetemplaterequest (22), click (22), hyperdisk (22), when (21), format (21), console (21), const (21), sql (21), are (20), created (20), instance_template_name (20), install (20), resources (19), add (19), standard (19), request (19), credentials (19), application (19), java (18), insert (18), sys (18), during (18), command (18), options (18), one (18), update (17), best (17), startup (17), running (17), attach (17), error (17), globaloperationsclient (17), run (17), reservations (17), policies (16), practices (16), uses (16), don (16), size (16), include (16), non (16), apply (16), attached (16), data (16), how (15), workload (15), load (15), attacheddisk (15), result (15), stderr (15), exception (15), timeout (15), will (15), fmt (15), flag (15), change (15), host (15), delete (15), read (15), storage (15), environment (15), snapshots (15), groups (15), ssh (15), recommendations (15), samples (14), families (14), creates (14), instanceproperties (14), networks (14), number (14), file (14), method (14), sourceimage (14), instancetemplates (14), specific (14), resource (14), workloads (14), vtpm (14), development (14), provider (14), connect (14), page (13), migs (13), machine_type (13), warning (13), concurrent (13), initializeparams (13), specifies (13), nvidia (13), select (13), override (13), valid (13), shielded (13), user (13), login (13), management (13), bulk (13), microsoft (13), cluster (13), code (12), need (12), managed (12), have (12), template_name (12), networkinterface (12), regions (12), str (12), flush (12), print (12), warnings (12), verbose_name (12), optional (12), any (12), nil (12), ctx (12), migrate (12), gpus (12), rest (12), maintenance (12), choose (12), rocky (12), secure (12), idp (12), federated (12), sole (12), availability (12), other (11), provided (11), settings (11), specified (11), get (11), before (11), out (11), make (11), also (11), version (11), post (11), property (11), sourceinstanceparams (11), metadata (11), multiple (11), stateful (11), system (10), start (10), remove (10), network_interface (10), initialize_params (10), value (10), there (10), node (10), timeoutexception (10), executionexception (10), ioexception (10), static (10), deploy (10), mode (10), terraform (10), permissions (10), blank (10), device (10), address (10), guest (10), service (10), shell (10), machines (10), logs (10), sign (9), enable (9), applications (9), template_client (9), 250 (9), attacheddiskinitializeparams (9), describes (9), returns (9), args (9), error_code (9), complete (9), long (9), machinetype (9), these (9), util (9), errorf (9), https (9), where (9), available (9), optimized (9), agent (9), keys (9), zonal (9), licenses (9), tenant (9), openshift (9), shutdown (9), time (9), hpc (9), status (8), all (8), sample (8), license (8), group (8), note (8), scripts (8), which (8), manually (8), lets (8), balancing (8), auto_delete (8), autodelete (8), googleapis (8), values (8), registry (8), docker (8), containers (8), creating (8), each (8), first (8), platform (8), networking (8), account (8), cpu (8), optimize (8), internal (8), disaster (8), recovery (8), high (8), h4d (8), flexibility (8), dns (8), tpu (8), events (7), thumb (7), its (7), between (7), different (7), after (7), connects (7), createtemplatewithsubnet (7), networkinterfaces (7), timeunit (7), setname (7), interruptedexception (7), throws (7), void (7), url (7), deprecated (7), tag (7), terminate (7), image_family (7), policy (7), required (7), scalable (7), instantiatefrom (7), provide (7), source_instance (7), createtemplatefrominstance (7), off (7), trusted (7), secondary (7), accounts (7), security (7), modify (7), across (7), commitments (7), benchmark (7), idle (7), addresses (7), scale (7), back (7), mysql (7), snapshot (7), backup (7), marketplace (6), details (6), send (6), script (6), without (6), control (6), wait_for_extended_operation (6), def (6), error_message (6), runtimeerror (6), raise (6), raised (6), seconds (6), but (6), extendedoperation (6), operationsclient (6), await (6), disksizegb (6), instancetemplateresource (6), your_template_name (6), your_project_id (6), todo (6), developer (6), variables (6), unable (6), req (6), newinstancetemplatesrestclient (6), context (6), apiv1 (6), latest (6), same (6), defined (6), optionally (6), advanced (6), section (6), one_to_one_nat (6), contains (6), image_project (6), workstation (6), location (6), perform (6), task (6), learning (6), specifying (6), ssd (6), mount (6), instead (6), diskconfigs (6), devicename (6), source_instance_zone (6), setting (6), additional (6), turns (6), measured (6), module (6), protect (6), level (6), access_config (6), accessconfig (6), auth (6), disable (6), pool (6), interfaces (6), initialize (6), usage (6), migration (6), updates (6), instant (6), files (6), nested (6), demand (6), pools (6), failover (6), extension (6), transfer (6), customized (6), spot (6), understand (5), down (5), services (5), than (5), prepare (5), autoscaling (5), subnetworks (5), were (5), python (5), bool (5), close (5), writer (5), similar (5), whether (5), interface (5), accessconfigs (5), field (5), supports (5), plan (5), tools (5), auto (5), write (5), sourceinstance (5), cos (5), original (5), diskinstantiationconfig (5), premium (5), balanced (5), replica (5), cross (5), returned (5), confirm (5), signed (5), review (5), databases (5), errors (5), future (5), drivers (5), virtualization (5), operations (5), placement (5), highly (5), multi (5), capacity (5), schedules (5), audit (5), symphony (5), email (5), manager (5), operating (5), systems (5), enhanced (5), capabilities (5), stop (5), tenancy (5), restore (5), types (5), faq (5), flex (5), português (4), español (4), support (4), apache (4), learn (4), helps (4), automatically (4), source_image (4), let (4), require (4), getstatus (4), printf (4), failed (4), println (4), haserror (4), minutes (4), setinstancetemplateresource (4), setproject (4), setautodelete (4), try (4), main (4), nginx (4), full (4), app (4), follows (4), predefined (4), most (4), body (4), basic (4), google_compute_instance_template (4), accelerator (4), workstations (4), call (4), documentation (4), changes (4), deleted (4), unformatted (4), setup (4), image_family_name (4), customimage (4), not (4), instantiate_options (4), source_disk (4), false (4), custom_image (4), match (4), tostring (4), instantiate (4), flags (4), kernel (4), chose (4), remote_zone (4), disk_name (4), nat (4), createtemplate (4), networktier (4), list (4), turn (4), api (4), apis (4), authenticate (4), dynamic (4), nics (4), distributed (4), issues (4), ubuntu (4), bandwidth (4), tcp (4), pmu (4), share (4), upgrade (4), live (4), requests (4), calendar (4), single (4), metrics (4), health (4), active (4), clusters (4), database (4), postgresql (4), extensions (4), work (4), suspend (4), resize (4), graceful (4), locations (4), plans (4), replication (4), bound (4), terms (3), content (3), under (3), deterministic (3), starts (3), individual (3), either (3), instance_template (3), instance_template_resource (3), disk_size_gb (3), object (3), represents (3), message (3), futures (3), timeouterror (3), case (3), taking (3), longer (3), received (3), raises (3), whatever (3), none (3), indefinitely (3), finish (3), reporting (3), verbose (3), they (3), printed (3), execution (3), ends (3), successful (3), waits (3), extended (3), 300 (3), int (3), api_core (3), extended_operation (3), typing (3), annotations (3), __future__ (3), log (3), done (3), while (3), latestresponse (3), function (3), async (3), uncomment (3), setproperties (3), addnetworkinterfaces (3), setmachinetype (3), adddisks (3), setboot (3), setdisksizegb (3), setsourceimage (3), setinitializeparams (3), class (3), fprintf (3), defer (3), background (3), func (3), golang (3), org (3), protobuf (3), preemptible (3), ipv6 (3), ipv4_only (3), target (3), associated (3), place (3), artifact (3), gcr (3), nginx1 (3), equivalent (3), always (3), option (3), commands (3), read_write (3), tesla (3), scheduling (3), onhostmaintenance (3), vcpus (3), recent (3), buster (3), v20200309 (3), supported (3), model (3), rtx (3), vws (3), tab (3), deep (3), frameworks (3), copy (3), described (3), preceding (3), was (3), 16108 (3), 403 (3), path (3), shown (3), within (3), base (3), limit (3), enables (3), validates (3), pre (3), disabling (3), disables (3), because (3), relies (3), gathered (3), important (3), against (3), malware (3), rootkits (3), project_name (3), define (3), createinstancetemplate (3), reference (3), vpc (3), checkbox (3), through (3), shared (3), guides (3), infrastructure (3), observability (3), analytics (3), automatic (3), troubleshooting (3), encryption (3), pro (3), serial (3), configurations (3), patterns (3), higher (3), discounts (3), cuds (3), manual (3), resilient (3), autoscale (3), balancer (3), prevent (3), testing (3), ibm (3), spectrum (3), deploying (3), deployment (3), rhel (3), certificates (3), query (3), state (3), schedule (3), lifecycle (3), design (3), move (3), series (3), tpus (3), product (3), 한국어 (2), 日本語 (2), עברית (2), brasil (2), italiano (2), indonesia (2), français (2), américa (2), latina (2), deutsch (2), english (2), site (2), youtube (2), center (2), started (2), pricing (2), products (2), last (2), updated (2), 2026 (2), utc (2), licensed (2), feedback (2), mtls (2), communication (2), next (2), however (2), apps (2), items (2), network_interfaces (2), getname (2), futurecall (2), insertcallable (2), int64 (2), output (2), central1 (2), instance_template_region (2), enabled (2), stack_type (2), exists (2), subnet_name_or_url (2), stack (2), sure (2), into (2), deprecation (2), caution (2), named (2), container_image (2), hello (2), includes (2), installed (2), deployed (2), init (2), guestaccelerators (2), assume (2), count (2), google_compute_region_instance_template (2), graphics (2), menu (2), goes (2), date (2), should (2), exampleproject (2), ssds (2), data_disk_name (2), retain (2), alternatively (2), depend (2), fields (2), regioninstancetemplates (2), source_instance_params (2), basing (2), instance_name (2), overrides (2), save (2), verify (2), reports (2), labels (2), displayed (2), replicazones (2), entry (2), network_tier (2), insertasync (2), settype (2), setdisktype (2), scopes (2), replicate (2), disk_type (2), size_gb_disk2 (2), size_gb_disk1 (2), disk_image_project (2), disk_image_family (2), customize (2), clear (2), edit (2), reduce (2), client (2), has (2), limitations (2), sdk (2), languages (2), costs (2), industry (2), solutions (2), hybrid (2), multicloud (2), pipelines (2), hosting (2), quota (2), commitment (2), consumption (2), registration (2), sles (2), export (2), port (2), collecting (2), nodes (2), report (2), arm (2), core (2), rdp (2), general (2), latency (2), analyze (2), visible (2), cores (2), committed (2), generation (2), underutilized (2), insights (2), utilization (2), globally (2), web (2), autohealing (2), iis (2), reserve (2), autoscaler (2), autoscalers (2), activity (2), kubernetes (2), directory (2), redis (2), cloning (2), alwayson (2), volumes (2), synchronization (2), switch (2), byol (2), payg (2), byos (2), guide (2), securing (2), event (2), simulate (2), topology (2), together (2), repairs (2), repair (2), check (2), failures (2), suspended (2), stopped (2), distribution (2), physical (2), cancel (2), once (2), decrease (2), increase (2), consistent (2), scoped (2), appliances (2), asynchronous (2), throughput (2), encrypt (2), names (2), memory (2), extreme (2), organization (2), rdma (2), provisioning (2), models (2), constraints (2), technology (2), areas (2), subscribe, newsletter, our, third, decade, climate, action, join, cookies, privacy, tech, twitter, blog, engage, training, certification, architecture, getting, github, release, notes, community, forums, contact, sales, easy, easytounderstand, solved, problem, solvedmyproblem, otherup, hard, hardtounderstand, incorrect, incorrectinformationorsamplecode, missing, missingtheinformationsamplesineed, otherdown, tell, except, otherwise, noted, registered, trademark, oracle, affiliates, developers, creative, commons, attribution, communicate, identities, what, belongs, still, owner, grants, granting, managing, quickly, flexible, designed, frequently, useful, those, book, create_template_with_subnet, setsubnetwork, setnetwork, creation_timestamp, 2019, 23t20, 791, called, ipv6_only, ipv4_ipv6, finds, choice, requires, effective, march, 2025, shut, writing, unavailable, launches, runs, configuring, hub, httpd, selects, stored, pkg, dev, gke, dialog, launched, deploys, tool, document, acceleratortype, acceleratorcount, on_host_maintenance, guest_accelerator, follow, prompts, intensive, grid, enter, science, consider, prepackaged, comes, essential, stops, least, another, matches, attribute, doesn, included, table, shows, overriding, my_project, replaced, disk_configs, instantiate_from, device_name, create_template_from_instance, setsourceinstanceparams, setsourceinstance, setcustomimage, setinstantiatefrom, setdevicename, adddiskconfigs, instancename, diskinstantiationconfig_custom_image, cps, yes, specifications, copied, might, parameters, runtime, enableintegritymonitoring, enablevtpm, enablesecureboot, boolean, disktype, replicated, located, access_configs, type_, create_template, networkname, argument, createinstancetemplatewithdisktype, setnetworktier, addaccessconfigs, accessconfig_premium, accessconfig_one_to_one_nat, www, service_account, avoid, embedding, secret, recommends, config, defining, foobar, subcommands, depends, tip, parameter, characters, separation, character, colon, expected, comma, 250gb, explicitly, ephemeral, ipv4, explicit, json, representation, tabs, further, uncheck, youn, accept, them, dependency, remaining, steps, appear, libraries, including, been, nic0, haven, already, verifies, selecting, previously, components, installation, why, begin, categorize, preferences, stay, organized, collections, home, renewal, nvme, resizing, common, pay, viewing, diagnostic, sudoers, screenshots, generate, bug, blackwell, soft, lockups, bus, locks, rescue, inaccessible, dumps, panic, fstab, unresponsive, suspension, reboots, shutdowns, connectivity, tips, dpdk, improve, resiliency, compact, idpf, irdma, driver, nic, threads, per, sustained, merge, split, extend, renew, purchase, cost, savings, overcommit, cpus, floating, reliable, udp, backends, routing, scaling, consuming, consume, combine, cud, allow, sharing, decisions, signals, serving, predictions, organize, states, observe, tensorflow, inference, tensorrt5, monte, carlo, methods, spark, forwarding, others, integrate, clustering, exchange, 2016, sharepoint, strategies, passive, inactive, setups, built, integrations, validation, transition, test, hammerdb, bucket, aws, ec2, pacemaker, s2d, block, netapp, hot, standby, drbd, architectures, private, mailjet, mailgun, sendgrid, sending, blue, green, deployments, lamp, joomla, asp, net, interactive, mongodb, flask, servers, over, random, generator, virtio, rng, accurate, protocol, ntp, append, els, restrictions, packages, deprecate, versions, red, hat, knowledgebase, functionality, risks, controls, confidential, kek, expiration, attributes, handle, notices, process, faulty, unmanaged, affect, preserved, alternate, fails, repairing, maintain, upgrades, selectively, applying, accelerate, outage, rebalance, reenable, proactive, redistribution, shape, distribute, info, accidental, deletion, spread, rename, reset, resume, restart, referrers, uuid, recover, corrupted, duplicate, clones, alerts, backups, vss, regionally, protection, considerations, synchronous, consistency, failback, provisioned, iops, limits, evaluate, help, kms, customer, supplied, symbolic, links, practice, ram, exapools, ptr, record, failure, rates, tags, restrict, automate, password, powershell, sac, securely, root, vpn, bastion, iap, connection, browser, connections, iso, imported, prerequisites, importing, exporting, bring, own, detach, reattach, constraint, accounting, provision, examples, slurm, reserved, team, slice, slices, adds, scenarios, requirements, ready, aci, configured, preempted, historical, alternative, displays, ops, logging, gpudirect, ultra, minimum, hostname, quickstarts, iam, roles, office, licensing, strategy, gemini, bare, metal, accelerators, platforms, scores, purpose, discover, free, skip,


Text of the page (random words):
o_delete replace the following instance_template_name is the name of the template to create source_instance is the name of the instance to use as a model for the new template source_instance_zone is the zone that contains the source instance source_disk is the name of a source instance disk that you want to override within the template instantiate_options specifies whether to include the disk and which image to use valid values depend on the type of disk source image or source image family valid only for boot and other persistent read write disks specify this option if you want to use the same source image or source image family that was used to create the disk in the source vm instance custom image valid only for boot and other persistent read write disks if you want to retain applications and settings from the source vms in your instance template you can create a custom image and then specify it when you create the template if specified then provide the path or url for the custom image as shown in the following example alternatively you can specify an image family using the following format configure disk device name data_disk_name instantiate from custom image custom image projects project_id global images family image_family_name attach read only valid only for read only disks blank valid only for non boot persistent disks and local ssds if specified then when the template is used to create a new instance the disk is created unformatted you must format and mount the disk in a startup script before you can use it in a scalable setup do not include valid only for non boot persistent disks and read only disks auto_delete specifies whether the disk is auto deleted when the instance is deleted valid values are false no true and yes for example the following command creates an instance template based on my source instance with the option to use the original image from data disk a but set auto delete to true and replace data disk b with a custom image gcloud compute instance templates create my instance template source instance my source instance configure disk device name data disk a instantiate from source image auto delete true configure disk device name data disk b instantiate from custom image custom image projects cps cloud global images cos 89 16108 403 15 go import context fmt io compute cloud google com go compute apiv1 computepb cloud google com go compute apiv1 computepb google golang org protobuf proto createtemplatefrominstance creates a new instance template based on an existing instance this new template specifies a different boot disk func createtemplatefrominstance w io writer projectid instance templatename string error projectid your_project_id instance projects project zones zone instances instance templatename your_template_name ctx context background instancetemplatesclient err compute newinstancetemplatesrestclient ctx if err nil return fmt errorf newinstancetemplatesrestclient w err defer instancetemplatesclient close req computepb insertinstancetemplaterequest project projectid instancetemplateresource computepb instancetemplate name proto string templatename sourceinstance proto string instance sourceinstanceparams computepb sourceinstanceparams diskconfigs computepb diskinstantiationconfig device name must match the name of a disk attached to the instance your template is based on devicename proto string disk 1 replace the original boot disk image used in your instance with a rocky linux image instantiatefrom proto string computepb diskinstantiationconfig_custom_image string customimage proto string projects rocky linux cloud global images family rocky linux 8 override the auto_delete setting autodelete proto bool true op err instancetemplatesclient insert ctx req if err nil return fmt errorf unable to create instance template w err if err op wait ctx err nil return fmt errorf unable to wait for the operation w err fmt fprintf w instance template created n return nil java import com google cloud compute v1 diskinstantiationconfig import com google cloud compute v1 diskinstantiationconfig instantiatefrom import com google cloud compute v1 globaloperationsclient import com google cloud compute v1 insertinstancetemplaterequest import com google cloud compute v1 instancetemplate import com google cloud compute v1 instancetemplatesclient import com google cloud compute v1 operation import com google cloud compute v1 sourceinstanceparams import java io ioexception import java util concurrent executionexception import java util concurrent timeunit import java util concurrent timeoutexception public class createtemplatefrominstance public static void main string args throws ioexception executionexception interruptedexception timeoutexception todo developer replace these variables before running the sample projectid project id or project number of the cloud project you use instance the instance to base the new template on this value uses the following format note projects project zones zone instances instance_name templatename name of the new template to create string projectid your project id string templatename template name string instance string format projects s zones s instances s projectid zone instancename createtemplatefrominstance projectid templatename instance create a new instance template based on an existing instance this new template specifies a different boot disk public static void createtemplatefrominstance string projectid string templatename string instance throws ioexception executionexception interruptedexception timeoutexception try instancetemplatesclient instancetemplatesclient instancetemplatesclient create globaloperationsclient globaloperationsclient globaloperationsclient create sourceinstanceparams sourceinstanceparams sourceinstanceparams newbuilder adddiskconfigs diskinstantiationconfig newbuilder device name must match the name of a disk attached to the instance you are basing your template on setdevicename disk 1 replace the original boot disk image used in your instance with a rocky linux image setinstantiatefrom instantiatefrom custom_image tostring setcustomimage string format projects s global images family s rocky linux cloud rocky linux 8 override the autodelete setting setautodelete true build build instancetemplate instancetemplate instancetemplate newbuilder setname templatename setsourceinstance instance setsourceinstanceparams sourceinstanceparams build insertinstancetemplaterequest insertinstancetemplaterequest insertinstancetemplaterequest newbuilder setproject projectid setinstancetemplateresource instancetemplate build operation operation instancetemplatesclient insertcallable futurecall insertinstancetemplaterequest get 3 timeunit minutes operation response globaloperationsclient wait projectid operation getname if response haserror system out println instance template creation failed response return system out printf instance template creation operation status s s templatename response getstatus node js todo developer uncomment and replace these variables before running the sample const projectid your_project_id const instance projects project zones zone instances instance const templatename your_template_name const compute require google cloud compute create a new instance template based on an existing instance this new template specifies a different boot disk async function createtemplatefrominstance const instancetemplatesclient new compute instancetemplatesclient const response await instancetemplatesclient insert project projectid instancetemplateresource name templatename sourceinstance instance sourceinstanceparams diskconfigs device name must match the name of a disk attached to the instance your template is based on devicename disk 1 replace the original boot disk image used in your instance with a rocky linux image instantiatefrom custom_image customimage projects rocky linux cloud global images family rocky linux 8 override the auto_delete setting autodelete true let operation response latestresponse const operationsclient new compute globaloperationsclient wait for the create operation to complete while operation status done operation await operationsclient wait operation operation name project projectid console log instance template created createtemplatefrominstance python from __future__ import annotations import sys from typing import any from google api_core extended_operation import extendedoperation from google cloud import compute_v1 def wait_for_extended_operation operation extendedoperation verbose_name str operation timeout int 300 any waits for the extended long running operation to complete if the operation is successful it will return its result if the operation ends with an error an exception will be raised if there were any warnings during the execution of the operation they will be printed to sys stderr args operation a long running operation you want to wait on verbose_name optional a more verbose name of the operation used only during error and warning reporting timeout how long in seconds to wait for operation to finish if none wait indefinitely returns whatever the operation result returns raises this method will raise the exception received from operation exception or runtimeerror if there is no exception set but there is an error_code set for the operation in case of an operation taking longer than timeout seconds to complete a concurrent futures timeouterror will be raised result operation result timeout timeout if operation error_code print f error during verbose_name code operation error_code operation error_message file sys stderr flush true print f operation id operation name file sys stderr flush true raise operation exception or runtimeerror operation error_message if operation warnings print f warnings during verbose_name n file sys stderr flush true for warning in operation warnings print f warning code warning message file sys stderr flush true return result def create_template_from_instance project_id str instance str template_name str compute_v1 instancetemplate create a new instance template based on an existing instance this new template specifies a different boot disk args project_id project id or project number of the cloud project you use instance the instance to base the new template on this value uses the following format projects project zones zone instances instance_name template_name name of the new template to create returns instancetemplate object that represents the new instance template disk compute_v1 diskinstantiationconfig device name must match the name of a disk attached to the instance you are basing your template on disk device_name disk 1 replace the original boot disk image used in your instance with a rocky linux image disk instantiate_from custom_image disk custom_image projects rocky linux cloud global images family rocky linux 8 override the auto_delete setting disk auto_delete true template compute_v1 instancetemplate template name template_name template source_instance instance template source_instance_params compute_v1 sourceinstanceparams template source_instance_params disk_configs disk template_client compute_v1 instancetemplatesclient operation template_client insert project project_id instance_template_resource template wait_for_extended_operation operation instance template creation return template_client get project project_id instance_template template_name rest to create a regional instance template use the regioninstancetemplates insert method or to create a global instance template use the instancetemplates insert method in your request you must specify the sourceinstance field to override how the source instance s disks are defined add one or more diskconfigs fields for example make the following call to create a global instance template from an existing instance post https compute googleapis com compute v1 projects project_id global instancetemplates name instance_template_name sourceinstance zones source_instance_zone instances source_instance sourceinstanceparams diskconfigs devicename source_disk instantiatefrom instantiate_options autodelete false replace the following project_id your project id instance_template_name the name for the new template source_instance_zone the zone of the source instance source_instance the name of the source instance to use as a model for this instance template source_disk the name of a source instance disk that you want to override within the template instantiate_options specifies whether to include the disk and which image to use valid values depend on the type of disk source image or source image family valid only for boot and other persistent read write disks custom image valid only for boot and other persistent read write disks if you want to retain applications and settings from the source vms in your instance template you can create a custom image and then specify it when you create the template if specified then provide the path or url for the custom image as shown in the following example alternatively you can specify an image family using the following format diskconfigs devicename data_disk_name instantiatefrom custom image customimage projects project_id global images family image_family_name attach read only valid only for read only disks blank valid only for non boot persistent disks and local ssds if specified then when the template is used to create a new instance the disk is created unformatted you must format and mount the disk in a startup script before you can use it in a scalable setup do not include valid only for non boot persistent disks and read only disks the following example creates a new instance template based on my source instance in the instance template the image for data disk a is replaced with projects cos cloud global images cos 89 16108 403 15 post https compute googleapis com compute v1 projects my_project global instancetemplates name my instance template sourceinstance zones us central1 a instances my source instance sourceinstanceparams diskconfigs devicename data disk a instantiatefrom custom image customimage projects cos cloud global images cos 89 16108 403 15 the following table shows how the options for overriding disks are defined in the template disk type options boot disk default use the same source image or image family that was used to create the boot disk in the source instance use the url of any image custom or public as described in the preceding example or specify an image family using the following format projects exampleproject global images family image_family_name other read write persistent disks default use the same source image source image family that was used to create the disk in the source instance note if the source instance s disk doesn t have a source image source image family property then it is included in the template as a blank disk use the url of any image custom or public as described in the preceding example or specify an image family using the foll...
Thumbnail images (randomly selected): * Images may be subject to copyright.GREEN status (no comments)
  • Google Cloud Documentatio...

Verified site has: 736 subpage(s). Do you want to verify them? Verify pages:

1-5 6-10 11-15 16-20 21-25 26-30 31-35 36-40 41-45 46-50
51-55 56-60 61-65 66-70 71-75 76-80 81-85 86-90 91-95 96-100
101-105 106-110 111-115 116-120 121-125 126-130 131-135 136-140 141-145 146-150
151-155 156-160 161-165 166-170 171-175 176-180 181-185 186-190 191-195 196-200
201-205 206-210 211-215 216-220 221-225 226-230 231-235 236-240 241-245 246-250
251-255 256-260 261-265 266-270 271-275 276-280 281-285 286-290 291-295 296-300
301-305 306-310 311-315 316-320 321-325 326-330 331-335 336-340 341-345 346-350
351-355 356-360 361-365 366-370 371-375 376-380 381-385 386-390 391-395 396-400
401-405 406-410 411-415 416-420 421-425 426-430 431-435 436-440 441-445 446-450
451-455 456-460 461-465 466-470 471-475 476-480 481-485 486-490 491-495 496-500
501-505 506-510 511-515 516-520 521-525 526-530 531-535 536-540 541-545 546-550
551-555 556-560 561-565 566-570 571-575 576-580 581-585 586-590 591-595 596-600
601-605 606-610 611-615 616-620 621-625 626-630 631-635 636-640 641-645 646-650
651-655 656-660 661-665 666-670 671-675 676-680 681-685 686-690 691-695 696-700
701-705 706-710 711-715 716-720 721-725 726-730 731-735 736-736


The site also has references to the 2 subdomain(s)

  console.cloud.google.com  Verify   cloud.google.com  Verify


The site also has 2 references to external domain(s).

 github.com  Verify  registry.terraform.io  Verify


Top 50 hastags from of all verified websites.

Supplementary Information (add-on for SEO geeks)*- See more on header.verify-www.com

Header

HTTP/1.1 301 Moved Permanently
location htt????/docs.cloud.google.com/compute/docs/instance-templates/create-instance-templates
x-cloud-trace-context 0354912316af8a2caf35cb016ed2df46
date Wed, 22 Jul 2026 23:26:16 GMT
content-type text/html
server Google Frontend
Content-Length 0
Connection close
HTTP/2 200
last-modified Fri, 17 Jul 2026 15:09:26 GMT
content-type text/html; charset=utf-8
vary Cookie
vary Accept-Encoding
content-security-policy base-uri self ; object-src none ; script-src strict-dynamic unsafe-inline https: http: nonce-7qEJOqiZU+kic3FpAHw0G+i3fhjMxe unsafe-eval ; frame-ancestors self htt????/developers.google.com/_d/analytics-iframe; report-uri htt????/csp.withgoogle.com/csp/devsite/v2
strict-transport-security max-age=63072000; includeSubdomains; preload
x-xss-protection 0
x-content-type-options nosniff
cache-control no-cache, must-revalidate
expires 0
pragma no-cache
content-encoding gzip
x-cloud-trace-context b1e0da11ba6eef86c77ce8b728a3a418
date Wed, 22 Jul 2026 23:26:18 GMT
server Google Frontend
content-length 94252
alt-svc h3= :443 ; ma=2592000,h3-29= :443 ; ma=2592000

Meta Tags

title="Create instance templates  |  Compute Engine  |  Google Cloud Documentation"
name="google-signin-client-id" content="721724668570-nbkv1cfusk7kk4eni4pjvepaus73b13t.apps.googleusercontent.com"
name="google-signin-scope" content="profile email htt????/www.googleapis.com/auth/developerprofiles htt????/www.googleapis.com/auth/developerprofiles.award htt????/www.googleapis.com/auth/devprofiles.full_control.firstparty"
property="og:site_name" content="Google Cloud Documentation"
property="og:type" content="website"
name="theme-color" content="#1a73e8"
charset="utf-8"
content="IE=Edge" http-equiv="X-UA-Compatible"
name="viewport" content="width=device-width, initial-scale=1"
property="og:title" content="Create instance templates  |  Compute Engine  |  Google Cloud Documentation"
property="og:url" content="htt????/docs.cloud.google.com/compute/docs/instance-templates/create-instance-templates"
property="og:image" content="htt????/docs.cloud.google.com/_static/cloud/images/social-icon-google-cloud-1200-630.png"
property="og:image:width" content="1200"
property="og:image:height" content="630"
property="og:locale" content="en"
name="twitter:card" content="summary_large_image"
charset="utf-8"

Load Info

page size94252
load time (s)1.853409
redirect count1
speed download50864
server IP 142.251.39.206
* all occurrences of the string "http://" have been changed to "htt???/"