I have a few rulesets created via the UI and I am able to put it manually to the deployments. But I need to script it. Is there a bug or am I doing it wrong.
If so, navigate to the /region/ece-region/security page, and bring up the network console in the browser.
You should see a call like /api/v1/regions/ece-region/deployments/ip-filtering/rulesets?include_associations=true
Try curling that from the command line? If that works, try removing include_associations. Are you the same user when logging in via the UI as you are from the API?
This is it. I was logged in as my private user but tried to curl with the admin user.
My user is in the platform-admin role. Why are the rulesets not visible for other admins?
If I try curling with my user I get {"errors":[{"code":"root.unauthenticated","message":"The supplied authentication is invalid"}]}
I double checked my username and password. It is working in the UI but not with curl.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.