Member since
11-30-2020
1
Post
0
Kudos Received
0
Solutions
12-01-2020
10:58 AM
I am trying to create Ranger hive row-level filter policies using Rest API. I am truying to use this bellow Json format but it is creating just regular hive policy instead of row-level filter policy. Any clue on the best Jason format ? curl -iv -u USERID:PASSWD -H "Content-Type: application/json" -X POST http://HOSTNAME001:6080/service/public/api/policy/ -d '{ "policyName": "RESTAPI_TEST", "databases": "Test_databse", "tables": "Test_table", "columns": "*", "udfs": "", "description": "Hive Row Level Filter Policy", "isEnabled": true, "isAuditEnabled": true, "rowFilterPolicyItems" : [ { "rowFilterInfo" : { "filterExpr" : "ROW_DVI = 02" }, "delegateAdmin" : false, "accesses" : [ { "type" : "Select", "isAllowed" : true } ], "users" : [ "USER_ID123" ] }]}'
... View more
Labels:
- Labels:
-
Apache Ranger