cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
343
Views
3
Helpful
3
Replies

Unable to send body for POST method where parameter is a presence container in the yang

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;

                    }

                }

3 Replies 3

Dan.Sullivan
Cisco Employee
Cisco Employee

What version of NSO are you using?

-Dan

NCS 4.4.2.1

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: