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_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 -k data curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $access_token" -d "'{\"ARM_IP\MAC":\"{{wsip}}\",\"status\":\"$STATUS\"}" http"00:0c:29:e3:13:9a","status":"100","hostname":"win11"}'  https://172.16.130133.5:808012/api/2.0/sakura_state


Warning

Внимание! Вместо адреса http://172.16.130.5:8080/api/sakura_state вы должны подставить адрес вашего сервера WNAM, как он доступен со стороны Сакура-сервера.

Скорее всего, это будет URL со схемой https и без указания номера порта. Например: https://wnam.corp.local/api/sakura_state 

...