Revision 591e5103 lib/rapi/client.py

b/lib/rapi/client.py
552 552
    else:
553 553
      return [i["id"] for i in instances]
554 554

  
555
  def GetInstanceInfo(self, instance):
555
  def GetInstance(self, instance):
556 556
    """Gets information about an instance.
557 557

  
558 558
    @type instance: str
......
566 566
                             ("/%s/instances/%s" %
567 567
                              (GANETI_RAPI_VERSION, instance)), None, None)
568 568

  
569
  def GetInstanceInfo(self, instance, static=None):
570
    """Gets information about an instance.
571

  
572
    @type instance: string
573
    @param instance: Instance name
574
    @rtype: string
575
    @return: Job ID
576

  
577
    """
578
    if static is not None:
579
      query = [("static", static)]
580
    else:
581
      query = None
582

  
583
    return self._SendRequest(HTTP_GET,
584
                             ("/%s/instances/%s/info" %
585
                              (GANETI_RAPI_VERSION, instance)), query, None)
586

  
569 587
  def CreateInstance(self, mode, name, disk_template, disks, nics,
570 588
                     **kwargs):
571 589
    """Creates a new instance.
......
902 920
    else:
903 921
      return [n["id"] for n in nodes]
904 922

  
905
  def GetNodeInfo(self, node):
923
  def GetNode(self, node):
906 924
    """Gets information about a node.
907 925

  
908 926
    @type node: str

Also available in: Unified diff