Revision 21f04e5e

b/lib/rapi/baserlib.py
87 87
  return list(tags)
88 88

  
89 89

  
90
def _Tags_POST(kind, tags, name=""):
90
def _Tags_PUT(kind, tags, name=""):
91 91
  """Helper function to set tags.
92 92

  
93 93
  """
b/lib/rapi/rlib1.py
285 285

  
286 286
    return job_id
287 287

  
288
  def POST(self):
288
  def PUT(self):
289 289
    """Modify an instance.
290 290

  
291 291
    """
b/lib/rapi/rlib2.py
204 204
      return baserlib.BuildUriList(instanceslist, "/2/instances/%s",
205 205
                                   uri_fields=("id", "uri"))
206 206

  
207
  def PUT(self):
207
  def POST(self):
208 208
    """Create an instance.
209 209

  
210 210
    Returns:
......
252 252

  
253 253
  DOC_URI = "/2/instances/[instance_name]/reboot"
254 254

  
255
  def GET(self):
255
  def POST(self):
256 256
    """Reboot an instance.
257 257

  
258 258
    The URI takes type=[hard|soft|full] and
......
283 283

  
284 284
  DOC_URI = "/2/instances/[instance_name]/startup"
285 285

  
286
  def GET(self):
286
  def PUT(self):
287 287
    """Startup an instance.
288 288

  
289 289
    The URI takes force=[False|True] parameter to start the instance if even if
......
309 309

  
310 310
  DOC_URI = "/2/instances/[instance_name]/shutdown"
311 311

  
312
  def GET(self):
312
  def PUT(self):
313 313
    """Shutdown an instance.
314 314

  
315 315
    """
......
337 337
    """
338 338
    return baserlib._Tags_GET(constants.TAG_INSTANCE, name=self.items[0])
339 339

  
340
  def POST(self):
340
  def PUT(self):
341 341
    """Add a set of tags to the instance.
342 342

  
343
    The request as a list of strings should be POST to this URI. And you'll have
343
    The request as a list of strings should be PUT to this URI. And you'll have
344 344
    back a job id.
345 345

  
346 346
    """
347
    return baserlib._Tags_POST(constants.TAG_INSTANCE,
347
    return baserlib._Tags_PUT(constants.TAG_INSTANCE,
348 348
                               self.post_data, name=self.items[0])
349 349

  
350 350
  def DELETE(self):

Also available in: Unified diff