2015-05-20 17:07:33 +00:00
|
|
|
cac_listservers() {
|
|
|
|
if test -z "${cac_via-}"; then
|
|
|
|
curl -fsS \
|
2015-05-20 17:14:35 +00:00
|
|
|
"https://panel.cloudatcost.com/api/v1/listservers.php?key=$cac_key&login=$cac_login"
|
2015-05-20 17:07:33 +00:00
|
|
|
else
|
|
|
|
ssh -q $cac_via -t curl -fsS \
|
|
|
|
"https://panel.cloudatcost.com/api/v1/listservers.php?key=$cac_key\\&login=$cac_login"
|
|
|
|
fi
|
|
|
|
}
|
2015-05-20 17:15:12 +00:00
|
|
|
|
|
|
|
cac_listtasks() {
|
|
|
|
if test -z "${cac_via-}"; then
|
|
|
|
curl -fsS \
|
|
|
|
"https://panel.cloudatcost.com/api/v1/listtasks.php?key=$cac_key&login=$cac_login"
|
|
|
|
else
|
|
|
|
ssh -q $cac_via -t curl -fsS \
|
|
|
|
"https://panel.cloudatcost.com/api/v1/listtasks.php?key=$cac_key\\&login=$cac_login"
|
|
|
|
fi
|
|
|
|
}
|