I’m struggling somewhat with the format of the API requests
I know I can list all snapin associations with (assume I’m sending correct token headers, just for clarity)
curl http://localhost/fog/snapinassociation
and this returns
{ "count": 1, "snapinassociations": [ { "id": "6135", "hostID": "52", "snapinID": "2484" } ]
Now, what I want to do is to remove ALL snapins from hostID 52, but I can’t find a way to do this
The closest I’ve come is to do the above query, then parse the output and do
curl -X DELETE http://localhost/fog/snapinassociation/6135/delete
But this feels clunky and I’m sure I’m missing something fundamental. The URIs aren’t quite making sense in my head, because I know I can create a snapin association with
curl -X PUT -d '{"snapins":[2484]}' http://localhost/fog/host/52/edit
but I can’t clear them with
curl -X PUT -d '{"snapins":[]}' http://localhost/fog/host/52/edit
What am I missing?




