This document is a collection of all the important Ranger API needed to troubleshoot Ranger issues.
Note: this document is under progress.
curl --negotiate -ik -u : "http://`hostname -f`:8886/solr/admin/collections?action=CLUSTERSTATUS&collection=ranger_audits&wt=json&indent=on"
curl -u admin:admin http://`hostname -f`:6080/service/public/api/repository/{ID} -H 'Content-Type:application/json' > old-hive-service.json
curl -iv -k --negotiate -u : -H "Content-type:application/json" -X GET "https://`hostname -f`:6182/service/plugins/secure/policies/download/<reponame>"
curl -s -u admin:hadoop12345! -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://`hostname -f`:6080/service/xusers/users/24 > /tmp/curl.out
curl -u admin:hadoop12345! -v -i -s -X PUT -H "Accept: application/json" -H "Content-Type: application/json" http://`hostname -f`:6080/service/xusers/secure/users/24 -d @/tmp/curl.out
There are two roles in Ranger: ROLE_USER and ROLE_SYSADMIN. Replace the roles in the curl.out file above accordingly.