10-04-2017 11:31 PM - edited 03-01-2019 04:00 AM
https://<...>/api/config/devices/device/<device>/xxxx/_operations/run
for the above POST method, when attempted to send the parameter abc as body
<input><abc/></input>
it says malformed message/Internal error in response.
The parameter abc is a presence container for the action run ->
tailf:action run {
tailf:actionpoint run;
input {
container abc {
presence true;
}
}
10-25-2017 02:25 PM
What version of NSO are you using?
-Dan
10-25-2017 03:38 PM
NCS 4.4.2.1
11-27-2017 09:24 AM
I think you need to use .../api/operational/... (vs .../api/config/...) e.g.
curl -H "Content-Type: application/vnd.yang.operation+xml" -v -u admin:admin -d "<any><args>show version</args></any>" http://localhost:8080/api/operational/devices/device/volvo-fw-router-ASA-firewall-esc0-1/live-status/asa-stats:exec/_operations/any
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide