Sinn XMLRPC API 1.0.0
Methods Index
I
S
M
- machine.attributes
- machine.boot
- machine.cputype.list
- machine.create
- machine.delete
- machine.interface.attach
- machine.interface.detach
- machine.interface.list
- machine.list
- machine.migrate
- machine.shutdown
- machine.storage.attach
- machine.storage.bustype.list
- machine.storage.detach
- machine.storage.list
- machine.update
- machine.vnc.keymap.list
Methods List
interface.attributes
- onlyMutables bool (optionnal) filters unmutable attributes.
Description
List attributes of an interface.
Possible attributes are :
- label : unmutable, string
- macAddr : unmutable, string
- model : mutable, string, default=virtio
- packetIn : unmutable, integer
- packetOut : unmutable, integer
- byteIn : unmutable, integer
- byteOut : unmutable, integer
interface.create
- sitegroup string associated sitegroup.
- label string label of the new interface.
- attributes struct (optionnal) attributes.
Description
Create an interface.
An interface is a virtual network card.
interface.delete
- sitegroup string associated sitegroup.
- label string label of the interface.
Description
Delete an interface.
interface.ipaddress.attach
- sitegroup string associated sitegroup.
- label string label of the interface.
- ipaddress string label of ipaddress to attach.
Description
Attach an ipaddress to an interface.
interface.ipaddress.detach
- sitegroup string associated sitegroup.
- label string label of the interface.
- ipaddress string label of ipaddress to detach.
Description
Detach an ipaddress from an interface.
interface.ipaddress.list
- sitegroup string associated sitegroup.
- label string label of the interface.
- ipaddress none|string|array (optionnal) label(s) of the ipaddress(es).
Description
List interface's attached ipaddress(es) : detailed if label(s), general if not.
interface.list
- sitegroup string associated sitegroup
- label none|string|array (optionnal) label(s) of the interface(s).
Description
List interface(s).
If no label, list all sitegroup interfaces labels.
Else, list interfaces indexed by label in a struct compound of :
- siteGroup : string name of asociated siteGroup.
- machine : struct compound of label and current status of attached machine(s).
- vlan : struct compound of label and tag of attached vlan.
- ip : array of attached ip label(s)
interface.types.list
- sitegroup string to have the list related to.
Description
List network interface types (eg: virtio, ne2000, ...).
interface.update
- sitegroup string associated sitegroup.
- label string label of the interface.
- attributes struct (optionnal) attributes to update.
Description
Update mutable attributes of an interface.
ipaddress.attributes
- onlyMutables bool (optionnal) filters unmutable attributes.
Description
List of attributes of a ipaddress.
Possible attributes are :
- label : unmutable, string
- addr : unmutable string, IP address
- reverse : mutable, string, default=None
ipaddress.create
- sitegroup string associated sitegroup.
- label string label of the new ipaddress.
- attributes struct (optionnal) attributes.
Description
Create an ipaddress.
Note: ipaddress is dynamic, so you have to specify kind of IP Family you want to obtain in attributes : familiy=ipv4 or family=ipv6.
ipaddress.delete
- sitegroup string associated sitegroup.
- label string label of ipaddress.
Description
Destroy an ipaddress
ipaddress.list
- sitegroup string associated sitegroup.
- label string (optionnal) label of ipaddress.
Description
List network ipaddresses.
machine.attributes
- onlyMutables boolean (optionnal) filters unmutable attributes.
Description
List attributes of a machine.
Possible attributes are :
- label : unmutable, string
- vcpu : mutable, integer, default=1
- cpu : mutable, integer, default=x86-64bit
- memory : mutable, string, default=1024M
machine.boot
- sitegroup string associated sitegroup.
- label string label of the machine.
Description
Boot a machine.
The machine can boot only if it has :
- An interface.
- At least a bootable storage.
- All of its storages are ready.
machine.cputype.list
- sitegroup string associated sitegroup.
Description
List cpu types.
machine.create
- sitegroup string associated sitegroup.
- label string label of the new machine.
- attributes struct (optionnal) attributes.
Description
Create a machine.
The machine is a GNU/Linux kvm virtual machine instance.
machine.delete
- sitegroup string associated sitegroup.
- label string label of the machine.
Description
Delete a machine.
Attached resources (interface, storage, ...) must be detached first.
machine.interface.attach
- sitegroup string associated sitegroup.
- label string label of the machine.
- interface string label of interface to attach.
Description
Attach an interface to a machine.
machine.interface.detach
- sitegroup string associated sitegroup.
- label string label of the machine.
- interface string label of interface to detach.
Description
Detach an interface from a machine.
machine.interface.list
- sitegroup string associated sitegroup.
- label string label of the machine.
- interface none|string|array (optionnal) label(s) of the interface(s).
Description
List machine's attached interface(s).
Detailed if label(s), general if not.
machine.list
- sitegroup string associated sitegroup.
- label none|string|array (optionnal) label(s) of the machine(s).
Description
List machine(s).
Detailed if label(s), general if not.
machine.migrate
- sitegroup string associated sitegroup.
- label string machine's label.
- hostnode string machine destination node label.
Description
Migrate a machine.
The machine can only migrate to another node than the one it runs.
machine.shutdown
- sitegroup string associated sitegroup.
- label string label of the machine.
Description
Shutdown a machine.
machine.storage.attach
- sitegroup string associated sitegroup.
- label string label of the machine.
- storage string label of storage to attach.
- attributes none|struct (optionnal) array attributes.
Description
Attach a storage volume to a virual machine.
Possible attributes are :
- bus (default : virtio)
- media (default : disk)
- readOnly (default : False)
- bootOrder (default : 1)
- bootable (default: False)
machine.storage.bustype.list
- sitegroup string label of associated sitegroup.
Description
List storage bus types.
machine.storage.detach
- sitegroup string associated sitegroup.
- label string label of the machine.
- storage string label of storage to detach.
Description
Detach a storage from a machine.
machine.storage.list
- sitegroup string associated sitegroup.
- label string label of the machine.
- storage none|string|array (optionnal) label(s) of the storage(s).
Description
List machine's attached storage(s)
Detailed if label(s), general if not.
machine.update
- sitegroup string associated sitegroup.
- label string label of the machine.
- attributes struct (optionnal) attributes.
Description
Update mutable attributes of a machine.
machine.vnc.keymap.list
- sitegroup string associated sitegroup.
Description
List vnc keymaps.
sitegroup.list
- label none|string|array (optionnal) sitegroup label
Description
List sitegroups.
storage.attributes
- onlyMutables bool (optionnal) filters unmutable attributes.
Description
List of attributes of a storage.
Possible attributes are :
- label : unmutable
- size : unmutable, string, default=1G
- public : mutable, bool, default=False
storage.clone
- sitegroup string associated sitegroup.
- label string label of the storage.
- from_label string label of the storage to clone.
Description
Composite call of storage_cloneconfig and storage_clonedata
storage.clone_config
- sitegroup string associated sitegroup.
- label string label of the storage.
- from_label string label of the storage to clone.
Description
Create from an existant storage a new empty one with same
size/sitegroup.
storage.clone_data
- sitegroup string associated sitegroup.
- label string label of the storage.
- from_label string label of the storage to clone.
Description
Clone data of a storage to another storage.
storage.create
- sitegroup string associated sitegroup.
- label string label of the new storage.
- attributes attributes struct.
Description
Create a storage volume.
storage.delete
- sitegroup string associated sitegroup.
- label string label of the storage.
Description
Delete a storage, must not be attached to any machine.
storage.list
- sitegroup string associated sitegroup.
- label (optionnal) string|array label(s) of the storage(s).
Description
List storage(s) : detailed if label(s), general if not.
storage.update
- sitegroup string associated sitegroup.
- label string label of the storage.
- attributes struct (optionnal) attributes.
Description
Update mutables attributes of a storage.
system.listMethods
Description
Return a list of the method names implemented by this server.
system.methodHelp
Description
Return a documentation string describing the use of the given method.
system.methodSignature
Description
Return a list of type signatures.
Each type signature is a list of the form [rtype, type1, type2, ...]
where rtype is the return type and typeN is the type of the Nth
argument. If no signature information is available, the empty
string is returned.
vlan.attributes
- onlyMutables bool (optionnal) filters unmutable attributes.
Description
List attributes of a vlan.
Possible attributes are :
- label : unmutable, string
- tag : unmutable, integer, default=1
vlan.create
- sitegroup string associated sitegroup label.
- label string vlan label.
Description
Create a tagged vlan.
vlan.delete
- sitegroup string associated sitegroup label.
- label string vlan label.
Description
Destroy a vlan.
vlan.interface.attach
- sitegroup string associated sitegroup label.
- label string vlan label.
- interface string interface label.
Description
Attach an interface to a vlan.
vlan.interface.detach
- sitegroup string associated sitegroup label.
- label string vlan label.
- interface string interface label.
Description
Restore interface attachment to default vlan.
vlan.interface.list
- sitegroup string associated sitegroup.
- label string label of the vlan.
- interface none|string|array label(s) of the interface(s).
Description
List vlan's attached interface(s)
Detailed if interface(s) label(s), general if not.
vlan.list
- sitegroup string associated sitegroup label.
- label none|string|array vlan label.
Description
List virtual networks.
vlan.update
- sitegroup string associated sitegroup.
- label string label of the vlan.
- attributes struct (optionnal) attributes.
Description
Update mutable attributes of a vlan.