This reference documentation describes the xml-rpc methods exposed by OpenNebula. Each description consists of the method name and the input and output values.
All xml-rpc responses share a common structure.
Type | Data Type | Description |
OUT | Boolean | True or false whenever is successful or not. |
OUT | String | If an error occurs this is the error message. |
OUT | Int | Error code. |
The output will always consist of three values. The first and third ones are fixed, but the second one will contain the String error message only in case of failure. If the method is successful, the returned value may be of another Data Type.
The Error Code will contain one of the following values:
Value | Code | |
0x0000 | SUCCESS | Success response. |
0x0100 | AUTHENTICATION | User could not be authenticated. |
0x0200 | AUTHORIZATION | User is not authorized to perform the requested action. |
0x0400 | NO_EXISTS | The requested resource does not exist. |
0x0800 | ACTION | |
0x1000 | XML_RPC_API | |
0x2000 | INTERNAL | |
All methods expect a session string associated to the connected user as the first parameter. It has to be formed with the contents of the ONE_AUTH file, which will be <username>:<password>
with the default 'core' auth driver.
Each XML-RPC request has to be authenticated and authorized. See the Auth Subsystem documentation for more information.
The information strings returned by the one.*.info
methods are XML-formatted. You can download the XML Schemas (XSD) following this link. We encourage you to use the -x
option of the command line interface to collect sample outputs from your own infrastructure.
The methods that accept XML templates require the root element to be TEMPLATE. For instance, this template:
NAME = abc
MEMORY = 1024
ATT1 = value1
Can be also given to OpenNebula with the following XML:
<TEMPLATE>
<NAME>abc</NAME>
<MEMORY>1024</MEMORY>
<ATT1>value1</ATT1>
</TEMPLATE>
inlinetoc
Authorization Requests Reference
For each XML-RPC request, the session token is authenticated, and after that the Request Manager generates an authorization request that can include more than one operation. The following tables document these requests.
onevm
The deploy action requires the user issuing the command to have VM:ADMIN rights. This user will usually be the scheduler with the oneadmin credentials.
The scheduler deploys VMs to the Hosts over which the VM owner has MANAGE rights.
onetemplate
onehost
onehost sync is not performed by the core, it is done by the ruby command onehost.
onecluster
onegroup
onevnet
oneuser
onedatastore
oneimage
oneacl
Actions for Templates Management
one.template.allocate
Type | Data Type | Description |
IN | String | The session string. |
IN | String | A string containing the template contents. Syntax can be the usual “attribute=value” or XML. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The allocated resource ID / The error string. |
OUT | Int | Error code. |
one.template.delete
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.template.instantiate
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | String | Name for the new VM instance. If it is an empty string, OpenNebula will assign one automatically. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The new virtual machine ID / The error string. |
OUT | Int | Error code. |
one.template.update
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | String | The new template contents. Syntax can be the usual “attribute=value” or XML. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.template.chmod
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | Int | USER USE bit. If set to -1, it will not change. |
IN | Int | USER MANAGE bit. If set to -1, it will not change. |
IN | Int | USER ADMIN bit. If set to -1, it will not change. |
IN | Int | GROUP USE bit. If set to -1, it will not change. |
IN | Int | GROUP MANAGE bit. If set to -1, it will not change. |
IN | Int | GROUP ADMIN bit. If set to -1, it will not change. |
IN | Int | OTHER USE bit. If set to -1, it will not change. |
IN | Int | OTHER MANAGE bit. If set to -1, it will not change. |
IN | Int | OTHER ADMIN bit. If set to -1, it will not change. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.template.chown
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | Int | The User ID of the new owner. If set to -1, the owner is not changed. |
IN | Int | The Group ID of the new group. If set to -1, the group is not changed. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.template.info
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |
one.templatepool.info
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | Filter flag
- < = -3: Connected user's resources
- -2: All resources
- -1: Connected user's and his group's resources
- > = 0: UID User's Resources |
IN | Int | Range start ID. Can be -1. |
IN | Int | Range end ID. Can be -1. |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |
The range can be used to retrieve a subset of the pool, from the 'start' to the 'end' ID. To retrieve the complete pool, use (-1, -1)
; to retrieve all the pool from a specific ID to the last one, use (<id>, -1)
, and to retrieve the first elements up to an ID, use (0, <id>)
.
Actions for Virtual Machine Management
The VM Life Cycle is explained in this diagram. It contains all the LifeCycleManager states, and the transitions triggered by the onevm commands. It is intended to be consulted by developers.
The simplified diagram used in the Virtual Machine Instances documentation uses a smaller number of state names. These names are the ones used by onevm list, e.g. prolog, prolog_migrate and prolog_resume are all presented as “prol”. It is intended as a reference for end-users.
one.vm.allocate
Type | Data Type | Description |
IN | String | The session string. |
IN | String | A string containing the template for the vm. Syntax can be the usual “attribute=value” or XML. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The allocated resource ID / The error string. |
OUT | Int | Error code. |
one.vm.deploy
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | Int | The Host ID of the target host where the VM will be deployed. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The VM ID / The error string. |
OUT | Int | Error code. |
one.vm.action
Type | Data Type | Description |
IN | String | The session string. |
IN | String | the action name to be performed, see below. |
IN | Int | The object ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The VM ID / The error string. |
OUT | Int | Error code. |
The action String must be one of the following:
Action | Description |
shutdown | |
hold | |
release | |
stop | |
cancel | |
suspend | |
resume | |
restart | |
reboot | |
finalize | |
resubmit | |
one.vm.migrate
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | Int | the target host id (hid) where we want to migrate the vm. |
IN | Boolean | if true we are indicating that we want livemigration, otherwise false. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The VM ID / The error string. |
OUT | Int | Error code. |
one.vm.savedisk
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | Int | Disk ID of the disk we want to save. |
IN | String | Name for the new Image where the disk will be saved. |
IN | String | Type for the new Image. If it is an empty string, then the default one will be used. See the existing types in the Image template reference. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The new allocated Image ID / The error string. |
OUT | Int | Error code. |
one.vm.chmod
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | Int | USER USE bit. If set to -1, it will not change. |
IN | Int | USER MANAGE bit. If set to -1, it will not change. |
IN | Int | USER ADMIN bit. If set to -1, it will not change. |
IN | Int | GROUP USE bit. If set to -1, it will not change. |
IN | Int | GROUP MANAGE bit. If set to -1, it will not change. |
IN | Int | GROUP ADMIN bit. If set to -1, it will not change. |
IN | Int | OTHER USE bit. If set to -1, it will not change. |
IN | Int | OTHER MANAGE bit. If set to -1, it will not change. |
IN | Int | OTHER ADMIN bit. If set to -1, it will not change. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.vm.chown
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | Int | The User ID of the new owner. If set to -1, the owner is not changed. |
IN | Int | The Group ID of the new group. If set to -1, the group is not changed. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.vm.info
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |
one.vmpool.info
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | Filter flag
- < = -3: Connected user's resources
- -2: All resources
- -1: Connected user's and his group's resources
- > = 0: UID User's Resources |
IN | Int | Range start ID. Can be -1. |
IN | Int | Range end ID. Can be -1. |
IN | Int | VM state to filter by. |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |
The range can be used to retrieve a subset of the pool, from the 'start' to the 'end' ID. To retrieve the complete pool, use (-1, -1)
; to retrieve all the pool from a specific ID to the last one, use (<id>, -1)
, and to retrieve the first elements up to an ID, use (0, <id>)
.
The state filter can be one of the following:
Value | State |
-2 | Any state, including DONE |
-1 | Any state, except DONE |
0 | INIT |
1 | PENDING |
2 | HOLD |
3 | ACTIVE |
4 | STOPPED |
5 | SUSPENDED |
6 | DONE |
7 | FAILED |
Actions for Hosts Management
one.host.allocate
Type | Data Type | Description |
IN | String | The session string. |
IN | String | Hostname of the machine we want to add |
IN | String | The name of the information manager (im_mad_name), this values are taken from the oned.conf with the tag name IM_MAD (name) |
IN | String | The name of the virtual machine manager mad name (vmm_mad_name), this values are taken from the oned.conf with the tag name VM_MAD (name) |
IN | String | The name of the virtual network manager mad name (vnm_mad_name), see the Networking Subsystem documentation |
IN | Int | The cluster ID. If it is -1, this host won't be added to any cluster. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The allocated Host ID / The error string. |
OUT | Int | Error code. |
one.host.delete
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.host.enable
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The Host ID. |
IN | Boolean | Set it to true/false to enable or disable the target Host. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.host.update
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | String | The new template contents. Syntax can be the usual “attribute=value” or XML. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.host.info
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |
one.hostpool.info
Type | Data Type | Description |
IN | String | The session string. |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |
Actions for Cluster Management
one.cluster.allocate
Type | Data Type | Description |
IN | String | The session string. |
IN | String | Name for the new cluster. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The allocated cluster ID / The error string. |
OUT | Int | Error code. |
one.cluster.delete
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.cluster.addhost
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The cluster ID. |
IN | Int | The host ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.cluster.delhost
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The cluster ID. |
IN | Int | The host ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.cluster.adddatastore
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The cluster ID. |
IN | Int | The datastore ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.cluster.deldatastore
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The cluster ID. |
IN | Int | The datastore ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.cluster.addvnet
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The cluster ID. |
IN | Int | The vnet ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.cluster.delvnet
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The cluster ID. |
IN | Int | The vnet ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.cluster.info
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |
one.clusterpool.info
Type | Data Type | Description |
IN | String | The session string. |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |
Actions for Virtual Network Management
one.vn.allocate
Type | Data Type | Description |
IN | String | The session string. |
IN | String | A string containing the template of the virtual network. Syntax can be the usual “attribute=value” or XML. |
IN | Int | The cluster ID. If it is -1, this virtual network won't be added to any cluster. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The allocated resource ID / The error string. |
OUT | Int | Error code. |
one.vn.delete
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.vn.addleases
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | String | template of the lease to add. Syntax can be the usual “attribute=value” or XML, see below. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
Examples of valid templates:
LEASES=[IP=192.168.0.5]
LEASES=[IP=192.168.0.5, MAC=50:20:20:20:20:20]
<TEMPLATE>
<LEASES>
<IP>192.168.0.5</IP>
</LEASES>
</TEMPLATE>
<TEMPLATE>
<LEASES>
<IP>192.168.0.5</IP>
<MAC>MAC=50:20:20:20:20:20</MAC>
</LEASES>
</TEMPLATE>
one.vn.rmleases
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | String | template of the lease to remove. Syntax can be the usual “attribute=value” or XML, see one.vn.addleases. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.vn.hold
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | String | template of the lease to hold, e.g. “LEASES=[IP=192.168.0.5]”. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.vn.release
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | String | template of the lease to release, e.g. “LEASES=[IP=192.168.0.5]”. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.vn.update
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | String | The new template contents. Syntax can be the usual “attribute=value” or XML. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.vn.chmod
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | Int | USER USE bit. If set to -1, it will not change. |
IN | Int | USER MANAGE bit. If set to -1, it will not change. |
IN | Int | USER ADMIN bit. If set to -1, it will not change. |
IN | Int | GROUP USE bit. If set to -1, it will not change. |
IN | Int | GROUP MANAGE bit. If set to -1, it will not change. |
IN | Int | GROUP ADMIN bit. If set to -1, it will not change. |
IN | Int | OTHER USE bit. If set to -1, it will not change. |
IN | Int | OTHER MANAGE bit. If set to -1, it will not change. |
IN | Int | OTHER ADMIN bit. If set to -1, it will not change. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.vn.chown
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | Int | The User ID of the new owner. If set to -1, the owner is not changed. |
IN | Int | The Group ID of the new group. If set to -1, the group is not changed. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.vn.info
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |
one.vnpool.info
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | Filter flag
- < = -3: Connected user's resources
- -2: All resources
- -1: Connected user's and his group's resources
- > = 0: UID User's Resources |
IN | Int | Range start ID. Can be -1. |
IN | Int | Range end ID. Can be -1. |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |
The range can be used to retrieve a subset of the pool, from the 'start' to the 'end' ID. To retrieve the complete pool, use (-1, -1)
; to retrieve all the pool from a specific ID to the last one, use (<id>, -1)
, and to retrieve the first elements up to an ID, use (0, <id>)
.
Actions for Datastore Management
one.datastore.allocate
Type | Data Type | Description |
IN | String | The session string. |
IN | String | A string containing the template of the datastore. Syntax can be the usual “attribute=value” or XML. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The allocated resource ID / The error string. |
OUT | Int | Error code. |
one.datastore.delete
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.datastore.update
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | String | The new template contents. Syntax can be the usual “attribute=value” or XML. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.datastore.chmod
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | Int | USER USE bit. If set to -1, it will not change. |
IN | Int | USER MANAGE bit. If set to -1, it will not change. |
IN | Int | USER ADMIN bit. If set to -1, it will not change. |
IN | Int | GROUP USE bit. If set to -1, it will not change. |
IN | Int | GROUP MANAGE bit. If set to -1, it will not change. |
IN | Int | GROUP ADMIN bit. If set to -1, it will not change. |
IN | Int | OTHER USE bit. If set to -1, it will not change. |
IN | Int | OTHER MANAGE bit. If set to -1, it will not change. |
IN | Int | OTHER ADMIN bit. If set to -1, it will not change. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.datastore.chown
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | Int | The User ID of the new owner. If set to -1, the owner is not changed. |
IN | Int | The Group ID of the new group. If set to -1, the group is not changed. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.datastore.info
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |
one.datastorepool.info
Type | Data Type | Description |
IN | String | The session string. |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |
Actions for Image Management
one.image.allocate
Type | Data Type | Description |
IN | String | The session string. |
IN | String | A string containing the template of the image. Syntax can be the usual “attribute=value” or XML. |
IN | Int | The datastore ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The allocated resource ID / The error string. |
OUT | Int | Error code. |
one.image.delete
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.image.enable
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The Image ID. |
IN | Boolean | True for enabling, false for disabling. |
OUT | Boolean | true or false whenever is successful or not. |
OUT | Int/String | The Image ID / The error string. |
OUT | Int | Error code. |
one.image.persistent
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The Image ID. |
IN | Boolean | True for persistent, false for non-persisent. |
OUT | Boolean | true or false whenever is successful or not. |
OUT | Int/String | The Image ID / The error string. |
OUT | Int | Error code. |
one.image.chtype
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The Image ID. |
IN | String | New type for the Image. See the existing types in the Image template reference. |
OUT | Boolean | true or false whenever is successful or not. |
OUT | Int/String | The Image ID / The error string. |
OUT | Int | Error code. |
one.image.update
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | String | The new template contents. Syntax can be the usual “attribute=value” or XML. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.image.chmod
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | Int | USER USE bit. If set to -1, it will not change. |
IN | Int | USER MANAGE bit. If set to -1, it will not change. |
IN | Int | USER ADMIN bit. If set to -1, it will not change. |
IN | Int | GROUP USE bit. If set to -1, it will not change. |
IN | Int | GROUP MANAGE bit. If set to -1, it will not change. |
IN | Int | GROUP ADMIN bit. If set to -1, it will not change. |
IN | Int | OTHER USE bit. If set to -1, it will not change. |
IN | Int | OTHER MANAGE bit. If set to -1, it will not change. |
IN | Int | OTHER ADMIN bit. If set to -1, it will not change. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.image.chown
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | Int | The User ID of the new owner. If set to -1, the owner is not changed. |
IN | Int | The Group ID of the new group. If set to -1, the group is not changed. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.image.info
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |
one.imagepool.info
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | Filter flag
- < = -3: Connected user's resources
- -2: All resources
- -1: Connected user's and his group's resources
- > = 0: UID User's Resources |
IN | Int | Range start ID. Can be -1. |
IN | Int | Range end ID. Can be -1. |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |
The range can be used to retrieve a subset of the pool, from the 'start' to the 'end' ID. To retrieve the complete pool, use (-1, -1)
; to retrieve all the pool from a specific ID to the last one, use (<id>, -1)
, and to retrieve the first elements up to an ID, use (0, <id>)
.
Actions for User Management
one.user.allocate
Type | Data Type | Description |
IN | String | The session string. |
IN | String | username for the new user |
IN | String | password for the new user |
IN | String | authentication driver for the new user. If it is an empty string, then the default ('core') is used |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The allocated User ID / The error string. |
OUT | Int | Error code. |
one.user.delete
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.user.passwd
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | String | The new password |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The User ID / The error string. |
OUT | Int | Error code. |
one.user.update
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | String | The new template contents. Syntax can be the usual “attribute=value” or XML. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.user.chauth
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
IN | String | The new authentication driver. |
IN | String | The new password. If it is an empty string, the password is not changed. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The User ID / The error string. |
OUT | Int | Error code. |
one.user.chgrp
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The User ID. |
IN | Int | The Group ID of the new group. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The User ID / The error string. |
OUT | Int | Error code. |
one.user.info
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. If it is -1, then the connected user's own info info is returned |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |
one.userpool.info
Type | Data Type | Description |
IN | String | The session string. |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |
Actions for Group Management
one.group.allocate
Type | Data Type | Description |
IN | String | The session string. |
IN | String | Name for the new group. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The allocated Group ID / The error string. |
OUT | Int | Error code. |
one.group.delete
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The resource ID / The error string. |
OUT | Int | Error code. |
one.group.info
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | The object ID. If it is -1, then the connected user's group info info is returned |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |
one.grouppool.info
Type | Data Type | Description |
IN | String | The session string. |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |
Actions for ACL Rules Management
one.acl.addrule
Description: Adds a new
ACL rule.
Parameters
Type | Data Type | Description |
IN | String | The session string. |
IN | String | User component of the new rule. A string containing a hex number. |
IN | String | Resource component of the new rule. A string containing a hex number. |
IN | String | Rights component of the new rule. A string containing a hex number. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The allocated ACL rule ID / The error string. |
OUT | Int | Error code. |
To build the hex. numbers required to create a new rule we recommend you to read the ruby or java code.
one.acl.delrule
Description: Deletes an
ACL rule.
Parameters
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | ACL rule ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | Int/String | The ACL rule ID / The error string. |
OUT | Int | Error code. |
one.acl.info
Description: Returns the complete
ACL rule set.
Parameters
Type | Data Type | Description |
IN | String | The session string. |
IN | Int | ACL rule ID. |
OUT | Boolean | true or false whenever is successful or not |
OUT | String | The information string / The error string. |
OUT | Int | Error code. |