Quantcast
Channel: VMware Communities: Message List - VMware vCloud Director
Viewing all articles
Browse latest Browse all 7719

URLEncoding in query service of vCloud Director API

$
0
0

Hi,

 

Trying to use below vCloud Director Query Service API:

GET /api​/query​?type=vApp​&filter=%28vdcName%3D%3Dsikdervse%29​&format=records​


Getting below error:

Bad request: Expression %28vdcName%3D%3Dsikdervse%29 is not a comparison expression.


On the other hand I get successfull 200 OK for below call

GET /api/query?type=vApp&filter=(vdcName==sikdervse)&format=records


Only difference is that in first failing GET call, reserved characters like '(', '=', '=' & ')' are URLEncoded or Percent Encoded. Why is VCD throwing error when URLs are encoded using Percent encoding as per W3 standards. How can we make VCD accept encoded URLs?


Using vCloud Director 5.1.


Thanks,

Hemana

email: hemana.gouda@accenture.com




Viewing all articles
Browse latest Browse all 7719

Trending Articles



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