summaryrefslogtreecommitdiffstats
path: root/lib/cac.sh
blob: c48f9d6991a2ef92668823d5e404c6055f5e7700 (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
}