Zinn XMLRPC API 1.0.0
Methods Index
C
I
- image.accounting
- image.attributes
- image.create
- image.delete
- image.list
- image.update
- interface.accounting
- interface.attributes
- interface.create
- interface.delete
- interface.ipaddress.attach
- interface.ipaddress.detach
- interface.ipaddress.list
- interface.list
- interface.types.list
- interface.update
- ipaddress.accounting
- ipaddress.attributes
- ipaddress.create
- ipaddress.delete
- ipaddress.list
- ipaddress.update
M
- machine.accounting
- 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
S
R
Methods List
client.attributes
- onlyMutables bool (optionnal) filters (un)mutable attributes. default=False.
Description
List of attributes of a client.
possible attributes are :
- label : unmutable, string the client label.
- address : mutable, string the client postal address.
- country : mutable, string the client country name.
client.create
- label string wanted label for the client (client name).
- attributes array (optionnal) of attributes.
Description
Create a Client.
A Client is a geographical container entity (eg: a company, a physical person, ...).
A Client handle one/many users via Client's Role(s).
By default when a User create a Client, he's attached to the client
via the default 'owner' Role and have all permissions granted over the Client.
client.delete
- label string the client label.
Description
Destroy a client.
The client must be empty (no vsite(s) and no other user(s)) prior to allow deletion.
client.invitation.acknowledge
- key string the invitation key.
Description
Acknowlegde an invitation with a key.
Return the label of the client.
client.invitation.create
- label string label of the client.
Description
Generate an invitation key for a given client.
Invitation key principle is :
1. One User U1 attached to a Client C create an invitation Key for this
Client.
2. U1 sends this generated Key to a User U2 (eg via email).
3. U2 aknowledge the invitation whith the Key.
4. Client C users can now see User U2. U2 has no rights at this time so
U1 or another Client C user whith right permissions can give some
credentials to U2.
Returned array contains a struct compound of :
- key : a md5 style string.
- expiration : expiration date of the key.
client.invitation.list
- label string label of the client.
Description
List all invitation keys for a given client.
Returned array contains a struct compound of :
- key : a md5 style string.
- expiration : expiration date of the key.
client.list
- label string (optionnal) the client label.
Description
List clients.
If no label passed or empty : return the names of a user's clients.
Else, return a detailed list of the user's client :
- vsites : struct indexed by vsite label (included Vsite attribute)
- roles : struct indexed by role label (included public attribute)
- users : array of client's users labels
client.update
- label string label of associated Client.
- attributes struct (optionnal) attributes.
Description
Update mutables attributes of a client.
image.attributes
- onlyMutables bool (optionnal) filters unmutable attributes.
Description
List of attributes of a image.
Possible attributes are :
- label : unmutable
- size : unmutable, string, default=1G
image.create
- vsite string associated vsite.
- label string label of the new storage.
- attributes attributes struct.
Description
Create an image.
image.delete
- vsite string associated vsite.
- label string label of the image.
Description
Delete an image, must not be attached to any machine.
image.list
- vsite string associated vsite.
- label (optionnal) string|array label(s) of the image(s).
Description
List image(s) : detailed if label(s), general if not.
image.update
- vsite string associated vsite.
- label string label of the image.
- attributes struct (optionnal) attributes.
Description
Update mutables attributes of a image.
interface.accounting
- vsite string associated vsite
- label string label of the interface.
Description
Get Accounting list for an interface.
list interfaces accounting period :
- start : string of the starting period
- stop : string of the stopping period
- byteIn : BigInt number of bytes In
- byteOut : BigInt number of bytes Out
- packetIn : BigInt number of packets In
- packetOut : BigInt number of packets Out
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
interface.create
- vsite string associated vsite.
- label string label of the new interface.
- attributes struct (optionnal) attributes.
Description
Create an interface.
An interface is a virtual network card.
interface.delete
- vsite string associated vsite.
- label string label of the interface.
Description
Delete an interface.
interface.ipaddress.attach
- vsite string associated vsite.
- label string label of the interface.
- ipaddress string label of ipaddress to attach.
Description
Attach an ipaddress to an interface.
interface.ipaddress.detach
- vsite string associated vsite.
- label string label of the interface.
- ipaddress string label of ipaddress to detach.
Description
Detach an ipaddress from an interface.
interface.ipaddress.list
- vsite string associated vsite.
- 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
- vsite string associated vsite
- label none|string|array (optionnal) label(s) of the interface(s).
Description
List interface(s).
If no label, list all vsite interfaces labels.
Else, list interfaces indexed by label in a struct compound of :
- Vsite : string name of asociated Vsite.
- 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
- vsite string to have the list related to.
Description
List network interface types (eg: virtio, ne2000, ...).
interface.update
- vsite string associated vsite.
- 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
- vsite string associated vsite.
- 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
- vsite string associated vsite.
- label string label of ipaddress.
Description
Destroy an ipaddress
ipaddress.list
- vsite string associated vsite.
- label string (optionnal) label of ipaddress.
Description
List network ipaddresses.
ipaddress.update
- vsite string associated vsite.
- label string label of the ipaddress.
- attributes struct attributes.
Description
Update mutable attributes of an ipaddress.
machine.accounting
- vsite string associated vsite
- label string label of the machine.
Description
Get Accounting list for a machine.
list machine accounting period :
- start : string of the starting period
- stop : string of the stopping period
- vcpu : integer number of virtual cpu
- cpu : string type of cpu
- memory : integer memory in bytes
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
- image : mutable, string, default=None
machine.boot
- vsite string associated vsite.
- 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
- vsite string associated vsite.
Description
List cpu types.
machine.create
- vsite string associated vsite.
- 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
- vsite string associated vsite.
- label string label of the machine.
Description
Delete a machine.
Attached resources (interface, storage, ...) must be detached first.
machine.interface.attach
- vsite string associated vsite.
- label string label of the machine.
- interface string label of interface to attach.
Description
Attach an interface to a machine.
machine.interface.detach
- vsite string associated vsite.
- label string label of the machine.
- interface string label of interface to detach.
Description
Detach an interface from a machine.
machine.interface.list
- vsite string associated vsite.
- 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
- vsite string associated vsite.
- label none|string|array (optionnal) label(s) of the machine(s).
Description
List machine(s).
Detailed if label(s), general if not.
machine.migrate
- vsite string associated vsite.
- 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
- vsite string associated vsite.
- label string label of the machine.
Description
Shutdown a machine.
machine.storage.attach
- vsite string associated vsite.
- 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
- vsite string label of associated vsite.
Description
List storage bus types.
machine.storage.detach
- vsite string associated vsite.
- label string label of the machine.
- storage string label of storage to detach.
Description
Detach a storage from a machine.
machine.storage.list
- vsite string associated vsite.
- 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
- vsite string associated vsite.
- label string label of the machine.
- attributes struct (optionnal) attributes.
Description
Update mutable attributes of a machine.
machine.vnc.keymap.list
- vsite string associated vsite.
Description
List vnc keymaps.
role.attributes
- onlyMutables bool (optionnal) filters unmutable attributes.
Description
List of attributes of a role.
possible attributes are :
- label : mutable, string
- public : mutable, bool
role.create
- client string associated client label.
- label string role label.
- attributes strcut (optionnal) attributes.
Description
Create a role.
role.delete
- client string associated client label.
- label string role label.
Description
Destroy a role.
role.list
- client string associated client label.
- label none|string|array role label.
Description
List roles.
role.permission.attach
- client string associated client.
- label string label of the role.
- vsite string label of the vsite.
- family string family of the service.
- permission string permission related to service family.
Description
Attach a user to a role.
role.permission.detach
- client string associated client.
- label string label of the role.
- vsite string label of the vsite.
- family string family of the service.
- permission string permission related to service family.
Description
Detach a user from a role.
role.permission.list
- client string associated client.
- label string label of the role.
- vsite string label of the vsite.
Description
List role's attached permission(s)
role.update
- client string associated client label.
- label string role label.
- attributes struct (optionnal) attributes.
Description
Update role attributes.
role.user.attach
- client string associated client label.
- label string role label.
- user string user label.
Description
Attach a user to a role.
role.user.attributes
- onlyMutables bool (optionnal) filters unmutable attributes.
Description
List of attributes of a userrole relation.
possible attributes are :
- label : unmutable, string
- public : mutable, bool, default=False
role.user.detach
- client string associated client label.
- label string role label.
- user string user label.
Description
Detach a user from a role.
role.user.list
- client string associated client label.
- label string label of the role.
- user none|string|label (optionnal) label(s) of user(s).
Description
List role's attached user(s) : detailed if label(s), general if not.
role.user.update
- client string associated client label.
- label string role label.
- attributes struct (optionnal) attributes.
Description
Update userrole relation attributes.
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
storage.clone
- vsite string associated vsite.
- 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
- vsite string associated vsite.
- 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/vsite.
storage.clone_data
- vsite string associated vsite.
- 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
- vsite string associated vsite.
- label string label of the new storage.
- attributes attributes struct.
Description
Create a storage volume.
storage.delete
- vsite string associated vsite.
- label string label of the storage.
Description
Delete a storage, must not be attached to any machine.
storage.list
- vsite string associated vsite.
- label (optionnal) string|array label(s) of the storage(s).
Description
List storage(s) : detailed if label(s), general if not.
storage.update
- vsite string associated vsite.
- 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.
user.list
- label none|string|array (optionnal) user label
Description
List user(s).
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
- vsite string associated vsite label.
- label string vlan label.
- attributes struct (optionnal) attributes.
Description
Create a tagged vlan.
vlan.delete
- vsite string associated vsite label.
- label string vlan label.
Description
Destroy a vlan.
vlan.get_next_tag
- vsite string associated vsite label.
Description
Get the next available tag.
vlan.interface.attach
- vsite string associated vsite label.
- label string vlan label.
- interface string interface label.
Description
Attach an interface to a vlan.
vlan.interface.detach
- vsite string associated vsite label.
- label string vlan label.
- interface string interface label.
Description
Restore interface attachment to default vlan.
vlan.interface.list
- vsite string associated vsite.
- 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.is_tag_free
- tag int tag.
Description
Check if a tag id is free to use.
vlan.list
- vsite string associated vsite label.
- label none|string|array vlan label.
Description
List virtual networks.
vlan.update
- vsite string associated vsite.
- label string label of the vlan.
- attributes struct (optionnal) attributes.
Description
Update mutable attributes of a vlan.
vsite.attributes
- onlyMutables boolean (optionnal) filters unmutable attributes.
Description
List of attributes of a vsite.
possible attributes are :
- label : unmutable, string name of the vsite
vsite.create
- label string label of the vsite.
- attributes struct (optionnal) attributes.
Description
Create a vsite.
vsite.delete
- label string vsite label.
Description
Destroy a vsite.
vsite.list
- label none|string|array (optionnal) vsite label.
Description
List vsite(s).