Skip to content

Instantly share code, notes, and snippets.

@sideangleside
Last active January 3, 2017 23:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sideangleside/6dcc8ba431de5b718ba3de4665e7b744 to your computer and use it in GitHub Desktop.
Save sideangleside/6dcc8ba431de5b718ba3de4665e7b744 to your computer and use it in GitHub Desktop.
Set host to autoheal: true via Sat 6 API
curl -k \
-H "Content-Type: application/json" \
-X PUT \
-d '{"subscription_facet_attributes": {"id": 78, "autoheal": true}}' \
https://satellite.example.com/api/hosts/virt-who-esxi01.example.com-1 \
-u admin:redacted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment