Group: Member
Post Group: Newbie
Posts: 2
Status:
|
I can create OpenVZ VPS on slave server with template ID (plid) and osid on GUI of Virtualizor.
I have sniffer params when it post to Server and copy that params but it not successful.
I think I have a problem with chosen Server when create with API.
But I haved tried node_select, serid, this is my param. What's my wrong ?
Thanks
params = {
"addvps": 1,
"node_select": 1,
"serid": 1,
"stid": 22, # Storage ID on which the VPS is to be created. (Not needed if using Primary storage)
"virt": "openvz",
"uid": 16,
"user_email": "",
"user_pass": "",
"plid": 28,
"osid": 363,
"hostname": "haulpd7.com",
"rootpass": "hau123!@#",
"space": [{"size": 80, "st_uuid": "uuid of storage on node"}],
"storages": ["uuid of storage on node"],
"ram": 4096,
"burst": 4096,
"bandwidth": 0,
"network_speed": 12800,
"msg": "",
"priority": 4,
"cpu": 2000,
"cores": 4,
"cpu_percent": 0.00,
"swapram": 0,
"vnc": 0,
"ips": ["IP Address"],
"cpunit": "",
"uid": 16,
"size[]": 80,
"ploop": "1",
"dns": ["8.8.8.8"],
"dns": ["8.8.4.4"],
"control_panel": "0",
"recipe": "0",
"show_tuntap": "on",
"tuntap": "1",
"ppp": "0",
"fuse": "0",
"ipip": "0",
"ipgre": "0",
"nfs": "0",
"quotaugidlimit": "1",
"iolimit": "0",
"iopslimit": "500",
"osreinstall_limit": "0",
"admin_managed": "0",
"bpid": "34", # backup plan id
}
|