blob: 47b73240a1c53b7f7a7261e3414bdfb7284ca40c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
cac_listservers() {
if test -z "${cac_via-}"; then
curl -fsS \
-G \
--data-urlencode key="$cac_key" \
--data-urlencode login="$cac_login" \
'https://panel.cloudatcost.com/api/v1/listservers.php'
else
ssh -q $cac_via -t curl -fsS \
-G \
--data-urlencode key="$cac_key" \
--data-urlencode login="$cac_login" \
'https://panel.cloudatcost.com/api/v1/listservers.php'
fi
}
cac_listtasks() {
if test -z "${cac_via-}"; then
curl -fsS \
-G \
--data-urlencode key="$cac_key" \
--data-urlencode login="$cac_login" \
'https://panel.cloudatcost.com/api/v1/listtasks.php'
else
ssh -q $cac_via -t curl -fsS \
-G \
--data-urlencode key="$cac_key" \
--data-urlencode login="$cac_login" \
'https://panel.cloudatcost.com/api/v1/listtasks.php'
fi
}
|