LoginSignup
0
0

More than 5 years have passed since last update.

CloudatCost API v1を使ってreset(強制再起動)する

Posted at

参考

準備

  • Settings > API KEYの生成
  • API Access IPの指定 (指定しないとerrorになる)

スクリプト

reset.sh
C_KEY="xxxxxxxxxxxxxxxxxxxxxxxxx"
C_LOGIN="xxxxxxx@xxxx.com"
C_SID="111111111"
C_URL="https://panel.cloudatcost.com/api/v1/powerop.php"

curl --insecure --data "key=${C_KEY}&login=${C_LOGIN}&sid=${C_SID}&action=reset" ${C_URL}
error
{"status":"error","time":1462604146,"error":104,"error_description":"invalid ip address connection"}
ok
{"status":"ok","time":1462604226,"api":"v1","serverid":"111111111","action":"reset","taskid":1111111111111,"result":"successful"}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0