AnsweredAssumed Answered

RESTMan Policies listing

Question asked by PhBrand on Feb 27, 2017
Latest reply on Feb 28, 2017 by Mark_HE

Hi,

 

I'm wondering where we went wrong on this one, or if this is a feature/bug.

 

Our administration framework defined a function

 

getPoliciesById

which calls getPolicies, initiating a 'List' method call:

 

/usr/bin/curl -k -X GET -H 'Accept: application/xml' -H 'Content-Type: application/xml' -u 'xxxx@yyyyyy' --cacert /etc/pki/tls/private/CA_chain.pem 'https://the_host:7443/restman/1.0/policies?guid=95e3b9885eb49938444df31fa0d15c78'

 

This returns an empty list.

 

If we use Get method:

 

/usr/bin/curl -k -X GET -H 'Accept: application/xml' -H 'Content-Type: application/xml' -u 'xxxxx@yyyyyy' --cacert /etc/pki/tls/private/CA_chain.pem 'https://the_host:7443/restman/1.0/policies/95e3b9885eb49938444df31fa0d15c78'

 

returns a valid list with one item

 

Can't we use List method filtering on guid ?

Outcomes