Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Here are some curl commands I use to administer things

Note
titleNote

In FOAM 0.8 URL endpoints have moved around such that https://<foam-host>:<port>/admin/ is now at https://<foam-host>:<port>/core/admin/.

Code Block
curl -kn -u foamadmin:$(cat /opt/foam/etc/foampasswd) https://localhost:3626/admin/list-slivers
curl -kn -u foamadmin:$(cat /opt/foam/etc/foampasswd) -X POST -H "Content-Type: application/json" https://localhost:3626/admin/list-slivers -d '{"status": "Pending"}'
curl -kn -u foamadmin:$(cat /opt/foam/etc/foampasswd) -X POST -H "Content-Type: application/json" https://localhost:3626/admin/show-sliver -d "{\"sliver_urn\": \"$sliver_urn\"}"
curl -kn -u foamadmin:$(cat /opt/foam/etc/foampasswd) -X POST -H "Content-Type: application/json" https://localhost:3626/admin/get-sliver-flowspace -d "{\"sliver_urn\": \"$sliver_urn\"}"
curl -kn -u foamadmin:$(cat /opt/foam/etc/foampasswd) -X POST -H "Content-Type: application/json" https://localhost:3626/admin/approve-sliver -d "{\"sliver_urn\": \"$sliver_urn\", \"priority\": $priority}"
curl -kn -u foamadmin:$(cat /opt/foam/etc/foampasswd) -X POST -H "Content-Type: application/json" https://localhost:3626/admin/disable-sliver -d "{\"sliver_urn\": \"$sliver_urn\"}"
curl -kn -u foamadmin:$(cat /opt/foam/etc/foampasswd) -X POST -H "Content-Type: application/json" https://localhost:3626/admin/reject-sliver -d "{\"sliver_urn\": \"$sliver_urn\"}"
curl -kn -u foamadmin:$(cat /opt/foam/etc/foampasswd) -X POST -H "Content-Type: application/json" https://localhost:3626/admin/delete-sliver -d "{\"sliver_urn\": \"$sliver_urn\"}"