Revision 4ee72287 lib/rapi/rlib2.py

b/lib/rapi/rlib2.py
812 812
      })
813 813

  
814 814

  
815
class R_2_instances_multi_alloc(baserlib.OpcodeResource):
816
  """/2/instances-multi-alloc resource.
817

  
818
  """
819
  POST_OPCODE = opcodes.OpInstanceMultiAlloc
820

  
821
  def GetPostOpInput(self):
822
    """Try to allocate multiple instances.
823

  
824
    @return: A dict with submitted jobs, allocatable instances and failed
825
             allocations
826

  
827
    """
828
    return (self.request_body, {
829
      "dry_run": self.dryRun(),
830
      })
831

  
832

  
815 833
class R_2_instances_name(baserlib.OpcodeResource):
816 834
  """/2/instances/[instance_name] resource.
817 835

  

Also available in: Unified diff