Revision 3b7158ef lib/rapi/client.py

b/lib/rapi/client.py
718 718
                             ("/%s/instances/%s" %
719 719
                              (GANETI_RAPI_VERSION, instance)), query, None)
720 720

  
721
  def ModifyInstance(self, instance, **kwargs):
722
    """Modifies an instance.
723

  
724
    More details for parameters can be found in the RAPI documentation.
725

  
726
    @type instance: string
727
    @param instance: Instance name
728
    @rtype: int
729
    @return: job id
730

  
731
    """
732
    body = kwargs
733

  
734
    return self._SendRequest(HTTP_PUT,
735
                             ("/%s/instances/%s/modify" %
736
                              (GANETI_RAPI_VERSION, instance)), None, body)
737

  
721 738
  def GetInstanceTags(self, instance):
722 739
    """Gets tags for an instance.
723 740

  

Also available in: Unified diff