Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

STATUS="1" # Replace with the current status of the ARM 

...

#Send POST request with the variables as data

    access access_token=`curl -k -s -X POST -H "Content-Type: application/json" -d '{"username":"admin","password":"admin"}'  https://172.16.133.12/api/2.0/authenticate | jq -r .access_token`

    curl  curl -k -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $access_token"  -d "{\"ARM_IP\":\"{{wsip}}\",\"status\":\"$STATUS\"}"  https://172.16.133.12/api/2.0/sakura_state

...