Various updates.

This commit is contained in:
Julien Fontanet 2013-07-16 15:36:35 +02:00
parent c650a92a1d
commit 9b2c56815b

View File

@ -514,3 +514,37 @@ Api.fn.xo = {
};
},
};
Api.fn.host = {
'getAll': function () {
return this.xo.hosts.get();
},
};
Api.fn.network = {
'getAll': function () {
return this.xo.networks.get();
},
};
Api.fn.storage = {
'getAll': function () {
return this.xo.srs.get();
},
};
Api.fn.template = {
'getAll': function () {
return this.xo.vms.get({
'is_template': true,
});
},
};
Api.fn.vm = {
'getAll': function () {
return this.xo.vms.get({
'is_template': true,
});
},
};