Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 382 Bytes

api-examples.adoc

File metadata and controls

14 lines (10 loc) · 382 Bytes

Other API examples

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 -