Junos Automation (Scripting)
Junos Automation (Scripting)

RestAPI in JunosSpace 17.2

3 weeks ago

I'm trying to setup RestAPI for Space so I can pull some xml or csv documents from the server.

Testing is done in Postman v7.11.0

 

These documents are exported results from "Compare Template against device" jobs.

 

 

I believe i'm following the configuration guide outlined here as it states i should be:

https://www.juniper.net/documentation/en_US/junos-space-sdk/18.1/apiref/com.juniper.junos_space.sdk....

 

 

I'm using the following POST request:

https://*my-host-here*/api/space/config-template-management/export-compare-template-job-results

 

Content-Type -

application/vnd.net.juniper.space.config-template-management.audit-job-results-for-export-request+xml;version=3;charset=UTF-8

 

Accept -

application/vnd.net.juniper.space.config-template-management.audit-job-results-for-export-response+xml;version=3

 

 

And i get the following reply:

 

Error Report


500 ERROR
The server encountered an internal error that prevented it from fulfilling this request.