lib cac: add cac_listtasks
This commit is contained in:
parent
cc62429cf3
commit
56f65724e3
10
lib/cac.sh
10
lib/cac.sh
@ -7,3 +7,13 @@ cac_listservers() {
|
||||
"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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user