List uuid with curl based on a fact.

Latest response

Hi,

so what I`m trying to do is get the uuid of all hosts that have a particular hostname.

curl  -u user:pass -k "https://subscription.rhn.redhat.com/subscription/consumers?owner=3614426&fact=uname.nodename:testhost"

but I get {"displayMessage":"Insufficient permissions","requestUuid":"c2bffd6f-f4be-4bde-ad20-8e9bb5759a1e"}

Does anybody know what exactly I`m doing wrong. I have been reading this http://www.candlepinproject.org/docs/candlepin/consumer_fact_lookup.html .

Responses