summaryrefslogtreecommitdiffstats
path: root/lib/cac.sh
blob: 209bb4d66839eba04b2f7b501fe1f5ba180d99d4 (plain)
1
2
3
4
5
6
7
8
9
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
}