Hi,
I am using c# to invoke the maas rest api. I can authenticate fine (proven by the fact i can call the api endpoint to get all machines), but when I try to allocate a machine, I get this error:
‘dict’ object has no attribute ‘lists’
I have request like so:
{
“system_id”:“ex6sxd”,
“arch”:"",
“cpu_count”:"",
“mem”:"",
“tags”:"",
“not_tags”:"",
“not_in_zone”:"",
“pool”:"",
“not_in_pool”:"",
“pod”:"",
“not_pod”:"",
“pod_type”:"",
“not_pod_type”:"",
“sunbets”:"",
“not_subnets”:"",
“storage”:"",
“fabrics”:"",
“not_fabrics”:"",
“fabric_classes”:"",
“not_fabric_classes”:"",
“agent_name”:"",
“comment”:"",
“bridge_all”:"",
“bridge_stp”:"",
“bridge_fd”:"",
“dry_run”:true,
“verbose”:true
}
What am I missing? I get this error too in C# but the same request format works fine for provisioning DNS records.