Skip to main content

Privacera Platform

REST API endpoints for working tags
:

Add Tag

curl -i -L -k -u admin:welcome1 \
-H "Content-type: application/json" \
-d @atlas_tag_test.json \
-X PUT http://<RANGER_HOST>:6080/service/tags/importservicetags

Get Tagged Resource

curl -i -L -k -u admin:welcome1 \
-H "Content-type: application/json" \
-X GET http://<RANGER_HOST>:6080/service/tags/resources

Delete Tagged Resource

curl -i -L -k -u admin:welcome1 \
-H "Content-type: application/json" \
-X GET http://<RANGER_HOST>:6080/service/tags/resources

Get ALL Tags

curl -i -L -k -u admin:welcome1 \
-H "Content-type: application/json" \
-X GET http://<RANGER_HOST>:6080/service/tags/tags

Get Tag by ID

>curl -i -L -k -u admin:welcome1 \
-H "Content-type: application/json" \
-X GET http://<RANGER_HOST>:6080/service/tags/tag/<id>
 

List All Tagged Resources

curl -i -L -k -u admin:welcome1 
-H "Content-type: application/json" 
-X GET http://<RANGER_HOST>:6080/service/tags/resources

List Tag-Resource Mapping

curl -i -L -k -u admin:welcome1 
-H "Content-type: application/json" 
-X GET http://<RANGER_HOST>:6080/service/tags/tagresourcemaps

Get Tagged Resources By ResourceID

curl -i -L -k -u admin:welcome1 
-H "Content-type: application/json" 
-X GET http://<RANGER_HOST>:6080/service/tags/resource/<resourceId>