Hi Guys, I am new to proxmox. I am currently using the Corsinvest C# API to interface with proxmox.
Execute API: https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/execute
I am trying to execute the cmd "ip link show vmbr1", but it says bad format. What changes should I do to the parameters to get it working.
Thanks in advance.
Execute API: https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/execute
I am trying to execute the cmd "ip link show vmbr1", but it says bad format. What changes should I do to the parameters to get it working.
Thanks in advance.
Code:
var cmd = "ip link show vmbr1";
var cmdObj = new[]
{
new
{
args = cmd,
method = "GET",
path = ""
},
};
var cmdSerialized = JsonConvert.SerializeObject(cmdObj);
var cmdExecuteResult = await node1Obj.Execute.Execute(cmdSerialized);