Получение списка (словаря) profiles (ID для полей vm_os_type и vm_os_profile):
Запрос:
{ "jsonrpc": "2.0", "method": "vm-profiles", "id": "a163d320-dad2-11e9-a9b9-6a1583008659" }
Ответ:
{ "id" : "a163d320-dad2-11e9-a9b9-6a1583008659", "jsonrpc" : "2.0", "result" : { "code" : 1, "data" : { "1" : { "name" : "FreeBSD", "profiles" : [ { "description" : "FreeBSD 12.0-RELEASE", "id" : 14, "min_size" : 4294967296, "name" : "cloud-FreeBSD-x64-12.0" } ] }, "6" : { "name" : "Linux", "profiles" : [ { "description" : "Debian 10.1 cloud image", "id" : 15, "min_size" : 4294967296, "name" : "cloud-Debian-x64-10.1" }, { "description" : "CentOS 7.7 cloud image", "id" : 4, "min_size" : 4294967296, "name" : "cloud-CentOS-7-x86_64" }, { "description" : "Ubuntu 18.04 cloud image", "id" : 8, "min_size" : 4294967296, "name" : "cloud-ubuntuserver-amd64-18.04" } ] }, "7" : { "name" : "Windows", "profiles" : [ { "description" : "Windows Server 2019 standard", "id" : 12, "min_size" : 17179869184, "name" : "cloud-Windows-Server-2019-standart-x64" } ] } } } }