20 lines
599 B
Bash
20 lines
599 B
Bash
cac_listservers() {
|
|
if test -z "${cac_via-}"; then
|
|
curl -fsS \
|
|
"https://panel.cloudatcost.com/api/v1/listservers.php?key=$cac_key&login=$cac_login"
|
|
else
|
|
ssh -q $cac_via -t curl -fsS \
|
|
"https://panel.cloudatcost.com/api/v1/listservers.php?key=$cac_key\\&login=$cac_login"
|
|
fi
|
|
}
|
|
|
|
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
|
|
}
|