Jump to content
Welcome to our new Citrix community!

Nitro DELETE API all not work due to "Invalid args in query parameters"

Woody Wang

Recommended Posts

Hi team, I want to unbind and delete some resource by Nitro API.


Firstly, unbind a service from lbvserver by CURL.



Response: { "errorcode": -1, "message": "Invalid args in query parameters", "severity": "ERROR" }


Then, I use SDK to unbind, still failed. And I captured the HTTP request SDK sent:

Response: {"errorcode":-1,"message":"Invalid query parameters","severity":"ERROR"}


Neither CURL or SDK can unbind the resource, and they returned different errors... That's weird...




Then, delete an audit message action.


request captured from SDK:

Response: {"errorcode":-1,"message":"Invalid query parameters","severity":"ERROR"}


But according to API doc, HTTP requests shall be DELETE HTTP:// . It worked. I don't know why SDK failed.




Now, I don't know how to unbind or delete a resource. Do I really have to use SSH???




Link to comment
Share on other sites

  • 2 years later...

Hi, did you ever solve this? I have the same error (with Powershell Invoke-Restmethode when trying to delete sta bindings (http:// <netscaler-ip-address> /nitro/v1/config/vpnvserver_staserver_binding/ name_value<String> ? args=staserver: <String_value>)


HTTP/1.0 400 Bad Request
access-control-allow-credentials: false
access-control-allow-origin: *
cache-control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
connection: close
content-length: 111
content-type: application/json; charset=utf-8
date: Wed, 07 Jun 2023 15:01:21 GMT
expires: Thu, 19 Nov 1981 08:52:00 GMT
feature-policy: camera 'none'; microphone 'none'; geolocation 'none'
pragma: no-cache
referrer-policy: no-referrer
server: Apache
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block

{"errorcode":-1,"message":"Invaild query parameters [encode the special characters if any]","severity":"ERROR"}


Thank you

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...