Send feedback
  
   
 
  
    
      Method: projects.locations.instances.patch 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
     
     
    
      
      
        instances.patch updates an Instance.
       
      
        
          HTTP request 
          PATCH https://notebooks.googleapis.com/v2/{instance.name}
         
        
          Path parameters 
          
            
               
               
             
            
              
                Parameters 
               
             
            
              
                instance.name 
                
                  string
                  Output only. Identifier. The name of this notebook instance. Format: projects/{projectId}/locations/{location}/instances/{instanceId}
                 
               
             
          
         
        
          Query parameters 
          
            
               
               
             
            
              
                Parameters 
               
             
            
              
                updateMask 
                
                  string (FieldMask  format)
                  Required. Mask used to update an instance. Updatable fields:
                  
                    labels 
                    gceSetup.min_cpu_platform 
                    gceSetup.metadata 
                    gceSetup.machine_type 
                    gceSetup.accelerator_configs 
                    gceSetup.accelerator_configs.type 
                    gceSetup.accelerator_configs.core_count 
                    gceSetup.gpu_driver_config 
                    gceSetup.gpu_driver_config.enable_gpu_driver 
                    gceSetup.gpu_driver_config.custom_gpu_driver_path 
                    gceSetup.shielded_instance_config 
                    gceSetup.shielded_instance_config.enable_secure_boot 
                    gceSetup.shielded_instance_config.enable_vtpm 
                    gceSetup.shielded_instance_config.enable_integrity_monitoring 
                    gceSetup.reservation_affinity 
                    gceSetup.reservation_affinity.consume_reservation_type 
                    gceSetup.reservation_affinity.key 
                    gceSetup.reservation_affinity.values 
                    gceSetup.tags 
                    gceSetup.container_image 
                    gceSetup.container_image.repository 
                    gceSetup.container_image.tag 
                    gceSetup.disable_public_ip 
                    disableProxyAccess 
                   This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".
                 
               
              
                requestId 
                
                  string
                  Optional. Idempotent request UUID.
                 
               
             
          
         
        
          Request body 
          The request body contains an instance of Instance .
         
        
          Response body 
          If successful, the response body contains an instance of Operation .
         
        
          Authorization scopes 
          Requires the following OAuth scope:
          
            https://www.googleapis.com/auth/cloud-platform 
           For more information, see the Authentication Overview .
         
       
      
      
     
  
  
  
     
  
  
 
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-08-22 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-22 UTC."],[],[]]