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 .
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 .