vmware-samples / nsx-t

Sample code for NSX-T APIs
Other
67 stars 27 forks source link

Example for quering rules a security policy that contains a special character #41

Open korzakovYa91 opened 2 months ago

korzakovYa91 commented 2 months ago

Is your feature request related to a problem? Please describe.

Hi, I have a security policy that its id contains a European character : ä, "exämple". When trying to query this security policy rules I get a "bad-request" response from the NSX. This is how I run it:

https:///policy/api/v1/infra/domains/default/security-policies/exämple/rules?sort_by=sequence

And the response I get: { "module_name": "common-services", "error_message": "The servletPath was rejected because it can only contain printable ASCII characters.", "error_code": 400 }

Tried encoding the special char, tried using curl, nothing helps, any possible solution you can think of?

Describe the solution you'd like

An example on how to query this policy rules.

Describe alternatives you've considered

No response

Additional context

No response