Send feedback
  
   
 
  
    
      REST Resource: projects.regions.clusters.nodeGroups 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
     
     
    
      
      
        Resource: NodeGroup 
        
          Dataproc Node Group. The Dataproc NodeGroup resource is not related to the Dataproc NodeGroupAffinity  resource. 
         
        
          
            
              
                JSON representation 
               
             
            
              
                
{ 
  "name" :  string , 
  "roles" :  [ 
    enum (Role ) 
  ] , 
  "nodeGroupConfig" :  { 
    object (InstanceGroupConfig ) 
  } , 
  "labels" :  { 
    string :  string , 
    ... 
  } 
}  
               
             
          
         
        
          
            
               
               
             
            
              
                Fields 
               
             
            
              
                name 
                
                  string
                  The Node group resource name .
                 
               
              
                roles[] 
                
                  enum (Role )
                  Required. Node group roles.
                 
               
              
                nodeGroupConfig 
                
                  object (InstanceGroupConfig )
                  Optional. The node group instance group configuration.
                 
               
              
                labels 
                
                  map (key: string, value: string)
                  Optional. Node group labels.
                  
                    Label keys  must consist of from 1 to 63 characters and conform to  RFC 1035 . 
                    Label values  can be empty. If specified, they must consist of from  1 to 63 characters and conform to RFC 1035 . 
                    The node group must have no more than 32 labels. 
                   An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
                 
               
             
          
         
        
          Role 
          
          
            
              
                 
                 
               
              
                
                  Enums 
                 
               
              
                
                  ROLE_UNSPECIFIED 
                  Required unspecified role. 
                 
                
                  DRIVER 
                  Job drivers run on the node pool. 
                 
               
            
           
         
       
      
        
          
             
             
           
          
            
              Methods  
             
           
          
            
              
                 
              
                Gets the resource representation for a node group in a cluster. 
             
            
              
                 
              
                Resizes a node group in a cluster. 
             
           
        
       
     
  
  
  
     
  
  
 
  
    
    
      
       
         
  
  
    
    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-06-20 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-06-20 UTC."],[],[]]