Package ganeti :: Package rapi :: Module rlib2 :: Class R_2_instances
[hide private]
[frames] | no frames]

Class R_2_instances

source code


/2/instances resource.

Instance Methods [hide private]
 
GET(self)
Returns a list of all available instances.
source code
opcodes.OpCreateInstance
_ParseVersion0CreateRequest(self)
Parses an instance creation request version 0.
source code
 
POST(self)
Create an instance.
source code

Inherited from baserlib.R_Generic: __init__, dryRun, getBodyParameter, useBulk, useForce, useLocking

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from baserlib.R_Generic: DELETE_ACCESS, GET_ACCESS, POST_ACCESS, PUT_ACCESS, request_body

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_ParseVersion0CreateRequest(self)

source code 

Parses an instance creation request version 0.

Request data version 0 is deprecated and should not be used anymore.

Returns: opcodes.OpCreateInstance
Instance creation opcode

POST(self)

source code 

Create an instance.

Returns:
a job id