List the nodes in a requisition
The provision.pl
script doesn’t supply this feature but you can get it via the REST API.
Here is an example using curl
:
#!/usr/bin/env bash
REQ=$1
curl -X GET -H "Content-Type: application/xml" -u admin:admin http://localhost:8980/opennms/rest/requisitions/$REQ 2>/dev/null | xmllint --format -