Перейти к основному содержимому

Описание XML-RPC API

REST API определяет набор функций, к которым разработчики могут совершать запросы и получать ответы. Взаимодействие происходит по протоколу HTTP. Преимуществом такого подхода является широкое распространение протокола HTTP, поэтому REST API можно использовать практически из любого языка программирования.

Для запросов с веб-клиентов - клиентской части социального приложения или от сайта существуют JS API и Flash-библиотека, которые более удобны и просты в использовании.

Все вызовы методов API - это GET или POST HTTP-запросы к URL с некоторым набором параметров. Кодировка результата - UTF-8.

Данные запроса могут передаваться в виде query-строки (после знака «?») при использовании метода GET, либо в теле POST-запроса. В случае GET-запроса, параметры должны быть закодированы с помощью URL encoding.

На данный момент, API не делает различий между GET- и POST -запросами. Тем не менее, существует ограничение на длину URL запроса - 2048 символов.

В каждом запросе должен присутствовать набор обязательных параметров. Также для каждой функции в ее документации определены дополнительные параметры, нужные только для этой функции. Текстовые значения параметров должны быть переданы в кодировке UTF-8. Одинаковые для всех функций параметры перечислены в таблице ниже.

Параметры функций

ИмяТипОписание
methodstringНазвание вызываемого метода, например, users.getinfo; обязательный параметр
app_idintИдентификатор приложения; обязательный параметр
sigstringПодпись запроса; обязательный параметр
session_keystringСессия текущего пользователя
uiduint64Идентификатор пользователя, для которого вызывается метод; данный аргумент должен быть указан, если не указан session_key
secureboolФлаг, обозначающий, что запрос идет по защищенной схеме «сервер-сервер»; возможные значения: 1 или 0; по-умолчанию 0
formatstringФормат выдачи ответа API; возможные значения: xml или json; по умолчанию json

Параметры session_key и uid отвечают за авторизацию, то есть от лица какого пользователя происходит запрос. В зависимости от этого одна и та же функция в одном и том же приложении может возвращать немного разные результаты, например, когда один пользователь имеет доступ к различным закрытым данным, а другой нет. session_key используется для выполнения запросов по схеме «клиент-сервер», а uid - по схеме «сервер-сервер».

Сессия (session_key) получается при каждом новом сеансе работы пользователя с вашим приложением или сайтом. При последующих заходах того же пользователя это значение будет другим, поэтому сохранять его не надо. Значение session_key получается в зависимости от того, как используется REST API. Если используется API в клиенте социального приложения, session_key приходит в параметрах запроса, если интегрируются API для сайтов, сессия получается в процессе логина. В любом случае, после получения session_key, можно передать это значение на сервер, чтобы осуществлять вызовы функций API с сервера от лица текущего пользователя.

Схема клиент-сервер предназначена для случаев, когда REST API используется из клиента социального приложения, клиентского кода сайта или отдельного мобильного или desktop - приложения.

Если используется схема клиент-сервер, то в параметрах запроса secure=0 и sig рассчитывается по следующему алгоритму:

sig = md5(uid + params + private_key)

Значение params - это конкатенация пар «имя=значение» отсортированных в алфавитном порядке по «имя», где «имя» - это название параметра, передаваемого в функцию API, «значение» - значение параметра. Разделитель в конкатенации не используется. Параметр sig при расчете подписи не учитывается, все остальные параметры запроса должны учитываться при расчете.

Значение uid - идентификатор текущего пользователя приложения. Значение private_key можно взять из настроек приложения.

Схема сервер-сервер является более надежной. Некоторые запросы, которые подразумевают согласие пользователя, можно выполнить только по схеме клиент-сервер. В случае невозможности выполнения запроса по схеме сервер-сервер, вернется соответствующая ошибка.

Схема сервер-сервер использует отдельный ключ secret_key. При использовании схемы сервер-сервер, в параметрах запроса параметр secure=1 и значение параметра sig рассчитывается следующим образом:

sig = md5(params + secret_key)

В данном приложении описываются XML-RPC методы, использующиеся СГУ. Каждое описание состоит их имени метода и его входных и выходных значений.

Все ответы XML-RPC имеют общую структуру, приведенную в таблице ниже.

Структура ответов XML-RPC

ДанныеТип данныхОписание
ВыводBooleanTrue или false в случае успешного или неуспешного завершения.
ВыводStringЕсли возникает ошибка, выводится сообщение об ошибке.
ВыводIntКод ошибки.

Вывод всегда состоит из трёх значений. Первое и третье являются фиксированными, второе содержит сообщение об ошибке только в случае сбоя. Код ошибки содержит одно из значений, приведенных в таблице ниже.

Коды ошибок

ЗначениеКодОписание
0x0000SUCCESSУспешный ответ
0x0100AUTHENTICATIONПользователь не может быть аутентифицирован.
0x0200AUTHORIZATIONПользователь не имеет права выполнять запрошенное действие.
0x0400NO_EXISTSЗапрошенный ресурс не существует.
0x0800ACTIONОшибка состояния для выполнения действия.
0x1000XML_RPC_APIНеверные параметры, например, параметр должен быть «1» или «2», а получено значение «3».
0x2000INTERNALВнутренняя ошибка, например, ресурс не может быть загружен из БД.

Примечание: Все методы ожидают строку сессии, связанную с подключенным пользователем, в качестве первого параметра. Она должна быть сформирована из содержимого файла ONE_AUTH, который будет <username>:<password> с драйвером аутентификации 'core' по умолчанию.

Примечание: Каждый запрос XML-RPC должен быть аутентифицирован и авторизован. См. документацию по подсистеме Auth для получения дополнительной информации. Информационные строки, возвращаемые методами one.*.info, имеют формат XML.

Мы рекомендуем вам использовать опцию -x интерфейса командной строки для сбора примеров вывода из вашей собственной инфраструктуры. Методы, которые принимают XML-шаблоны, требуют, чтобы корневым элементом был TEMPLATE. Например, этот шаблон:

NAME = abc
MEMORY = 1024
ATT1 = value1

Запросы авторизации​

Горизонт-ВС-СГУ имеет интерфейс командной строки, который обертывает запросы XML-RPC. Для каждого запроса XML-RPC аутентифицируется токен сеанса, и после этого Диспетчер запросов генерирует запрос авторизации, который может включать более одной операции. В следующих таблицах документированы эти запросы от различных команд CLI.

onevm​

onevmXML-RPCAuth. Request
deployone.vm.deployVM:ADMIN
terminateone.vm.actionVM:MANAGE
reschedone.vm.actionVM:ADMIN
migrateone.vm.migrateVM:ADMIN
disk-saveasone.vm.disksaveasVM:MANAGE
disk-attachone.vm.attachVM:MANAGE
disk-detachone.vm.detachVM:MANAGE
disk-resizeone.vm.diskresizeVM:MANAGE
nic-attachone.vm.attachnicVM:MANAGE
nic-detachone.vm.detachnicVM:MANAGE
createone.vm.allocateVM:CREATE
showone.vm.infoVM:USE
chownone.vm.chownVM:MANAGE
chmodone.vm.chmodVM:<MANAGE/ADMIN>
renameone.vm.renameVM:MANAGE
snapshot-createone.vm.snapshotcreateVM:MANAGE
snapshot-deleteone.vm.snapshotdeleteVM:MANAGE
snapshot-revertone.vm.snapshotrevertVM:MANAGE
resizeone.vm.resizeVM:MANAGE
updateone.vm.updateVM:MANAGE
recoverone.vm.recoverVM:ADMIN
save– (ruby method)VM:MANAGE
updateconfone.vm.updateconfVM:MANAGE
list topone.vmpool.infoVM:USE
–one.vm.monitoringVM:USE

Примечание:Действие развертывания требует, чтобы пользователь, выполняющий команду, имел права администратора виртуальной машины. Этим пользователем обычно будет планировщик с учетными данными oneadmin.

Планировщик развертывает виртуальные машины на хостах, правами УПРАВЛЕНИЯ которыми обладает владелец виртуальной машины.

onetemplate​

Onetemplate commandXML-RPCAuth. Request
updateone.template.updateTEMPLATE:MANAGE
instantiateone.template.instantiateTEMPLATE:USE
createone.template.allocateTEMPLATE:CREATE
cloneone.template.cloneTEMPLATE:CREATE
deleteone.template.deleteTEMPLATE:MANAGE
showone.template.infoTEMPLATE:USE
chownone.template.chownTEMPLATE:MANAGE
chmodone.template.chmodTEMPLATE:<MANAGE/ADMIN>
renameone.template.renameTEMPLATE:MANAGE
listone.templatepool.infoTEMPLATE:USE

onehost​

onehostXML-RPCAuth. Request
disableone.host.status
updateone.host.updateHOST:ADMIN
createone.host.allocate
deleteone.host.delete
one.host.rename
showone.host.infoHOST:USE
list topone.hostpool.infoHOST:USE

Предупреждение: синхронизация onehost выполняется не ядром, а командой ruby command onehost.

onecluster​

oneclusterXML-RPCAuth. Request
createone.cluster.allocateCLUSTER:CREATE
deleteone.cluster.deleteCLUSTER:ADMIN
updateone.cluster.updateCLUSTER:MANAGE
addhostone.cluster.addhostCLUSTER:ADMIN
delhostone.cluster.CLUSTER:ADMIN
adddatastoreone.cluster.adddatastoreCLUSTER:ADMIN
deldatastoreone.cluster.deldatastoreCLUSTER:ADMIN
addvnetone.cluster.addvnetCLUSTER:ADMIN
delvnetone.cluster.CLUSTER:ADMIN
renameone.cluster.renameCLUSTER:MANAGE
showone.cluster.infoCLUSTER:USE
listone.clusterpool.infoCLUSTER:USE

onegroup​

onegroupXML-RPCAuth. Request
createone.group.allocateGROUP:CREATE
deleteone.group.deleteGROUP:ADMIN
showone.group.infoGROUP:USE
updateone.group.updateGROUP:MANAGE
addadminone.group.addadminGROUP:MANAGE
deladminone.group.deladminGROUP:MANAGE
quotaone.group.quotaGROUP:ADMIN
listone.grouppool.infoGROUP:USE
–one.groupquota.info–
defaultquotaone.groupquota.updateOny for users in the oneadmin

onevdc​

onevdcXML-RPCAuth. Request
createone.vdc.allocateVDC:CREATE
renameone.vdc.renameVDC:MANAGE
deleteone.vdc.deleteVDC:ADMIN
updateone.vdc.updateVDC:MANAGE
showone.vdc.infoVDC:USE
listone.vdcpool.infoVDC:USE
addgroupone.vdc.addgroupVDC:ADMIN
delgroupone.vdc.delgroupVDC:ADMIN
addclusterone.vdc.addclusterVDC:ADMIN
delclusterone.vdc.delclusterVDC:ADMIN
addhostone.vdc.addhostVDC:ADMIN
delhostone.vdc.delhostVDC:ADMIN
adddatastoreone.vdc.adddatastoreVDC:ADMIN
deldatastoreone.vdc.deldatastoreVDC:ADMIN
addvnetone.vdc.addvnetVDC:ADMIN
delvnetone.vdc.delvnetVDC:ADMIN

onevnet​

onevnetXML-RPCAuth. Request
addarone.vn.add_arNET:ADMIN
rmarone.vn.rm_arNET:ADMIN
freeone.vn.free_arNET:MANAGE
reserveone.vn.reserveNET:USE
updatearone.vn.update_arNET:MANAGE
holdone.vn.holdNET:MANAGE
releaseone.vn.releaseNET:MANAGE
updateone.vn.updateNET:MANAGE
createone.vn.allocateNET:CREATE
deleteone.vn.deleteNET:MANAGE
showone.vn.infoNET:USE
chownone.vn.chownNET:MANAGE
chmodone.vn.chmodNET:<MANAGE/ADMIN>
renameone.vn.renameNET:MANAGE
listone.vnpool.infoNET:USE

oneuser​

oneuser commandXML-RPCAuth. Request
createone.user.allocateUSER:CREATE
deleteone.user.deleteUSER:ADMIN
showone.user.infoUSER:USE
passwdone.user.passwdUSER:MANAGE
loginone.user.loginUSER:MANAGE
updateone.user.updateUSER:MANAGE
chauthone.user.chauthUSER:ADMIN
quotaone.user.quotaUSER:ADMIN
chgrpone.user.chgrpUSER:MANAGE
addgroupone.user.addgroupUSER:MANAGE
delgroupone.user.delgroupUSER:MANAGE
encode––
listone.userpool.infoUSER:USE
–one.userquota.info–
defaultquotaone.userquota.updateOny for users in the oneadmin

onedatastore​

Onedatastore командаXML-RPC MethodAuth. Request
createone.datastore.allocateDATASTORE:CREATE
deleteone.datastore.deleteDATASTORE:ADMIN
showone.datastore.infoDATASTORE:USE
updateone.datastore.updateDATASTORE:MANAGE
renameone.datastore.renameDATASTORE:MANAGE
chownone.datastore.chownDATASTORE:MANAGE
chmodone.datastore.chmodDATASTORE:<MANAGE / ADMIN>
enableone.datastore.enableDATASTORE:MANAGE
listone.datastorepool.infoDATASTORE:USE

oneimage​

oneimageXML-RPCAuth. Request
persistentone.image.persistentIMAGE:MANAGE
enableone.image.enableIMAGE:MANAGE
chtypeone.image.chtypeIMAGE:MANAGE
updateone.image.updateIMAGE:MANAGE
createone.image.allocateIMAGE:CREATE
cloneone.image.cloneIMAGE:CREATE
deleteone.image.deleteIMAGE:MANAGE
showone.image.infoIMAGE:USE
chownone.image.chownIMAGE:MANAGE
chmodone.image.chmodIMAGE:<MANAGE / ADMIN>
renameone.image.renameIMAGE:MANAGE
listone.imagepool.infoIMAGE:USE

onevrouter​

onevrouterXML-RPCAuth. Request
createone.vrouter.allocateVROUTER:CREATE
updateone.vrouter.updateVROUTER:MANAGE
instantiateone.vrouter.instantiateTEMPLATE:USE
nic-attachone.vrouter.attachnicVROUTER:MANAGE
nic-detachone.vrouter.detachnicVROUTER:MANAGE
deleteone.vrouter.deleteVROUTER:MANAGE
showone.vrouter.infoVROUTER:USE
chownone.vrouter.chownVROUTER:MANAGE
chmodone.vrouter.chmodVROUTER:<MANAGE/ADMIN>
renameone.vrouter.renameVROUTER:MANAGE
listone.vrouterpool.infoVROUTER:USE

onezone​

onezoneXML-RPCAuth. Request
createone.zone.allocateZONE:CREATE
renameone.zone.renameZONE:MANAGE
updateone.zone.updateZONE:MANAGE
deleteone.zone.deleteZONE:ADMIN
showone.zone.infoZONE:USE
listone.zonepool.infoZONE:USE
set–ZONE:USE

onesecgroup​

onesecgroup com-XML-RPC MethodAuth. Request
createone.secgroup.allocateSECGROUP:CREATE
cloneone.secgroup.cloneSECGROUP:CREATE
deleteone.secgroup.deleteSECGROUP:MANAGE
chownone.secgroup.chownSECGROUP:MANAGE
chmodone.secgroup.chmodSECGROUP:<MANAGE /ADMIN>
updateone.secgroup.updateSECGROUP:MANAGE
commitone.secgroup.commitSECGROUP:MANAGE
renameone.secgroup.renameSECGROUP:MANAGE
showone.secgroup.infoSECGROUP:USE
listone.secgrouppool.infoSECGROUP:USE

onevmgroup​

onevmgroupXML-RPCAuth. Request
createone.vmgroup.allocateVMGROUP:CREATE
deleteone.vmgroup.deleteVMGROUP:MANAGE
chownone.vmgroup.chownVMGROUP:MANAGE
chmodone.vmgroup.chmodVMGROUP:<MANAGE / ADMIN>
updateone.vmgroup.updateVMGROUP:MANAGE
renameone.vmgroup.renameVMGROUP:MANAGE
showone.vmgroup.infoVMGROUP:USE
listone.vmgrouppool.infoVMGROUP:USE

oneacl​

oneaclXML-RPCAuth. Request
createone.acl.addruleACL:MANAGE
deleteone.acl.delruleACL:MANAGE
listone.acl.infoACL:MANAGE

oneacct​

commandXML-RPCAuth. Request
oneacctone.vmpool.accountingVM:USE

system​

commandXML-RPCAuth. Request
–one.system.version–
–one.system.configOny for users in the oneadmin

Действия для управления шаблонами​

one.template.allocate​

Описание: Выделяет новый шаблон в Горизонт-ВС-СГУ.

ИмяТипОписание
INStringThe session string.
INStringA string containing the template contents. Syntax can be the usual attribute=value or
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe allocated resource ID / The error string.
OUTIntError code.

one.template.clone​

Описание: Клонирует существующий шаблон виртуальной машины.

ИмяТипОписание
INStringThe session string.
INIntThe ID of the template to be cloned.
INStringName for the new template.
INBooleantrue to clone the template plus any image defined in DISK. The new IMAGE_ID is set into
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe new template ID / The error string.
OUTIntError code.
OUTIntID of the original object that caused the error.

one.template.delete​

Описание: Удаляет данный шаблон из пула.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INBooleantrue to delete the template plus any image defined in DISK.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that caused the error.

one.template.instantiate​

Описание: Создает экземпляр новой виртуальной машины на основе шаблона.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringName for the new VM instance. If it is an empty string, Горизонт-ВС-СГУ will assign one automatically.
INBooleanFalse to create the VM on pending (default), True to create it on hold.
INStringA string containing an extra template to be merged with the one being instantiated. It can be
INBooleantrue to create a private persistent copy of the template plus any image defined in DISK, and in-
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe new virtual machine ID / The error string.
OUTIntError code.

Примечание: Объявление поля перезаписывает шаблон. Таким образом, объявление DISK=[...] перезаписывает атрибут шаблона DISK и, как таковой, должно содержать полное определение ДИСКА.

one.template.update​

Описание: Заменяет содержимое шаблона.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new template contents. Syntax can be the usual attribute=value or XML.
INIntUpdate type: 0: replace the whole template. 1: Merge new template with the existing one.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.

one.template.chmod​

Описание: Изменяет биты разрешений шаблона.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntUSER USE bit. If set to -1, it will not change.
INIntUSER MANAGE bit. If set to -1, it will not change.
INIntUSER ADMIN bit. If set to -1, it will not change.
INIntGROUP USE bit. If set to -1, it will not change.
INIntGROUP MANAGE bit. If set to -1, it will not change.
INIntGROUP ADMIN bit. If set to -1, it will not change.
INIntOTHER USE bit. If set to -1, it will not change.
INIntOTHER MANAGE bit. If set to -1, it will not change.
INIntOTHER ADMIN bit. If set to -1, it will not change.
INBooleantrue to chmod the template plus any image defined in DISK.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.template.chown​

Описание: Изменяет владельца шаблона.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntThe User ID of the new owner. If set to -1, the owner is not changed.
INIntThe Group ID of the new group. If set to -1, the group is not changed.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.template.rename​

Описание: Переименовывает шаблон.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new name.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.template.info​

Описание: Извлекает информацию для шаблона.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INBooleanoptional flag to process the template and include extended information, such as the SIZE for
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that caused the error.

one.templatepool.info​

Описание: Извлекает информацию обо всех или части ресурсов в пуле.

ИмяТипОписание
INStringThe session string.
INIntFilter flag
INIntWhen the next parameter is >= -1 this is the Range start
INIntFor values >= -1 this is the Range end ID. Can be -1 to
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that caused the error.

Диапазон может использоваться для извлечения подмножества пула, от идентификатора ‘start’ до идентификатора ‘end’. Чтобы получить полный пул, используйте (-1, -1); чтобы получить весь пул от определенного идентификатора до последнего, используйте (<id>, -1), а чтобы получить первые элементы с точностью до идентификатора, используйте (0, <id>).

Действия для управления виртуальной машиной​

one.vm.allocate​

Описание: Выделяет новую виртуальную машину в Горизонт-ВС-СГУ.

ИмяТипОписание
INStringThe session string.
INStringA string containing the template for the vm. Syntax can be the usual attribute=value
INBooleanFalse to create the VM on pending (default), True to create it on hold.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe allocated resource ID / The error string.
OUTIntError code.
OUTIntID of the Cluster that caused the error.

one.vm.deploy​

Описание: инициирует экземпляр данного vmid на целевом хосте.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntThe Host ID of the target host where the VM will be deployed.
INBooleantrue to enforce the Host capacity is not overcommitted.
INIntThe Datastore ID of the target system datastore where the VM will be deployed. It is optional,
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.
OUTIntID of the Datastore that cuased the error.

one.vm.action​

Описание: отправляет действие, которое должно быть выполнено на виртуальной машине.

ИмяТипОписание
INStringThe session string.
INStringthe action name to be performed, see below.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.

The action String must be one of the following:

  • завершить-жестко
  • прекратить
  • сложное развертывание
  • развернуть
  • жесткое отключение питания
  • отключение питания
  • перезагрузка-жесткая
  • перезагрузка
  • постой
  • освободить
  • остановка
  • приостановить
  • resume
  • перенесено
  • незакрепленный

one.vm.migrate​

Описание: переносит одну виртуальную машину (vid) на целевой хост (hid).

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntthe target host id (hid) where we want to migrate the vm.
INBooleanif true we are indicating that we want livemigration, otherwise false.
INBooleantrue to enforce the Host capacity is not overcommitted.
INIntthe target system DS id where we want to migrate the vm.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.
OUTIntID of the Datastore / Host that cuased the error.

one.vm.disksaveas​

Описание: Устанавливает диск, который будет сохранен в заданном образе.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntDisk ID of the disk we want to save.
INStringName for the new Image where the disk will be saved.
INStringType for the new Image. If it is an empty string, then the default one will be used. See the existing
INIntId of the snapshot to export, if -1 the current image state will be used.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe new allocated Image ID / The error string.
OUTIntError code.
OUTIntID of the Image / Datastore that cuased the error.

one.vm.attach​

Описание: Подключает новый диск к виртуальной машине

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringA string containing a single DISK vector attribute. Syntax can be the usual
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.

one.vm.detach​

Описание: Отсоединяет диск от виртуальной машины

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntThe disk ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.

one.vm.diskresize​

Описание: Изменяет размер диска виртуальной машины

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntThe disk ID.
INStringThe new size string.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.

one.vm.attachnic​

Описание: Подключает новый сетевой интерфейс к виртуальной машине

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringA string containing a single NIC vector attribute. Syntax can be the usual
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.
OUTIntID of the Virtual Machine that cuased the error.

one.vm.detachnic​

Описание: Отсоединяет сетевой интерфейс от виртуальной машины

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntThe nic ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.

one.vm.chmod​

Описание: Изменяет биты разрешений виртуальной машины.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntUSER USE bit. If set to -1, it will not change.
INIntUSER MANAGE bit. If set to -1, it will not change.
INIntUSER ADMIN bit. If set to -1, it will not change.
INIntGROUP USE bit. If set to -1, it will not change.
INIntGROUP MANAGE bit. If set to -1, it will not change.
INIntGROUP ADMIN bit. If set to -1, it will not change.
INIntOTHER USE bit. If set to -1, it will not change.
INIntOTHER MANAGE bit. If set to -1, it will not change.
INIntOTHER ADMIN bit. If set to -1, it will not change.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.vm.chown​

Описание: Изменение владельца виртуальной машины.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntThe User ID of the new owner. If set to -1, the owner is not changed.
INIntThe Group ID of the new group. If set to -1, the group is not changed.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.vm.rename​

Описание: Переименовывает виртуальную машину

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new name.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.vm.snapshotcreate​

Описание: Создает новый снимок виртуальной машины

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new snapshot name. It can be empty.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe new snapshot ID / The error string.
OUTIntError code.

one.vm.snapshotrevert​

Описание: Возвращает виртуальную машину к моментальному снимку

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntThe snapshot ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.

one.vm.snapshotdelete​

Описание: Удаляет снимок виртуальной машины

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntThe snapshot ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.

one.vm.resize​

Описание: Изменяет емкость виртуальной машины

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringTemplate containing the new capacity elements CPU, VCPU, MEMORY. If one of them is not
INBooleantrue to enforce the Host capacity is not overcommitted. This parameter is only acknoledged for
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.
OUTIntID of the Virtual Machine / Host that cuased the error.

one.vm.update​

Описание: Заменяет пользовательский шаблон.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new user template contents. Syntax can be the usual attribute=value or XML.
INIntUpdate type: 0: Replace the whole template. 1: Merge new template with the existing one.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.

one.vm.updateconf​

Описание: Обновляет (добавляет) набор поддерживаемых атрибутов конфигурации в шаблоне виртуальной машины

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new template contents. Syntax can be the usual attribute=value or XML.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the Virtual Machine that cuased the error.

Поддерживаемые атрибуты:

AttributeSub-attributes
OSARCH, MACHINE, KERNEL, INITRD, BOOTLOADER, BOOT
FEATURESACPI, PAE, APIC, LOCALTIME, HYPERV, GUEST_AGENT
INPUTTYPE, BUS
GRAPHICSTYPE, LISTEN, PASSWD, KEYMAP
RAWDATA, DATA_VMX, TYPE
CONTEXTAny value. Variable substitution will be made

one.vm.recover​

Описание: Восстанавливает зависшую виртуальную машину, ожидающую операции с драйвером. Восстановление может быть выполнено путем сбоя или последующего выполнения ожидающей операции. Вам необходимо вручную проверить состояние виртуальной машины на хосте, чтобы решить, прошла ли операция успешно или нет.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntRecover operation: success (1), failure (0), retry (2), delete (3), delete-recreate (4)
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the Virtual Machine that cuased the error.

one.vm.info​

Описание: Извлекает информацию для виртуальной машины.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the VM / DS / Cluster / Host that caused the error.

one.vm.monitoring​

Описание: Возвращает записи мониторинга виртуальной машины.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTStringThe monitoring information string / The error string.
OUTIntError code.

Возвращаемая информация мониторинга представляет собой список элементов виртуальной машины. Каждый элемент виртуальной машины содержит полный XML виртуальной машины с обновленной информацией, возвращаемой действием опроса.

one.vmpool.info​

Описание: Извлекает информацию для всех или части виртуальных машин в пуле.

ИмяТипОписание
INStringThe session string.
INIntFilter flag
INIntWhen the next parameter is >= -1 this is the Range start
INIntFor values >= -1 this is the Range end ID. Can be -1 to
INIntVM state to filter by.
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that caused the error.

Диапазон может использоваться для извлечения подмножества пула, от идентификатора ‘start’ до идентификатора ‘end’. Чтобы получить полный пул, используйте (-1, -1); чтобы получить весь пул от определенного идентификатора до последнего, используйте (<id>, -1), а чтобы получить первые элементы с точностью до идентификатора, используйте (0, <id>).

Фильтр состояния, может быть, одним из следующих:

ValueState
-2Any state, including DONE
-1Any state, except DONE
0INIT
1PENDING
2HOLD
3ACTIVE
4STOPPED
5SUSPENDED
6DONE
8POWEROFF
9UNDEPLOYED
10CLONING
11CLONING_FAILURE

one.vmpool.monitoring​

Описание: Возвращает все записи мониторинга виртуальной машины.

ИмяТипОписание
INStringThe session string.
INIntFilter flag
OUTBooleantrue or false whenever is successful
OUTStringThe information string / The error
OUTIntError code.

one.vmpool.accounting​

Описание: Возвращает записи истории виртуальной машины.

ИмяТипОписание
INStringThe session string.
INIntFilter flag
INIntStart time for the time interval. Can
INIntEnd time for the time interval. Can
OUTBooleantrue or false whenever is successful
OUTStringThe information string / The error
OUTIntError code.

Действия для управления хостами​

one.host.allocate​

Описание: Выделяет новый хост в Горизонт-ВС-СГУ

ИмяТипОписание
INStringThe session string.
INStringHostname of the machine we want to add
INStringThe name of the information manager (im_mad_name), this values are taken from the oned.conf
INStringThe name of the virtual machine manager mad name (vmm_mad_name), this values are taken
INIntThe cluster ID. If it is -1, the default one will be used.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe allocated Host ID / The error string.
OUTIntError code.
OUTIntID of the Cluster that caused the error.

one.host.delete​

Описание: Удаляет данный хост из пула

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that caused the error.

one.host.status​

Описание: Устанавливает состояние хоста

ИмяТипОписание
INStringThe session string.
INIntThe Host ID.
INInt0: ENABLED
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the host that caused the error.

one.host.update​

• Описание: Заменяет содержимое шаблона хоста.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new template contents. Syntax can be the usual attribute=value or XML.
INIntUpdate type: 0: Replace the whole template. 1: Merge new template with the existing one.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.

one.host.rename​

• Описание: Переименовывает хост.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new name.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.host.info​

• Описание: Извлекает информацию для хоста.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that caused the error.

one.host.monitoring​

• Описание: Возвращает записи мониторинга хоста.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTStringThe monitoring information string / The error string.
OUTIntError code.

Возвращаемая информация мониторинга представляет собой список элементов узла. Каждый элемент узла содержит полный XML узла с обновленной информацией, возвращаемой действием опроса.

Например:

one.hostpool.info​

• Описание: Извлекает информацию для всех узлов в пуле.

ИмяТипОписание
INStringThe session string.
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that caused the error.

one.hostpool.monitoring​

• Описание: Возвращает все записи мониторинга хоста.

ИмяТипОписание
INStringThe session string.
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.

Действия по управлению кластером​

one.cluster.allocate​

• Описание: Выделяет новый кластер в Горизонт-ВС-СГУ.

ИмяТипОписание
INStringThe session string.
INStringName for the new cluster.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe allocated cluster ID / The error string.
OUTIntError code.
OUTIntID of the Cluster that caused the error.

one.cluster.delete​

• Описание: Удаляет данный кластер из пула.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that caused the error.

one.cluster.update​

• Описание: Заменяет содержимое шаблона кластера.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new template contents. Syntax can be the usual attribute=value or XML.
INIntUpdate type: 0: Replace the whole template. 1: Merge new template with the existing one.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the Object that caused the error.

one.cluster.addhost​

• Описание: Добавляет узел в данный кластер.

ИмяТипОписание
INStringThe session string.
INIntThe cluster ID.
INIntThe host ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the Cluster/host that caused the error.

one.cluster.delhost​

Описание: Удаляет хост из данного кластера.

ИмяТипОписание
INStringThe session string.
INIntThe cluster ID.
INIntThe host ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the Cluster/host that caused the error.

one.cluster.adddatastore​

Описание: Добавляет хранилище данных в данный кластер.

ИмяТипОписание
INStringThe session string.
INIntThe cluster ID.
INIntThe datastore ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the Cluster that caused the error.

one.cluster.deldatastore​

Описание: Удаляет хранилище данных из данного кластера.

ИмяТипОписание
INStringThe session string.
INIntThe cluster ID.
INIntThe datastore ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the Cluster that caused the error.

one.cluster.addvnet​

Описание: Добавляет виртуальную сеть к данному кластеру.

ИмяТипОписание
INStringThe session string.
INIntThe cluster ID.
INIntThe vnet ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the Cluster that caused the error.

one.cluster.delvnet​

Описание: Удаляет виртуальную сеть из данного кластера.

ИмяТипОписание
INStringThe session string.
INIntThe cluster ID.
INIntThe vnet ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the Cluster that caused the error.

one.cluster.rename​

Описание: Переименовывает кластер.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new name.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.
OUTIntID of the Cluster that caused the error.

one.cluster.info​

Описание: Извлекает информацию для кластера.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the Cluster that caused the error.

one.clusterpool.info​

Описание: Извлекает информацию для всех кластеров в пуле.

ИмяТипОписание
INStringThe session string.
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that caused the error.

Действия по управлению виртуальной сетью​

one.vn.allocate​

Описание: Выделяет новую виртуальную сеть в Горизонт-ВС-СГУ.

ИмяТипОписание
INStringThe session string.
INStringA string containing the template of the virtual network. Syntax can be the usual
INIntThe cluster ID. If it is -1, the default one will be used.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe allocated resource ID / The error string.
OUTIntError code.
OUTIntID of the Cluster that caused the error.

one.vn.delete​

Описание: Удаляет данную виртуальную сеть из пула.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that caused the error.

one.vn.add_ar​

Описание: Добавляет диапазоны адресов в виртуальную сеть.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringtemplate of the address ranges to add. Syntax can be the usual attribute=value or XML,
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the Virtual Network that caused the error.

one.vn.rm_ar​

Описание: Удаляет диапазон адресов из виртуальной сети.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntID of the address range to remove.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the Virtual Network that caused the error.

one.vn.update_ar​

Описание: Обновляет атрибуты диапазона адресов.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringtemplate of the address ranges to update. Syntax can be the usual attribute=value or
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the Virtual Network that caused the error.

one.vn.reserve​

Описание: Резервирование сетевых адресов.

ИмяТипОписание
INStringThe session string.
INIntThe virtual network to reserve from.
INStringTemplate, see below.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the Virtual Network that caused the error.

Третий параметр должен быть шаблоном Горизонт-ВС-СГУ ATTRIBUTE=VALUE со следующими значениями:

AttributeDescriptionManda-
SIZESize of the reservationYES
NAMEIf set, the reservation will be created in a new Virtual Network with this nameNO
AR_IDID of the AR from where to take the addressesNO
NET-Instead of creating a new Virtual Network, the reservation will be added to the existingNO
MACFirst MAC address to start the reservation range [MAC, MAC+SIZE)NO
IPFirst IPv4 address to start the reservation range [IP, IP+SIZE)NO

one.vn.free_ar​

Описание: Освобождает зарезервированный диапазон адресов от виртуальной сети.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntID of the address range to free.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the VNet that caused the error.

one.vn.hold​

Описание: Сохраняет аренду виртуальной сети в том виде, в каком она используется.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringtemplate of the lease to hold, e.g. LEASES=[IP=192.168.0.5].
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the VNet that caused the error.

one.vn.release​

Описание: приостанавливает аренду виртуальной сети.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringtemplate of the lease to release, e.g. LEASES=[IP=192.168.0.5].
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the VNet that caused the error.

one.vn.update​

Описание: Заменяет содержимое шаблона виртуальной сети.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new template contents. Syntax can be the usual attribute=value or XML.
INIntUpdate type: 0: Replace the whole template. 1: Merge new template with the existing one.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the VNet that caused the error.

one.vn.chmod​

Описание: Изменяет биты разрешений виртуальной сети.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntUSER USE bit. If set to -1, it will not change.
INIntUSER MANAGE bit. If set to -1, it will not change.
INIntUSER ADMIN bit. If set to -1, it will not change.
INIntGROUP USE bit. If set to -1, it will not change.
INIntGROUP MANAGE bit. If set to -1, it will not change.
INIntGROUP ADMIN bit. If set to -1, it will not change.
INIntOTHER USE bit. If set to -1, it will not change.
INIntOTHER MANAGE bit. If set to -1, it will not change.
INIntOTHER ADMIN bit. If set to -1, it will not change.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.vn.chown​

Описание: Изменяет владельца виртуальной сети.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntThe User ID of the new owner. If set to -1, the owner is not changed.
INIntThe Group ID of the new group. If set to -1, the group is not changed.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.vn.rename​

Описание: Переименовывает виртуальную сеть.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new name.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.vn.info​

Описание: Извлекает информацию для виртуальной сети.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that caused the error.

Примечание: Правила ACL не применяются к резервированиям виртуальной сети так же, как к обычным виртуальным сетям и другим объектам. Подробнее читайте в руководстве по документации ACL.

one.vnpool.info​

Описание: Извлекает информацию для всех или части виртуальных сетей в пуле.

ИмяТипОписание
INStringThe session string.
INIntFilter flag
INIntWhen the next parameter is >= -1 this is the Range start
INIntFor values >= -1 this is the Range end ID. Can be -1 to
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that caused the error.

Диапазон может использоваться для извлечения подмножества пула, от идентификатора ‘start’ до идентификатора ‘end’. Чтобы получить полный пул, используйте (-1, -1); чтобы получить весь пул от определенного идентификатора до последнего, используйте (<id>, -1), а чтобы получить первые элементы с точностью до идентификатора, используйте (0, <id>)

Примечание: Правила ACL не применяются к резервированиям виртуальной сети так же, как к обычным виртуальным сетям и другим объектам. Подробнее читайте в руководстве по документации ACL.

Действия для управления группами безопасности​

one.secgroup.allocate​

Описание: Назначает новую группу безопасности в Горизонт-ВС-СГУ.

ИмяТипОписание
INStringThe session string.
INStringA string containing the template of the security group. Syntax can be the usual
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe allocated resource ID / The error string.
OUTIntError code.
OUTIntID of the Cluster that caused the error.

one.secgroup.clone​

Описание: Клонирует существующую группу безопасности.

ИмяТипОписание
INStringThe session string.
INIntThe ID of the security group to be cloned.
INStringName for the new security group.
INIntThe ID of the target datastore. Optional, can be set to -1 to use the current one.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe new security group ID / The error string.
OUTIntError code.
OUTIntID of the original object that caused the error.

one.secgroup.delete​

Описание: Удаляет данную группу безопасности из пула.

TypeData TypeDescription
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that caused the error.

one.secgroup.update​

Описание: Заменяет содержимое шаблона группы безопасности.

ИмяТипОписание
INStringстроке сеанса.
INIntИдентификатор объекта.
INStringновое содержимое шаблона. Синтаксис может быть обычным attribute=value или XML.
INIntВведите обновление:0: Замените весь шаблон.1: Объединить новый шаблон с существующим.
OUTOUTtrue или false всякий раз, когда выполняется успешно или нет
OUTInt/StringИдентификатор ресурса / строку ошибки.
OUTIntкод ошибки

one.secgroup.commit​

Описание: Зафиксируйте изменения группы безопасности на связанных виртуальных машинах. Это предназначено для повторной попытки обновления виртуальных машин или повторной инициализации процесса обновления, если oned остановлен или произошел сбой после вызова one.secgroup.update.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INBooleanI true the action will only operate on outdated and error VMs. False to update all VMs.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.secgroup.chmod​

Описание: Изменяет биты разрешений группы безопасности.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntUSER USE bit. If set to -1, it will not change.
INIntUSER MANAGE bit. If set to -1, it will not change.
INIntUSER ADMIN bit. If set to -1, it will not change.
INIntGROUP USE bit. If set to -1, it will not change.
INIntGROUP MANAGE bit. If set to -1, it will not change.
INIntGROUP ADMIN bit. If set to -1, it will not change.
INIntOTHER USE bit. If set to -1, it will not change.
INIntOTHER MANAGE bit. If set to -1, it will not change.
INIntOTHER ADMIN bit. If set to -1, it will not change.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.secgroup.chown​

Описание: Изменяет владельца группы безопасности.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntThe User ID of the new owner. If set to -1, the owner is not changed.
INIntThe Group ID of the new group. If set to -1, the group is not changed.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.secgroup.rename​

Описание: Переименовывает группу безопасности.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new name.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.secgroup.info​

Описание: Извлекает информацию для группы безопасности.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that caused the error.

one.secgrouppool.info​

Описание: Извлекает информацию для всех или части групп безопасности в пуле.

ИмяТипОписание
INStringThe session string.
INIntFilter flag
INIntWhen the next parameter is >= -1 this is the Range start
INIntFor values >= -1 this is the Range end ID. Can be -1 to
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that caused the error.
OUTIntID of the object that

Диапазон может использоваться для извлечения подмножества пула, от "начального" до "конечного" идентификатора. Чтобы получить полный пул, используйте (-1, -1); чтобы получить весь пул от определенного идентификатора до последнего, используйте (<id>, -1), а чтобы получить первые элементы с точностью до идентификатора, используйте (0, <id>).

Действия по управлению группой виртуальных машин​

one.vmgroup.allocate​

Описание: Выделяет новую группу виртуальных машин в Горизонт-ВС-СГУ.

ИмяТипОписание
INStringThe session string.
INStringA string containing the template of the VM. Syntax can be the usual attribute=value
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe allocated resource ID / The error string.
OUTIntError code.
OUTIntID of the Cluster that caused the error.

one.vmgroup.delete​

Описание: Удаляет данную группу виртуальных машин из пула.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that caused the error.

one.vmgroup.update​

Описание: Заменяет содержимое шаблона группы виртуальных машин.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new template contents. Syntax can be the usual attribute=value or XML.
INIntUpdate type: 0: Replace the whole template. 1: Merge new template with the existing one.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.

one.vmgroup.chmod​

Описание: Изменяет биты разрешений группы виртуальных машин.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntUSER USE bit. If set to -1, it will not change.
INIntUSER MANAGE bit. If set to -1, it will not change.
INIntUSER ADMIN bit. If set to -1, it will not change.
INIntGROUP USE bit. If set to -1, it will not change.
INIntGROUP MANAGE bit. If set to -1, it will not change.
INIntGROUP ADMIN bit. If set to -1, it will not change.
INIntOTHER USE bit. If set to -1, it will not change.
INIntOTHER MANAGE bit. If set to -1, it will not change.
INIntOTHER ADMIN bit. If set to -1, it will not change.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.vmgroup.chown​

Описание: Меняет владельца группы виртуальных машин.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntThe User ID of the new owner. If set to -1, the owner is not changed.
INIntThe Group ID of the new group. If set to -1, the group is not changed.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.vmgroup.rename​

Описание: Переименовывает группу виртуальных машин.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new name.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.vmgroup.info​

Описание: Извлекает информацию для группы виртуальных машин.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that caused the error.

one.vmgrouppool.info​

Описание: Извлекает информацию для всех или части групп виртуальных машин в пуле.

ИмяТипОписание
INStringThe session string.
INIntFilter flag
INIntWhen the next parameter is >= -1 this is the Range start
INIntFor values >= -1 this is the Range end ID. Can be -1 to
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that caused the error.

Диапазон может использоваться для извлечения подмножества пула, от идентификатора ‘start’ до идентификатора ‘end’. Чтобы получить полный пул, используйте (-1, -1); чтобы получить весь пул от определенного идентификатора до последнего, используйте (<id>, -1), а чтобы получить первые элементы с точностью до идентификатора, используйте (0, <id>).

Действия по управлению хранилищем данных​

one.datastore.allocate​

Описание: Выделяет новое хранилище данных в Горизонт-ВС-СГУ.

ИмяТипОписание
INStringThe session string.
INStringA string containing the template of the datastore. Syntax can be the usual
INIntThe cluster ID. If it is -1, the default one will be used.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe allocated resource ID / The error string.
OUTIntError code.
OUTIntID of the Cluster that caused the error.

one.datastore.delete​

Описание: Удаляет указанное хранилище данных из пула.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that caused the error.

one.datastore.update​

Описание: Заменяет содержимое шаблона хранилища данных.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new template contents. Syntax can be the usual attribute=value or XML.
INIntUpdate type: 0: Replace the whole template. 1: Merge new template with the existing one.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.

one.datastore.chmod​

Описание: Изменяет биты разрешений хранилища данных.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntUSER USE bit. If set to -1, it will not change.
INIntUSER MANAGE bit. If set to -1, it will not change.
INIntUSER ADMIN bit. If set to -1, it will not change.
INIntGROUP USE bit. If set to -1, it will not change.
INIntGROUP MANAGE bit. If set to -1, it will not change.
INIntGROUP ADMIN bit. If set to -1, it will not change.
INIntOTHER USE bit. If set to -1, it will not change.
INIntOTHER MANAGE bit. If set to -1, it will not change.
INIntOTHER ADMIN bit. If set to -1, it will not change.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.datastore.chown​

Описание: Изменяет владельца хранилища данных.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntThe User ID of the new owner. If set to -1, the owner is not changed.
INIntThe Group ID of the new group. If set to -1, the group is not changed.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.datastore.rename​

Описание: Переименовывает хранилище данных.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new name.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.datastore.enable​

Описание: Включает или отключает хранилище данных.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INBooleanTrue for enabling, false for disabling.
OUTBooleantrue or false whenever is successful or not.
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the Datastore that cuased the error.

one.datastore.info​

Описание: Извлекает информацию для хранилища данных.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that caused the error.

one.datastorepool.info​

Описание: Извлекает информацию для всех или части хранилищ данных в пуле.

ИмяТипОписание
INStringThe session string.
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that caused the error.

Действия по управлению образами​

one.image.allocate​

Описание: Выделяет новый образ в Горизонт-ВС-СГУ.

ИмяТипОписание
INStringThe session string.
INStringA string containing the template of the image. Syntax can be the usual attribute=value
INIntThe datastore ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe allocated resource ID / The error string.
OUTIntError code.
OUTIntID of the Datastore that caused the error.

one.image.clone​

Описание: Клонирует существующий образ.

ИмяТипОписание
INStringThe session string.
INIntThe ID of the image to be cloned.
INStringName for the new image.
INIntThe ID of the target datastore. Optional, can be set to -1 to use the current one.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe new image ID / The error string.
OUTIntError code.
OUTIntID of the original Image / DS or destination DS that caused the error.

one.image.delete​

Описание: Удаляет образ из пула.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that caused the error.

one.image.enable​

Описание: Включает или отключает образ.

ИмяТипОписание
INStringThe session string.
INIntThe Image ID.
INBooleanTrue for enabling, false for disabling.
OUTBooleantrue or false whenever is successful or not.
OUTInt/StringThe Image ID / The error string.
OUTIntError code.

one.image.persistent​

Описание: Устанавливает образ как постоянный или непостоянный.

ИмяТипОписание
INStringThe session string.
INIntThe Image ID.
INBooleanTrue for persistent, false for non-persisent.
OUTBooleantrue or false whenever is successful or not.
OUTInt/StringThe Image ID / The error string.
OUTIntError code.
OUTIntID of the image that caused the error.

one.image.chtype​

Описание: Изменяет тип образа.

ИмяТипОписание
INStringThe session string.
INIntThe Image ID.
INStringNew type for the Image. See the existing types in the Image template reference.
OUTBooleantrue or false whenever is successful or not.
OUTInt/StringThe Image ID / The error string.
OUTIntError code.
OUTIntID of the image that caused the error.

one.image.update​

Описание: Заменяет содержимое образа

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new template contents. Syntax can be the usual attribute=value or XML.
INIntUpdate type: 0: Replace the whole template. 1: Merge new template with the existing one.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.

one.image.chmod​

Описание: Изменяет биты разрешений образа.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntUSER USE bit. If set to -1, it will not change.
INIntUSER MANAGE bit. If set to -1, it will not change.
INIntUSER ADMIN bit. If set to -1, it will not change.
INIntGROUP USE bit. If set to -1, it will not change.
INIntGROUP MANAGE bit. If set to -1, it will not change.
INIntGROUP ADMIN bit. If set to -1, it will not change.
INIntOTHER USE bit. If set to -1, it will not change.
INIntOTHER MANAGE bit. If set to -1, it will not change.
INIntOTHER ADMIN bit. If set to -1, it will not change.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.image.chown​

Описание: Изменяет владельца образа.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INIntThe User ID of the new owner. If set to -1, the owner is not changed.
INIntThe Group ID of the new group. If set to -1, the group is not changed.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.image.rename​

Описание: Переименовывает образ.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new name.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe VM ID / The error string.
OUTIntError code.
OUTIntID of the object that cuased the error.

one.image.info​

Описание: Извлекает информацию для образа.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that caused the error.

one.imagepool.info​

Описание: Извлекает информацию для всех или части образа в пуле.

ИмяТипОписание
INStringThe session string.
INIntFilter flag
INIntWhen the next parameter is >= -1 this is the Range start
INIntFor values >= -1 this is the Range end ID. Can be -1 to
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that caused the error.

Диапазон может использоваться для извлечения подмножества пула, от идентификатора ‘start’ до идентификатора ‘end’. Чтобы получить полный пул, используйте (-1, -1); чтобы получить весь пул от определенного идентификатора до последнего, используйте (<id>, -1), а чтобы получить первые элементы с точностью до идентификатора, используйте (0, <id>).

Действия для управления пользователями​

one.user.allocate​

Описание: Выделяет нового пользователя в Горизонт-ВС-СГУ

ИмяТипОписание
INStringThe session string.
INStringusername for the new user
INStringpassword for the new user
INStringauthentication driver for the new user. If it is an empty string, then the default (‘core’) is used
INArrayarray of Group IDs. The first ID will be used as the main group. This array can be empty, in
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe allocated User ID / The error string.
OUTIntError code.
OUTIntID of the Group that caused the error.

one.user.delete​

Описание: Удаляет данного пользователя из пула.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that caused the error.

one.user.passwd​

Описание: Изменяет пароль для данного пользователя.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new password
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe User ID / The error string.
OUTIntError code.

one.user.login​

Описание: Генерирует или устанавливает токен входа.

ИмяТипОписание
INStringThe session string.
INStringThe user name to generate the token for
INStringThe token, if empty oned will generate one
INIntValid period in seconds; 0 reset the token and -1 for a non-expiring token.
INIntEffective GID to use with this token. To use the current GID and user groups set it to -1
OUTBooleantrue or false whenever is successful or not
OUTStringThe new token / The error string.
OUTIntError code.

one.user.update​

Описание: Заменяет содержимое пользователя.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new template contents. Syntax can be the usual attribute=value or XML.
INIntUpdate type: 0: Replace the whole template. 1: Merge new template with the existing one.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.

one.user.chauth​

Описание: Изменяет драйвер аутентификации и пароль для данного пользователя.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new authentication driver.
INStringThe new password. If it is an empty string, the password is not changed.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe User ID / The error string.
OUTIntError code.

one.user.quota​

Описание: Устанавливает ограничения пользовательских квот.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new quota template contents. Syntax can be the usual attribute=value or XML.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.

one.user.chgrp​

Описание: Изменяет группу данного пользователя.

ИмяТипОписание
INStringThe session string.
INIntThe User ID.
INIntThe Group ID of the new group.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe User ID / The error string.
OUTIntError code.

one.user.addgroup​

Описание: Добавляет пользователя во вспомогательную группу.

ИмяТипОписание
INStringThe session string.
INIntThe User ID.
INIntThe Group ID of the new group.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe User ID / The error string.
OUTIntError code.

one.user.delgroup​

Описание: Удаляет пользователя из дополнительной группы

ИмяТипОписание
INStringThe session string.
INIntThe User ID.
INIntThe Group ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe User ID / The error string.
OUTIntError code.

one.user.info​

Описание: Извлекает информацию для пользователя.

ИмяТипОписание
INStringThe session string.
INIntThe object ID. If it is -1, then the connected user’s own info info is returned
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that cuased the error.

one.userpool.info​

Описание: Извлекает информацию обо всех пользователях в пуле.

ИмяТипОписание
INStringThe session string.
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that cuased the error.

one.userquota.info​

Описание: Возвращает ограничения пользовательских квот по умолчанию.

ИмяТипОписание
INStringThe session string.
OUTBooleantrue or false whenever is successful or not
OUTStringThe quota template contents / The error string.
OUTIntError code.

one.userquota.update​

Описание: Обновляет ограничения пользовательских квот по умолчанию.

ИмяТипОписание
INStringThe session string.
INStringThe new quota template contents. Syntax can be the usual attribute=value or XML.
OUTBooleantrue or false whenever is successful or not
OUTStringThe quota template contents / The error string.
OUTIntError code.

Действия по управлению группой​

one.group.allocate​

Описание: Выделяет новую группу в Горизонт-ВС-СГУ.

ИмяТипОписание
INStringThe session string.
INStringName for the new group.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe allocated Group ID / The error string.
OUTIntError code.
OUTIntID of the Cluster that caused the error.

one.group.delete​

Описание: Удаляет данную группу из пула.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the object that caused the error.

one.group.info​

Описание: Извлекает информацию для группы.

ИмяТипОписание
INStringThe session string.
INIntThe object ID. If it is -1, then the connected user’s group info info is returned
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that cuased the error.

one.group.update​

Описание: Заменяет содержимое шаблона группы.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new template contents. Syntax can be the usual attribute=value or XML.
INIntUpdate type: 0: Replace the whole template. 1: Merge new template with the existing one.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.

one.group.addadmin​

Описание: Добавляет пользователя в набор администраторов группы

ИмяТипОписание
INStringThe session string.
INIntThe group ID.
INIntThe user ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.

one.group.deladmin​

Описание: Удаляет пользователя из набора администраторов группы

ИмяТипОписание
INStringThe session string.
INIntThe group ID.
INIntThe user ID.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.

one.group.quota​

Описание: Устанавливает ограничения групповой квоты.

ИмяТипОписание
INStringThe session string.
INIntThe object ID.
INStringThe new quota template contents. Syntax can be the usual attribute=value or XML.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe resource ID / The error string.
OUTIntError code.
OUTIntID of the group that caused the error.

one.grouppool.info​

Описание: Извлекает информацию по всем группам в пуле.

ИмяТипОписание
INStringThe session string.
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that cuased the error.

one.groupquota.info​

Описание: Возвращает ограничения групповой квоты по умолчанию.

TypeData TypeDescription
INStringThe session string.
OUTBooleantrue or false whenever is successful or not
OUTStringThe quota template contents / The error string.
OUTIntError code.

one.groupquota.обновить​

Описание: Обновляет ограничения групповой квоты по умолчанию.

ИмяТипОписание
INStringThe session string.
INStringThe new quota template contents. Syntax can be the usual attribute=value or XML.
OUTBooleantrue or false whenever is successful or not
OUTStringThe quota template contents / The error string.
OUTIntError code.

Действия для управления правилами ACL​

one.acl.addrule​

Описание: Добавляет новое правило ACL.

ИмяТипОписание
INStringThe session string.
INStringUser component of the new rule. A string containing a hex number.
INStringResource component of the new rule. A string containing a hex number.
INStringRights component of the new rule. A string containing a hex number.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe allocated ACL rule ID / The error string.
OUTIntError code.

one.acl.delrule​

Описание: Удаляет правило ACL.

ИмяТипОписание
INStringThe session string.
INIntACL.
OUTBooleantrue or false whenever is successful or not
OUTInt/StringThe ACL rule ID / The error string.
OUTIntError code.

one.acl.info​

Описание: Возвращает полный набор правил ACL.

ИмяТипОписание
INStringThe session string.
INIntACL.
OUTBooleantrue or false whenever is successful or not
OUTStringThe information string / The error string.
OUTIntError code.
OUTInt | ID of the object that cuased the error.