Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

HTTP-REST 2.0 - Accept application/json

$
0
0

It seems that the "request.setHeader("Accept","application/json")" is not working with HTTP-REST plugin 2.0.

 

I've configured an HTTP-REST host pointing to NSX and an Operation to get an Edge using the URL "/api/4.0/edges/{edgeId}". In the "Invoke Operation workflow" I add the following line:

request.setHeader("Accept","application/json")

 

This is working perfectly find on a vRealize Orchestrator 6.0.3 with HTTP-REST plugin version 1.0.9 and returns a JSON response. But with vRealize Orchestrator 7.0.0 using HTTP-REST plugin version 2.0.0 it returns a XML response.

 

How can I get the JSON response using version 2.0.0?

 

Thanks a lot!

D.


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>