Comment 1 for bug 1981579

Revision history for this message
Daniel Manrique (roadmr) wrote :

first Juju does this

curl -XPOST -s https://api.charmhub.io/v2/charms/refresh -H 'Content-type: application/json' -d '{ "context": [], "actions": [{"name": "mysql", "base": {"name": "NA", "channel": "NA", "architecture": "amd64"} , "channel": "edge" , "action": "install", "instance-key": "a-test"}]}' | jq .

it gets the list of bases and picks the first one, then does this with that:

curl -XPOST -s https://api.charmhub.io/v2/charms/refresh -H 'Content-type: application/json' -d '{ "context": [], "actions": [{"name": "mysql", "base": {"name": "ubuntu", "channel": "16.04", "architecture": "amd64"} , "channel": "edge" , "action": "install", "instance-key": "a-test"}]}' | jq .