Getting error Unsupported query parameter 'order-by'

asked 2017-03-06 09:18:07 -0600

I have the following curl code (server names removed) but I'm getting an error on the order-by. It's pretty basic syntax and I can't figure out why. Any ideas?

curl -X GET https://server1.domain.com:8081/pdb/q... --cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem --cert /etc/puppetlabs/puppet/ssl/certs//server2.domain.com.pem --key /etc/puppetlabs/puppet/ssl/private_keys/server2.domain.com.pem --data-urlencode 'order-by=[{"field": "certname", "order": "asc"}]'

edit retag flag offensive close merge delete