name | type | description |
---|---|---|
policyname | query | |
servicename | query | |
zoneName | query |
DELETE /public/v2/api/policy
Content-Type: */*
...
HTTP/1.1 204 No Content
media type | data type | description |
---|---|---|
application/json | array of RangerPolicy (JSON) |
GET /public/v2/api/policy
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"zoneName" : "...",
"validitySchedules" : [ {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
} ],
"description" : "...",
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"resources" : {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
},
"resourceSignature" : "...",
"policyType" : 12345,
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"isAuditEnabled" : true,
"name" : "...",
"additionalResources" : [ {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
}, {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
} ],
"service" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"policyLabels" : [ "...", "..." ],
"options" : {
"property1" : { },
"property2" : { }
},
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyPriority" : 12345,
"isDenyAllElse" : true,
"serviceType" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
} ]
media type | data type |
---|---|
application/json | RangerPolicy (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerPolicy (JSON) |
POST /public/v2/api/policy
Content-Type: application/json
Accept: application/json
{
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"zoneName" : "...",
"validitySchedules" : [ {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
} ],
"description" : "...",
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"resources" : {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
},
"resourceSignature" : "...",
"policyType" : 12345,
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"isAuditEnabled" : true,
"name" : "...",
"additionalResources" : [ {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
}, {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
} ],
"service" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"policyLabels" : [ "...", "..." ],
"options" : {
"property1" : { },
"property2" : { }
},
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyPriority" : 12345,
"isDenyAllElse" : true,
"serviceType" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"zoneName" : "...",
"validitySchedules" : [ {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
} ],
"description" : "...",
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"resources" : {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
},
"resourceSignature" : "...",
"policyType" : 12345,
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"isAuditEnabled" : true,
"name" : "...",
"additionalResources" : [ {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
}, {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
} ],
"service" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"policyLabels" : [ "...", "..." ],
"options" : {
"property1" : { },
"property2" : { }
},
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyPriority" : 12345,
"isDenyAllElse" : true,
"serviceType" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
media type | data type | description |
---|---|---|
application/json | array of RangerRole (JSON) |
GET /public/v2/api/roles
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"createdByUser" : "...",
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"name" : "...",
"options" : {
"property1" : { },
"property2" : { }
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
} ]
name | type | description | default | constraints |
---|---|---|---|---|
createNonExistUserGroup | query | false | boolean | |
serviceName | query |
media type | data type |
---|---|
application/json | RangerRole (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerRole (JSON) |
POST /public/v2/api/roles
Content-Type: application/json
Accept: application/json
{
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"createdByUser" : "...",
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"name" : "...",
"options" : {
"property1" : { },
"property2" : { }
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"createdByUser" : "...",
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"name" : "...",
"options" : {
"property1" : { },
"property2" : { }
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
media type | data type | description |
---|---|---|
application/json | array of RangerService (JSON) |
GET /public/v2/api/service
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"description" : "...",
"tagVersion" : 12345,
"name" : "...",
"tagService" : "...",
"tagUpdateTime" : 12345,
"policyVersion" : 12345,
"type" : "...",
"displayName" : "...",
"policyUpdateTime" : 12345,
"configs" : {
"property1" : "...",
"property2" : "..."
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
} ]
media type | data type |
---|---|
application/json | RangerService (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerService (JSON) |
POST /public/v2/api/service
Content-Type: application/json
Accept: application/json
{
"description" : "...",
"tagVersion" : 12345,
"name" : "...",
"tagService" : "...",
"tagUpdateTime" : 12345,
"policyVersion" : 12345,
"type" : "...",
"displayName" : "...",
"policyUpdateTime" : 12345,
"configs" : {
"property1" : "...",
"property2" : "..."
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"description" : "...",
"tagVersion" : 12345,
"name" : "...",
"tagService" : "...",
"tagUpdateTime" : 12345,
"policyVersion" : 12345,
"type" : "...",
"displayName" : "...",
"policyUpdateTime" : 12345,
"configs" : {
"property1" : "...",
"property2" : "..."
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
media type | data type | description |
---|---|---|
application/json | array of RangerServiceHeaderInfo (JSON) |
GET /public/v2/api/service-headers
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"isGdsService" : true,
"isTagService" : true,
"displayName" : "...",
"type" : "...",
"name" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
} ]
media type | data type | description |
---|---|---|
application/json | array of RangerServiceDef (JSON) |
GET /public/v2/api/servicedef
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"rowFilterDef" : {
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "DELETE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ]
},
"name" : "...",
"contextEnrichers" : [ {
"name" : "...",
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"enricher" : "..."
}, {
"name" : "...",
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"enricher" : "..."
} ],
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ],
"rbKeyLabel" : "...",
"rbKeyDescription" : "...",
"enums" : [ {
"elements" : [ {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
}, {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
} ],
"defaultIndex" : 12345,
"name" : "...",
"itemId" : 12345
}, {
"elements" : [ {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
}, {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
} ],
"defaultIndex" : 12345,
"name" : "...",
"itemId" : 12345
} ],
"label" : "...",
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "MANAGE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "MANAGE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"dataMaskDef" : {
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ],
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "MANAGE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"maskTypes" : [ {
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"transformer" : "...",
"description" : "..."
}, {
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"transformer" : "...",
"description" : "..."
} ]
},
"description" : "...",
"configs" : [ {
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"mandatory" : true,
"description" : "...",
"subType" : "...",
"validationMessage" : "...",
"validationRegEx" : "...",
"label" : "...",
"type" : "...",
"rbKeyDescription" : "...",
"defaultValue" : "...",
"name" : "...",
"uiHint" : "...",
"itemId" : 12345
}, {
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"mandatory" : true,
"description" : "...",
"subType" : "...",
"validationMessage" : "...",
"validationRegEx" : "...",
"label" : "...",
"type" : "...",
"rbKeyDescription" : "...",
"defaultValue" : "...",
"name" : "...",
"uiHint" : "...",
"itemId" : 12345
} ],
"implClass" : "...",
"policyConditions" : [ {
"rbKeyValidationMessage" : "...",
"label" : "...",
"name" : "...",
"description" : "...",
"validationRegEx" : "...",
"validationMessage" : "...",
"evaluator" : "...",
"itemId" : 12345,
"rbKeyDescription" : "...",
"uiHint" : "...",
"rbKeyLabel" : "...",
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
}
}, {
"rbKeyValidationMessage" : "...",
"label" : "...",
"name" : "...",
"description" : "...",
"validationRegEx" : "...",
"validationMessage" : "...",
"evaluator" : "...",
"itemId" : 12345,
"rbKeyDescription" : "...",
"uiHint" : "...",
"rbKeyLabel" : "...",
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
}
} ],
"displayName" : "...",
"markerAccessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "DELETE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "CREATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"options" : {
"property1" : "...",
"property2" : "..."
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
} ]
media type | data type |
---|---|
application/json | RangerServiceDef (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerServiceDef (JSON) |
POST /public/v2/api/servicedef
Content-Type: application/json
Accept: application/json
{
"rowFilterDef" : {
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "CREATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ]
},
"name" : "...",
"contextEnrichers" : [ {
"name" : "...",
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"enricher" : "..."
}, {
"name" : "...",
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"enricher" : "..."
} ],
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ],
"rbKeyLabel" : "...",
"rbKeyDescription" : "...",
"enums" : [ {
"elements" : [ {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
}, {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
} ],
"defaultIndex" : 12345,
"name" : "...",
"itemId" : 12345
}, {
"elements" : [ {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
}, {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
} ],
"defaultIndex" : 12345,
"name" : "...",
"itemId" : 12345
} ],
"label" : "...",
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"dataMaskDef" : {
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ],
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "MANAGE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "MANAGE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"maskTypes" : [ {
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"transformer" : "...",
"description" : "..."
}, {
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"transformer" : "...",
"description" : "..."
} ]
},
"description" : "...",
"configs" : [ {
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"mandatory" : true,
"description" : "...",
"subType" : "...",
"validationMessage" : "...",
"validationRegEx" : "...",
"label" : "...",
"type" : "...",
"rbKeyDescription" : "...",
"defaultValue" : "...",
"name" : "...",
"uiHint" : "...",
"itemId" : 12345
}, {
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"mandatory" : true,
"description" : "...",
"subType" : "...",
"validationMessage" : "...",
"validationRegEx" : "...",
"label" : "...",
"type" : "...",
"rbKeyDescription" : "...",
"defaultValue" : "...",
"name" : "...",
"uiHint" : "...",
"itemId" : 12345
} ],
"implClass" : "...",
"policyConditions" : [ {
"rbKeyValidationMessage" : "...",
"label" : "...",
"name" : "...",
"description" : "...",
"validationRegEx" : "...",
"validationMessage" : "...",
"evaluator" : "...",
"itemId" : 12345,
"rbKeyDescription" : "...",
"uiHint" : "...",
"rbKeyLabel" : "...",
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
}
}, {
"rbKeyValidationMessage" : "...",
"label" : "...",
"name" : "...",
"description" : "...",
"validationRegEx" : "...",
"validationMessage" : "...",
"evaluator" : "...",
"itemId" : 12345,
"rbKeyDescription" : "...",
"uiHint" : "...",
"rbKeyLabel" : "...",
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
}
} ],
"displayName" : "...",
"markerAccessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "DELETE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "DELETE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"options" : {
"property1" : "...",
"property2" : "..."
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"rowFilterDef" : {
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ]
},
"name" : "...",
"contextEnrichers" : [ {
"name" : "...",
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"enricher" : "..."
}, {
"name" : "...",
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"enricher" : "..."
} ],
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ],
"rbKeyLabel" : "...",
"rbKeyDescription" : "...",
"enums" : [ {
"elements" : [ {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
}, {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
} ],
"defaultIndex" : 12345,
"name" : "...",
"itemId" : 12345
}, {
"elements" : [ {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
}, {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
} ],
"defaultIndex" : 12345,
"name" : "...",
"itemId" : 12345
} ],
"label" : "...",
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "CREATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "READ",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"dataMaskDef" : {
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ],
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "READ",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "READ",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"maskTypes" : [ {
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"transformer" : "...",
"description" : "..."
}, {
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"transformer" : "...",
"description" : "..."
} ]
},
"description" : "...",
"configs" : [ {
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"mandatory" : true,
"description" : "...",
"subType" : "...",
"validationMessage" : "...",
"validationRegEx" : "...",
"label" : "...",
"type" : "...",
"rbKeyDescription" : "...",
"defaultValue" : "...",
"name" : "...",
"uiHint" : "...",
"itemId" : 12345
}, {
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"mandatory" : true,
"description" : "...",
"subType" : "...",
"validationMessage" : "...",
"validationRegEx" : "...",
"label" : "...",
"type" : "...",
"rbKeyDescription" : "...",
"defaultValue" : "...",
"name" : "...",
"uiHint" : "...",
"itemId" : 12345
} ],
"implClass" : "...",
"policyConditions" : [ {
"rbKeyValidationMessage" : "...",
"label" : "...",
"name" : "...",
"description" : "...",
"validationRegEx" : "...",
"validationMessage" : "...",
"evaluator" : "...",
"itemId" : 12345,
"rbKeyDescription" : "...",
"uiHint" : "...",
"rbKeyLabel" : "...",
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
}
}, {
"rbKeyValidationMessage" : "...",
"label" : "...",
"name" : "...",
"description" : "...",
"validationRegEx" : "...",
"validationMessage" : "...",
"evaluator" : "...",
"itemId" : 12345,
"rbKeyDescription" : "...",
"uiHint" : "...",
"rbKeyLabel" : "...",
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
}
} ],
"displayName" : "...",
"markerAccessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "MANAGE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"options" : {
"property1" : "...",
"property2" : "..."
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
Get List of security zone header info. This API is authorized to every authenticated user.
media type | data type | description |
---|---|---|
application/json | array of RangerSecurityZoneHeaderInfo (JSON) | List of RangerSecurityZoneHeaderInfo if present. |
GET /public/v2/api/zone-headers
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"name" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
} ]
media type | data type | description |
---|---|---|
application/json | array of RangerSecurityZone (JSON) |
GET /public/v2/api/zones
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"services" : {
"property1" : {
"resourcesBaseInfo" : [ {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ],
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
},
"property2" : {
"resourcesBaseInfo" : [ {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ],
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
}
},
"auditUserGroups" : [ "...", "..." ],
"description" : "...",
"tagServices" : [ "...", "..." ],
"auditUsers" : [ "...", "..." ],
"adminUsers" : [ "...", "..." ],
"name" : "...",
"adminRoles" : [ "...", "..." ],
"auditRoles" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
} ]
media type | data type |
---|---|
application/json | RangerSecurityZone (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerSecurityZone (JSON) |
POST /public/v2/api/zones
Content-Type: application/json
Accept: application/json
{
"services" : {
"property1" : {
"resourcesBaseInfo" : [ {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ],
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
},
"property2" : {
"resourcesBaseInfo" : [ {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ],
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
}
},
"auditUserGroups" : [ "...", "..." ],
"description" : "...",
"tagServices" : [ "...", "..." ],
"auditUsers" : [ "...", "..." ],
"adminUsers" : [ "...", "..." ],
"name" : "...",
"adminRoles" : [ "...", "..." ],
"auditRoles" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"services" : {
"property1" : {
"resourcesBaseInfo" : [ {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ],
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
},
"property2" : {
"resourcesBaseInfo" : [ {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ],
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
}
},
"auditUserGroups" : [ "...", "..." ],
"description" : "...",
"tagServices" : [ "...", "..." ],
"auditUsers" : [ "...", "..." ],
"adminUsers" : [ "...", "..." ],
"name" : "...",
"adminRoles" : [ "...", "..." ],
"auditRoles" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
media type | data type | description |
---|---|---|
application/json | PListOfRangerSecurityZoneV2 (JSON) |
GET /public/v2/api/zones-v2
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"sortType" : "...",
"pageSize" : 12345,
"resultSize" : 12345,
"queryTimeMS" : 12345,
"sortBy" : "...",
"listSize" : 12345,
"totalCount" : 12345,
"startIndex" : 12345,
"list" : [ {
"description" : "...",
"admins" : [ {
"name" : "...",
"type" : "GROUP"
}, {
"name" : "...",
"type" : "GROUP"
} ],
"tagServices" : [ "...", "..." ],
"name" : "...",
"services" : {
"property1" : {
"resources" : [ { }, { } ]
},
"property2" : {
"resources" : [ { }, { } ]
}
},
"auditors" : [ {
"name" : "...",
"type" : "USER"
}, {
"name" : "...",
"type" : "ROLE"
} ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}, {
"description" : "...",
"admins" : [ {
"name" : "...",
"type" : "ROLE"
}, {
"name" : "...",
"type" : "GROUP"
} ],
"tagServices" : [ "...", "..." ],
"name" : "...",
"services" : {
"property1" : {
"resources" : [ { }, { } ]
},
"property2" : {
"resources" : [ { }, { } ]
}
},
"auditors" : [ {
"name" : "...",
"type" : "GROUP"
}, {
"name" : "...",
"type" : "USER"
} ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
} ]
}
media type | data type |
---|---|
application/json | RangerSecurityZoneV2 (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerSecurityZoneV2 (JSON) |
POST /public/v2/api/zones-v2
Content-Type: application/json
Accept: application/json
{
"description" : "...",
"admins" : [ {
"name" : "...",
"type" : "USER"
}, {
"name" : "...",
"type" : "GROUP"
} ],
"tagServices" : [ "...", "..." ],
"name" : "...",
"services" : {
"property1" : {
"resources" : [ {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ]
},
"property2" : {
"resources" : [ {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ]
}
},
"auditors" : [ {
"name" : "...",
"type" : "USER"
}, {
"name" : "...",
"type" : "GROUP"
} ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"description" : "...",
"admins" : [ {
"name" : "...",
"type" : "ROLE"
}, {
"name" : "...",
"type" : "USER"
} ],
"tagServices" : [ "...", "..." ],
"name" : "...",
"services" : {
"property1" : {
"resources" : [ {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ]
},
"property2" : {
"resources" : [ {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ]
}
},
"auditors" : [ {
"name" : "...",
"type" : "USER"
}, {
"name" : "...",
"type" : "USER"
} ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
media type | data type | description |
---|---|---|
application/json | array of RangerPluginInfo (JSON) |
GET /public/v2/api/plugins/info
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"ipAddress" : "...",
"info" : {
"property1" : "...",
"property2" : "..."
},
"hostName" : "...",
"serviceName" : "...",
"serviceDisplayName" : "...",
"serviceType" : "...",
"appType" : "...",
"updateTime" : 12345,
"id" : 12345,
"serviceTypeDisplayName" : "...",
"createTime" : 12345
} ]
name | type | description |
---|---|---|
serviceName | query |
media type | data type | description |
---|---|---|
application/json | array of number (JSON) |
DELETE /public/v2/api/policies/bulk
Content-Type: */*
Accept: application/json
...
HTTP/1.1 204 No Content
Content-Type: application/json
...
media type | data type |
---|---|
application/json | RangerPolicy (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerPolicy (JSON) |
POST /public/v2/api/policy/apply
Content-Type: application/json
Accept: application/json
{
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"zoneName" : "...",
"validitySchedules" : [ {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
} ],
"description" : "...",
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"resources" : {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
},
"resourceSignature" : "...",
"policyType" : 12345,
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"isAuditEnabled" : true,
"name" : "...",
"additionalResources" : [ {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
}, {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
} ],
"service" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"policyLabels" : [ "...", "..." ],
"options" : {
"property1" : { },
"property2" : { }
},
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyPriority" : 12345,
"isDenyAllElse" : true,
"serviceType" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"zoneName" : "...",
"validitySchedules" : [ {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
} ],
"description" : "...",
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"resources" : {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
},
"resourceSignature" : "...",
"policyType" : 12345,
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"isAuditEnabled" : true,
"name" : "...",
"additionalResources" : [ {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
}, {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
} ],
"service" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"policyLabels" : [ "...", "..." ],
"options" : {
"property1" : { },
"property2" : { }
},
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyPriority" : 12345,
"isDenyAllElse" : true,
"serviceType" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
DELETE /public/v2/api/policy/{id}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type | description |
---|---|---|
application/json | RangerPolicy (JSON) |
GET /public/v2/api/policy/{id}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"zoneName" : "...",
"validitySchedules" : [ {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
} ],
"description" : "...",
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"resources" : {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
},
"resourceSignature" : "...",
"policyType" : 12345,
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"isAuditEnabled" : true,
"name" : "...",
"additionalResources" : [ {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
}, {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
} ],
"service" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"policyLabels" : [ "...", "..." ],
"options" : {
"property1" : { },
"property2" : { }
},
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyPriority" : 12345,
"isDenyAllElse" : true,
"serviceType" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | RangerPolicy (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerPolicy (JSON) |
PUT /public/v2/api/policy/{id}
Content-Type: application/json
Accept: application/json
{
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"zoneName" : "...",
"validitySchedules" : [ {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
} ],
"description" : "...",
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"resources" : {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
},
"resourceSignature" : "...",
"policyType" : 12345,
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"isAuditEnabled" : true,
"name" : "...",
"additionalResources" : [ {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
}, {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
} ],
"service" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"policyLabels" : [ "...", "..." ],
"options" : {
"property1" : { },
"property2" : { }
},
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyPriority" : 12345,
"isDenyAllElse" : true,
"serviceType" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"zoneName" : "...",
"validitySchedules" : [ {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
} ],
"description" : "...",
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"resources" : {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
},
"resourceSignature" : "...",
"policyType" : 12345,
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"isAuditEnabled" : true,
"name" : "...",
"additionalResources" : [ {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
}, {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
} ],
"service" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"policyLabels" : [ "...", "..." ],
"options" : {
"property1" : { },
"property2" : { }
},
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyPriority" : 12345,
"isDenyAllElse" : true,
"serviceType" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description |
---|---|---|
execUser | query | |
serviceName | query |
media type | data type | description |
---|---|---|
application/json | array of string (JSON) |
GET /public/v2/api/roles/names
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
...
name | type | description | constraints |
---|---|---|---|
id | path | long |
DELETE /public/v2/api/roles/{id}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type | description |
---|---|---|
application/json | RangerRole (JSON) |
GET /public/v2/api/roles/{id}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"createdByUser" : "...",
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"name" : "...",
"options" : {
"property1" : { },
"property2" : { }
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description | default | constraints |
---|---|---|---|---|
id | path | long | ||
createNonExistUserGroup | query | false | boolean |
media type | data type |
---|---|
application/json | RangerRole (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerRole (JSON) |
PUT /public/v2/api/roles/{id}
Content-Type: application/json
Accept: application/json
{
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"createdByUser" : "...",
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"name" : "...",
"options" : {
"property1" : { },
"property2" : { }
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"createdByUser" : "...",
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"name" : "...",
"options" : {
"property1" : { },
"property2" : { }
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description | default | constraints |
---|---|---|---|---|
days | query | 7 | int |
DELETE /public/v2/api/server/policydeltas
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description | default | constraints |
---|---|---|---|---|
days | query | 7 | int |
DELETE /public/v2/api/server/tagdeltas
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description | constraints |
---|---|---|---|
id | path | long |
DELETE /public/v2/api/service/{id}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type | description |
---|---|---|
application/json | RangerService (JSON) |
GET /public/v2/api/service/{id}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"description" : "...",
"tagVersion" : 12345,
"name" : "...",
"tagService" : "...",
"tagUpdateTime" : 12345,
"policyVersion" : 12345,
"type" : "...",
"displayName" : "...",
"policyUpdateTime" : 12345,
"configs" : {
"property1" : "...",
"property2" : "..."
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | RangerService (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerService (JSON) |
PUT /public/v2/api/service/{id}
Content-Type: application/json
Accept: application/json
{
"description" : "...",
"tagVersion" : 12345,
"name" : "...",
"tagService" : "...",
"tagUpdateTime" : 12345,
"policyVersion" : 12345,
"type" : "...",
"displayName" : "...",
"policyUpdateTime" : 12345,
"configs" : {
"property1" : "...",
"property2" : "..."
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"description" : "...",
"tagVersion" : 12345,
"name" : "...",
"tagService" : "...",
"tagUpdateTime" : 12345,
"policyVersion" : 12345,
"type" : "...",
"displayName" : "...",
"policyUpdateTime" : 12345,
"configs" : {
"property1" : "...",
"property2" : "..."
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
DELETE /public/v2/api/servicedef/{id}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type | description |
---|---|---|
application/json | RangerServiceDef (JSON) |
GET /public/v2/api/servicedef/{id}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"rowFilterDef" : {
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "DELETE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "CREATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ]
},
"name" : "...",
"contextEnrichers" : [ {
"name" : "...",
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"enricher" : "..."
}, {
"name" : "...",
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"enricher" : "..."
} ],
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ],
"rbKeyLabel" : "...",
"rbKeyDescription" : "...",
"enums" : [ {
"elements" : [ {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
}, {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
} ],
"defaultIndex" : 12345,
"name" : "...",
"itemId" : 12345
}, {
"elements" : [ {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
}, {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
} ],
"defaultIndex" : 12345,
"name" : "...",
"itemId" : 12345
} ],
"label" : "...",
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "MANAGE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"dataMaskDef" : {
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ],
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "CREATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "MANAGE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"maskTypes" : [ {
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"transformer" : "...",
"description" : "..."
}, {
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"transformer" : "...",
"description" : "..."
} ]
},
"description" : "...",
"configs" : [ {
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"mandatory" : true,
"description" : "...",
"subType" : "...",
"validationMessage" : "...",
"validationRegEx" : "...",
"label" : "...",
"type" : "...",
"rbKeyDescription" : "...",
"defaultValue" : "...",
"name" : "...",
"uiHint" : "...",
"itemId" : 12345
}, {
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"mandatory" : true,
"description" : "...",
"subType" : "...",
"validationMessage" : "...",
"validationRegEx" : "...",
"label" : "...",
"type" : "...",
"rbKeyDescription" : "...",
"defaultValue" : "...",
"name" : "...",
"uiHint" : "...",
"itemId" : 12345
} ],
"implClass" : "...",
"policyConditions" : [ {
"rbKeyValidationMessage" : "...",
"label" : "...",
"name" : "...",
"description" : "...",
"validationRegEx" : "...",
"validationMessage" : "...",
"evaluator" : "...",
"itemId" : 12345,
"rbKeyDescription" : "...",
"uiHint" : "...",
"rbKeyLabel" : "...",
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
}
}, {
"rbKeyValidationMessage" : "...",
"label" : "...",
"name" : "...",
"description" : "...",
"validationRegEx" : "...",
"validationMessage" : "...",
"evaluator" : "...",
"itemId" : 12345,
"rbKeyDescription" : "...",
"uiHint" : "...",
"rbKeyLabel" : "...",
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
}
} ],
"displayName" : "...",
"markerAccessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "READ",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"options" : {
"property1" : "...",
"property2" : "..."
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | RangerServiceDef (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerServiceDef (JSON) |
PUT /public/v2/api/servicedef/{id}
Content-Type: application/json
Accept: application/json
{
"rowFilterDef" : {
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "MANAGE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "MANAGE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ]
},
"name" : "...",
"contextEnrichers" : [ {
"name" : "...",
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"enricher" : "..."
}, {
"name" : "...",
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"enricher" : "..."
} ],
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ],
"rbKeyLabel" : "...",
"rbKeyDescription" : "...",
"enums" : [ {
"elements" : [ {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
}, {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
} ],
"defaultIndex" : 12345,
"name" : "...",
"itemId" : 12345
}, {
"elements" : [ {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
}, {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
} ],
"defaultIndex" : 12345,
"name" : "...",
"itemId" : 12345
} ],
"label" : "...",
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "CREATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"dataMaskDef" : {
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ],
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "READ",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "READ",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"maskTypes" : [ {
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"transformer" : "...",
"description" : "..."
}, {
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"transformer" : "...",
"description" : "..."
} ]
},
"description" : "...",
"configs" : [ {
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"mandatory" : true,
"description" : "...",
"subType" : "...",
"validationMessage" : "...",
"validationRegEx" : "...",
"label" : "...",
"type" : "...",
"rbKeyDescription" : "...",
"defaultValue" : "...",
"name" : "...",
"uiHint" : "...",
"itemId" : 12345
}, {
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"mandatory" : true,
"description" : "...",
"subType" : "...",
"validationMessage" : "...",
"validationRegEx" : "...",
"label" : "...",
"type" : "...",
"rbKeyDescription" : "...",
"defaultValue" : "...",
"name" : "...",
"uiHint" : "...",
"itemId" : 12345
} ],
"implClass" : "...",
"policyConditions" : [ {
"rbKeyValidationMessage" : "...",
"label" : "...",
"name" : "...",
"description" : "...",
"validationRegEx" : "...",
"validationMessage" : "...",
"evaluator" : "...",
"itemId" : 12345,
"rbKeyDescription" : "...",
"uiHint" : "...",
"rbKeyLabel" : "...",
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
}
}, {
"rbKeyValidationMessage" : "...",
"label" : "...",
"name" : "...",
"description" : "...",
"validationRegEx" : "...",
"validationMessage" : "...",
"evaluator" : "...",
"itemId" : 12345,
"rbKeyDescription" : "...",
"uiHint" : "...",
"rbKeyLabel" : "...",
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
}
} ],
"displayName" : "...",
"markerAccessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "CREATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "READ",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"options" : {
"property1" : "...",
"property2" : "..."
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"rowFilterDef" : {
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "MANAGE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ]
},
"name" : "...",
"contextEnrichers" : [ {
"name" : "...",
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"enricher" : "..."
}, {
"name" : "...",
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"enricher" : "..."
} ],
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ],
"rbKeyLabel" : "...",
"rbKeyDescription" : "...",
"enums" : [ {
"elements" : [ {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
}, {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
} ],
"defaultIndex" : 12345,
"name" : "...",
"itemId" : 12345
}, {
"elements" : [ {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
}, {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
} ],
"defaultIndex" : 12345,
"name" : "...",
"itemId" : 12345
} ],
"label" : "...",
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "READ",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"dataMaskDef" : {
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ],
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "MANAGE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "CREATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"maskTypes" : [ {
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"transformer" : "...",
"description" : "..."
}, {
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"transformer" : "...",
"description" : "..."
} ]
},
"description" : "...",
"configs" : [ {
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"mandatory" : true,
"description" : "...",
"subType" : "...",
"validationMessage" : "...",
"validationRegEx" : "...",
"label" : "...",
"type" : "...",
"rbKeyDescription" : "...",
"defaultValue" : "...",
"name" : "...",
"uiHint" : "...",
"itemId" : 12345
}, {
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"mandatory" : true,
"description" : "...",
"subType" : "...",
"validationMessage" : "...",
"validationRegEx" : "...",
"label" : "...",
"type" : "...",
"rbKeyDescription" : "...",
"defaultValue" : "...",
"name" : "...",
"uiHint" : "...",
"itemId" : 12345
} ],
"implClass" : "...",
"policyConditions" : [ {
"rbKeyValidationMessage" : "...",
"label" : "...",
"name" : "...",
"description" : "...",
"validationRegEx" : "...",
"validationMessage" : "...",
"evaluator" : "...",
"itemId" : 12345,
"rbKeyDescription" : "...",
"uiHint" : "...",
"rbKeyLabel" : "...",
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
}
}, {
"rbKeyValidationMessage" : "...",
"label" : "...",
"name" : "...",
"description" : "...",
"validationRegEx" : "...",
"validationMessage" : "...",
"evaluator" : "...",
"itemId" : 12345,
"rbKeyDescription" : "...",
"uiHint" : "...",
"rbKeyLabel" : "...",
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
}
} ],
"displayName" : "...",
"markerAccessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "DELETE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"options" : {
"property1" : "...",
"property2" : "..."
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
DELETE /public/v2/api/zones/{id}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type | description |
---|---|---|
application/json | RangerSecurityZone (JSON) |
GET /public/v2/api/zones/{id}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"services" : {
"property1" : {
"resourcesBaseInfo" : [ {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ],
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
},
"property2" : {
"resourcesBaseInfo" : [ {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ],
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
}
},
"auditUserGroups" : [ "...", "..." ],
"description" : "...",
"tagServices" : [ "...", "..." ],
"auditUsers" : [ "...", "..." ],
"adminUsers" : [ "...", "..." ],
"name" : "...",
"adminRoles" : [ "...", "..." ],
"auditRoles" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | RangerSecurityZone (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerSecurityZone (JSON) |
PUT /public/v2/api/zones/{id}
Content-Type: application/json
Accept: application/json
{
"services" : {
"property1" : {
"resourcesBaseInfo" : [ {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ],
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
},
"property2" : {
"resourcesBaseInfo" : [ {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ],
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
}
},
"auditUserGroups" : [ "...", "..." ],
"description" : "...",
"tagServices" : [ "...", "..." ],
"auditUsers" : [ "...", "..." ],
"adminUsers" : [ "...", "..." ],
"name" : "...",
"adminRoles" : [ "...", "..." ],
"auditRoles" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"services" : {
"property1" : {
"resourcesBaseInfo" : [ {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ],
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
},
"property2" : {
"resourcesBaseInfo" : [ {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ],
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
}
},
"auditUserGroups" : [ "...", "..." ],
"description" : "...",
"tagServices" : [ "...", "..." ],
"auditUsers" : [ "...", "..." ],
"adminUsers" : [ "...", "..." ],
"name" : "...",
"adminRoles" : [ "...", "..." ],
"auditRoles" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type | description |
---|---|---|
application/json | RangerSecurityZoneV2 (JSON) |
GET /public/v2/api/zones-v2/{id}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"description" : "...",
"admins" : [ {
"name" : "...",
"type" : "USER"
}, {
"name" : "...",
"type" : "GROUP"
} ],
"tagServices" : [ "...", "..." ],
"name" : "...",
"services" : {
"property1" : {
"resources" : [ {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ]
},
"property2" : {
"resources" : [ {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ]
}
},
"auditors" : [ {
"name" : "...",
"type" : "ROLE"
}, {
"name" : "...",
"type" : "ROLE"
} ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | RangerSecurityZoneV2 (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerSecurityZoneV2 (JSON) |
PUT /public/v2/api/zones-v2/{id}
Content-Type: application/json
Accept: application/json
{
"description" : "...",
"admins" : [ {
"name" : "...",
"type" : "GROUP"
}, {
"name" : "...",
"type" : "ROLE"
} ],
"tagServices" : [ "...", "..." ],
"name" : "...",
"services" : {
"property1" : {
"resources" : [ {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ]
},
"property2" : {
"resources" : [ {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ]
}
},
"auditors" : [ {
"name" : "...",
"type" : "USER"
}, {
"name" : "...",
"type" : "GROUP"
} ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"description" : "...",
"admins" : [ {
"name" : "...",
"type" : "USER"
}, {
"name" : "...",
"type" : "USER"
} ],
"tagServices" : [ "...", "..." ],
"name" : "...",
"services" : {
"property1" : {
"resources" : [ {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ]
},
"property2" : {
"resources" : [ {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ]
}
},
"auditors" : [ {
"name" : "...",
"type" : "ROLE"
}, {
"name" : "...",
"type" : "USER"
} ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description | default |
---|---|---|---|
serviceDefName | path | ||
serviceName | query |
media type | data type | description |
---|---|---|
application/json | array of RangerPolicy (JSON) |
GET /public/v2/api/policies/{serviceDefName}/for-resource
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"zoneName" : "...",
"validitySchedules" : [ {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
} ],
"description" : "...",
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"resources" : {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
},
"resourceSignature" : "...",
"policyType" : 12345,
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"isAuditEnabled" : true,
"name" : "...",
"additionalResources" : [ {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
}, {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
} ],
"service" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"policyLabels" : [ "...", "..." ],
"options" : {
"property1" : { },
"property2" : { }
},
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyPriority" : 12345,
"isDenyAllElse" : true,
"serviceType" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
} ]
name | type | description | default |
---|---|---|---|
guid | path | ||
serviceName | query | ||
zoneName | query |
DELETE /public/v2/api/policy/guid/{guid}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description | default |
---|---|---|---|
guid | path | ||
ZoneName | query | ||
serviceName | query |
media type | data type | description |
---|---|---|
application/json | RangerPolicy (JSON) |
GET /public/v2/api/policy/guid/{guid}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"zoneName" : "...",
"validitySchedules" : [ {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
} ],
"description" : "...",
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"resources" : {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
},
"resourceSignature" : "...",
"policyType" : 12345,
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"isAuditEnabled" : true,
"name" : "...",
"additionalResources" : [ {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
}, {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
} ],
"service" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"policyLabels" : [ "...", "..." ],
"options" : {
"property1" : { },
"property2" : { }
},
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyPriority" : 12345,
"isDenyAllElse" : true,
"serviceType" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description |
---|---|---|
serviceName | path |
media type | data type |
---|---|
application/json | GrantRevokeRoleRequest (JSON) |
media type | data type | description |
---|---|---|
application/json | RESTResponse (JSON) |
PUT /public/v2/api/roles/grant/{serviceName}
Content-Type: application/json
Accept: application/json
{
"sessionId" : "...",
"clusterName" : "...",
"grantorGroups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"grantOption" : true,
"targetRoles" : [ "...", "..." ],
"users" : [ "...", "..." ],
"clientIPAddress" : "...",
"clientType" : "...",
"requestData" : "...",
"groups" : [ "...", "..." ],
"grantor" : "..."
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"httpStatusCode" : 12345,
"statusCode" : 12345,
"messageList" : [ {
"objectId" : 12345,
"fieldName" : "...",
"message" : "...",
"name" : "...",
"rbKey" : "..."
}, {
"objectId" : 12345,
"fieldName" : "...",
"message" : "...",
"name" : "...",
"rbKey" : "..."
} ],
"msgDesc" : "..."
}
name | type | description |
---|---|---|
name | path | |
execUser | query | |
serviceName | query |
DELETE /public/v2/api/roles/name/{name}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description |
---|---|---|
name | path | |
execUser | query | |
serviceName | query |
media type | data type | description |
---|---|---|
application/json | RangerRole (JSON) |
GET /public/v2/api/roles/name/{name}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"createdByUser" : "...",
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"name" : "...",
"options" : {
"property1" : { },
"property2" : { }
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description |
---|---|---|
serviceName | path |
media type | data type |
---|---|
application/json | GrantRevokeRoleRequest (JSON) |
media type | data type | description |
---|---|---|
application/json | RESTResponse (JSON) |
PUT /public/v2/api/roles/revoke/{serviceName}
Content-Type: application/json
Accept: application/json
{
"sessionId" : "...",
"clusterName" : "...",
"grantorGroups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"grantOption" : true,
"targetRoles" : [ "...", "..." ],
"users" : [ "...", "..." ],
"clientIPAddress" : "...",
"clientType" : "...",
"requestData" : "...",
"groups" : [ "...", "..." ],
"grantor" : "..."
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"httpStatusCode" : 12345,
"statusCode" : 12345,
"messageList" : [ {
"objectId" : 12345,
"fieldName" : "...",
"message" : "...",
"name" : "...",
"rbKey" : "..."
}, {
"objectId" : 12345,
"fieldName" : "...",
"message" : "...",
"name" : "...",
"rbKey" : "..."
} ],
"msgDesc" : "..."
}
name | type | description |
---|---|---|
user | path |
media type | data type | description |
---|---|---|
application/json | array of string (JSON) |
GET /public/v2/api/roles/user/{user}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
...
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | boolean (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerRole (JSON) |
PUT /public/v2/api/roles/{id}/addUsersAndGroups
Content-Type: application/json
Accept: application/json
...
HTTP/1.1 204 No Content
Content-Type: application/json
{
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"createdByUser" : "...",
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"name" : "...",
"options" : {
"property1" : { },
"property2" : { }
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | array of string (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerRole (JSON) |
PUT /public/v2/api/roles/{id}/removeAdminFromUsersAndGroups
Content-Type: application/json
Accept: application/json
...
HTTP/1.1 204 No Content
Content-Type: application/json
{
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"createdByUser" : "...",
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"name" : "...",
"options" : {
"property1" : { },
"property2" : { }
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | array of string (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerRole (JSON) |
PUT /public/v2/api/roles/{id}/removeUsersAndGroups
Content-Type: application/json
Accept: application/json
...
HTTP/1.1 204 No Content
Content-Type: application/json
{
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"createdByUser" : "...",
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"name" : "...",
"options" : {
"property1" : { },
"property2" : { }
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description | default | constraints |
---|---|---|---|---|
retentionDays | query | 180 | int | |
type | query |
media type | data type | description |
---|---|---|
application/json | array of RangerPurgeResult (JSON) | |
application/xml | list of rangerPurgeResult (XML) |
DELETE /public/v2/api/server/purge/records
Content-Type: */*
Accept: application/json
...
HTTP/1.1 204 No Content
Content-Type: application/json
[ {
"totalRecordCount" : 12345,
"purgedRecordCount" : 12345,
"recordType" : "..."
} ]
name | type | description |
---|---|---|
serviceName | path |
DELETE /public/v2/api/server/purgepolicies/{serviceName}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description |
---|---|---|
name | path |
DELETE /public/v2/api/service/name/{name}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description |
---|---|---|
name | path |
media type | data type | description |
---|---|---|
application/json | RangerService (JSON) |
GET /public/v2/api/service/name/{name}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"description" : "...",
"tagVersion" : 12345,
"name" : "...",
"tagService" : "...",
"tagUpdateTime" : 12345,
"policyVersion" : 12345,
"type" : "...",
"displayName" : "...",
"policyUpdateTime" : 12345,
"configs" : {
"property1" : "...",
"property2" : "..."
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description |
---|---|---|
name | path |
media type | data type |
---|---|
application/json | RangerService (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerService (JSON) |
PUT /public/v2/api/service/name/{name}
Content-Type: application/json
Accept: application/json
{
"description" : "...",
"tagVersion" : 12345,
"name" : "...",
"tagService" : "...",
"tagUpdateTime" : 12345,
"policyVersion" : 12345,
"type" : "...",
"displayName" : "...",
"policyUpdateTime" : 12345,
"configs" : {
"property1" : "...",
"property2" : "..."
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"description" : "...",
"tagVersion" : 12345,
"name" : "...",
"tagService" : "...",
"tagUpdateTime" : 12345,
"policyVersion" : 12345,
"type" : "...",
"displayName" : "...",
"policyUpdateTime" : 12345,
"configs" : {
"property1" : "...",
"property2" : "..."
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description |
---|---|---|
serviceName | path |
media type | data type | description |
---|---|---|
application/json | RangerServiceTags (JSON) |
GET /public/v2/api/service/{serviceName}/tags
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"op" : "...",
"tagDefinitions" : {
"property1" : {
"attributeDefs" : [ {
"name" : "...",
"type" : "..."
}, {
"name" : "...",
"type" : "..."
} ],
"source" : "...",
"name" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
},
"property2" : {
"attributeDefs" : [ {
"name" : "...",
"type" : "..."
}, {
"name" : "...",
"type" : "..."
} ],
"source" : "...",
"name" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
},
"tags" : {
"property1" : {
"owner" : 12345,
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"validityPeriods" : [ {
"endTime" : "...",
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "..."
} ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
},
"property2" : {
"owner" : 12345,
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"validityPeriods" : [ {
"endTime" : "...",
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "..."
} ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
},
"serviceResources" : [ {
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}, {
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
} ],
"tagVersion" : 12345,
"resourceToTagIds" : {
"property1" : [ 12345, 12345 ],
"property2" : [ 12345, 12345 ]
},
"tagUpdateTime" : 12345,
"serviceName" : "..."
}
name | type | description |
---|---|---|
serviceName | path |
media type | data type |
---|---|
application/json | RangerServiceTags (JSON) |
PUT /public/v2/api/service/{serviceName}/tags
Content-Type: application/json
{
"op" : "...",
"tagDefinitions" : {
"property1" : {
"attributeDefs" : [ {
"name" : "...",
"type" : "..."
}, {
"name" : "...",
"type" : "..."
} ],
"source" : "...",
"name" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
},
"property2" : {
"attributeDefs" : [ {
"name" : "...",
"type" : "..."
}, {
"name" : "...",
"type" : "..."
} ],
"source" : "...",
"name" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
},
"tags" : {
"property1" : {
"owner" : 12345,
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"validityPeriods" : [ {
"endTime" : "...",
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "..."
} ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
},
"property2" : {
"owner" : 12345,
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"validityPeriods" : [ {
"endTime" : "...",
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "..."
} ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
},
"serviceResources" : [ {
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}, {
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
} ],
"tagVersion" : 12345,
"resourceToTagIds" : {
"property1" : [ 12345, 12345 ],
"property2" : [ 12345, 12345 ]
},
"tagUpdateTime" : 12345,
"serviceName" : "..."
}
HTTP/1.1 204 No Content
name | type | description |
---|---|---|
servicename | path |
media type | data type | description |
---|---|---|
application/json | array of RangerPolicy (JSON) |
GET /public/v2/api/service/{servicename}/policy
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"zoneName" : "...",
"validitySchedules" : [ {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
} ],
"description" : "...",
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"resources" : {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
},
"resourceSignature" : "...",
"policyType" : 12345,
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"isAuditEnabled" : true,
"name" : "...",
"additionalResources" : [ {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
}, {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
} ],
"service" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"policyLabels" : [ "...", "..." ],
"options" : {
"property1" : { },
"property2" : { }
},
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyPriority" : 12345,
"isDenyAllElse" : true,
"serviceType" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
} ]
name | type | description |
---|---|---|
name | path |
DELETE /public/v2/api/servicedef/name/{name}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description |
---|---|---|
name | path |
media type | data type | description |
---|---|---|
application/json | RangerServiceDef (JSON) |
GET /public/v2/api/servicedef/name/{name}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"rowFilterDef" : {
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "CREATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ]
},
"name" : "...",
"contextEnrichers" : [ {
"name" : "...",
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"enricher" : "..."
}, {
"name" : "...",
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"enricher" : "..."
} ],
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ],
"rbKeyLabel" : "...",
"rbKeyDescription" : "...",
"enums" : [ {
"elements" : [ {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
}, {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
} ],
"defaultIndex" : 12345,
"name" : "...",
"itemId" : 12345
}, {
"elements" : [ {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
}, {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
} ],
"defaultIndex" : 12345,
"name" : "...",
"itemId" : 12345
} ],
"label" : "...",
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "READ",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "MANAGE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"dataMaskDef" : {
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ],
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "CREATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"maskTypes" : [ {
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"transformer" : "...",
"description" : "..."
}, {
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"transformer" : "...",
"description" : "..."
} ]
},
"description" : "...",
"configs" : [ {
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"mandatory" : true,
"description" : "...",
"subType" : "...",
"validationMessage" : "...",
"validationRegEx" : "...",
"label" : "...",
"type" : "...",
"rbKeyDescription" : "...",
"defaultValue" : "...",
"name" : "...",
"uiHint" : "...",
"itemId" : 12345
}, {
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"mandatory" : true,
"description" : "...",
"subType" : "...",
"validationMessage" : "...",
"validationRegEx" : "...",
"label" : "...",
"type" : "...",
"rbKeyDescription" : "...",
"defaultValue" : "...",
"name" : "...",
"uiHint" : "...",
"itemId" : 12345
} ],
"implClass" : "...",
"policyConditions" : [ {
"rbKeyValidationMessage" : "...",
"label" : "...",
"name" : "...",
"description" : "...",
"validationRegEx" : "...",
"validationMessage" : "...",
"evaluator" : "...",
"itemId" : 12345,
"rbKeyDescription" : "...",
"uiHint" : "...",
"rbKeyLabel" : "...",
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
}
}, {
"rbKeyValidationMessage" : "...",
"label" : "...",
"name" : "...",
"description" : "...",
"validationRegEx" : "...",
"validationMessage" : "...",
"evaluator" : "...",
"itemId" : 12345,
"rbKeyDescription" : "...",
"uiHint" : "...",
"rbKeyLabel" : "...",
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
}
} ],
"displayName" : "...",
"markerAccessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "DELETE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"options" : {
"property1" : "...",
"property2" : "..."
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description |
---|---|---|
name | path |
media type | data type |
---|---|
application/json | RangerServiceDef (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerServiceDef (JSON) |
PUT /public/v2/api/servicedef/name/{name}
Content-Type: application/json
Accept: application/json
{
"rowFilterDef" : {
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "CREATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ]
},
"name" : "...",
"contextEnrichers" : [ {
"name" : "...",
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"enricher" : "..."
}, {
"name" : "...",
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"enricher" : "..."
} ],
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ],
"rbKeyLabel" : "...",
"rbKeyDescription" : "...",
"enums" : [ {
"elements" : [ {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
}, {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
} ],
"defaultIndex" : 12345,
"name" : "...",
"itemId" : 12345
}, {
"elements" : [ {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
}, {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
} ],
"defaultIndex" : 12345,
"name" : "...",
"itemId" : 12345
} ],
"label" : "...",
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "DELETE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"dataMaskDef" : {
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ],
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "READ",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "READ",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"maskTypes" : [ {
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"transformer" : "...",
"description" : "..."
}, {
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"transformer" : "...",
"description" : "..."
} ]
},
"description" : "...",
"configs" : [ {
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"mandatory" : true,
"description" : "...",
"subType" : "...",
"validationMessage" : "...",
"validationRegEx" : "...",
"label" : "...",
"type" : "...",
"rbKeyDescription" : "...",
"defaultValue" : "...",
"name" : "...",
"uiHint" : "...",
"itemId" : 12345
}, {
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"mandatory" : true,
"description" : "...",
"subType" : "...",
"validationMessage" : "...",
"validationRegEx" : "...",
"label" : "...",
"type" : "...",
"rbKeyDescription" : "...",
"defaultValue" : "...",
"name" : "...",
"uiHint" : "...",
"itemId" : 12345
} ],
"implClass" : "...",
"policyConditions" : [ {
"rbKeyValidationMessage" : "...",
"label" : "...",
"name" : "...",
"description" : "...",
"validationRegEx" : "...",
"validationMessage" : "...",
"evaluator" : "...",
"itemId" : 12345,
"rbKeyDescription" : "...",
"uiHint" : "...",
"rbKeyLabel" : "...",
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
}
}, {
"rbKeyValidationMessage" : "...",
"label" : "...",
"name" : "...",
"description" : "...",
"validationRegEx" : "...",
"validationMessage" : "...",
"evaluator" : "...",
"itemId" : 12345,
"rbKeyDescription" : "...",
"uiHint" : "...",
"rbKeyLabel" : "...",
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
}
} ],
"displayName" : "...",
"markerAccessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "DELETE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "CREATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"options" : {
"property1" : "...",
"property2" : "..."
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"rowFilterDef" : {
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "DELETE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "DELETE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ]
},
"name" : "...",
"contextEnrichers" : [ {
"name" : "...",
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"enricher" : "..."
}, {
"name" : "...",
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"enricher" : "..."
} ],
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ],
"rbKeyLabel" : "...",
"rbKeyDescription" : "...",
"enums" : [ {
"elements" : [ {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
}, {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
} ],
"defaultIndex" : 12345,
"name" : "...",
"itemId" : 12345
}, {
"elements" : [ {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
}, {
"itemId" : 12345,
"label" : "...",
"rbKeyLabel" : "...",
"name" : "..."
} ],
"defaultIndex" : 12345,
"name" : "...",
"itemId" : 12345
} ],
"label" : "...",
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "CREATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"dataMaskDef" : {
"resources" : [ {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
}, {
"validationRegEx" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"type" : "...",
"validationMessage" : "...",
"parent" : "...",
"mandatory" : true,
"lookupSupported" : true,
"rbKeyValidationMessage" : "...",
"rbKeyDescription" : "...",
"level" : 12345,
"name" : "...",
"recursiveSupported" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"excludesSupported" : true,
"description" : "...",
"uiHint" : "...",
"matcher" : "...",
"itemId" : 12345,
"isValidLeaf" : true,
"label" : "..."
} ],
"accessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "READ",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"maskTypes" : [ {
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"transformer" : "...",
"description" : "..."
}, {
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"transformer" : "...",
"description" : "..."
} ]
},
"description" : "...",
"configs" : [ {
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"mandatory" : true,
"description" : "...",
"subType" : "...",
"validationMessage" : "...",
"validationRegEx" : "...",
"label" : "...",
"type" : "...",
"rbKeyDescription" : "...",
"defaultValue" : "...",
"name" : "...",
"uiHint" : "...",
"itemId" : 12345
}, {
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"mandatory" : true,
"description" : "...",
"subType" : "...",
"validationMessage" : "...",
"validationRegEx" : "...",
"label" : "...",
"type" : "...",
"rbKeyDescription" : "...",
"defaultValue" : "...",
"name" : "...",
"uiHint" : "...",
"itemId" : 12345
} ],
"implClass" : "...",
"policyConditions" : [ {
"rbKeyValidationMessage" : "...",
"label" : "...",
"name" : "...",
"description" : "...",
"validationRegEx" : "...",
"validationMessage" : "...",
"evaluator" : "...",
"itemId" : 12345,
"rbKeyDescription" : "...",
"uiHint" : "...",
"rbKeyLabel" : "...",
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
}
}, {
"rbKeyValidationMessage" : "...",
"label" : "...",
"name" : "...",
"description" : "...",
"validationRegEx" : "...",
"validationMessage" : "...",
"evaluator" : "...",
"itemId" : 12345,
"rbKeyDescription" : "...",
"uiHint" : "...",
"rbKeyLabel" : "...",
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
}
} ],
"displayName" : "...",
"markerAccessTypes" : [ {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "UPDATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
}, {
"rbKeyLabel" : "...",
"label" : "...",
"name" : "...",
"category" : "CREATE",
"impliedGrants" : [ "...", "..." ],
"itemId" : 12345
} ],
"options" : {
"property1" : "...",
"property2" : "..."
},
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description |
---|---|---|
serviceName | path |
media type | data type | description |
---|---|---|
application/json | array of string (JSON) |
GET /public/v2/api/zone-names/{serviceName}/resource
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
...
name | type | description |
---|---|---|
name | path |
DELETE /public/v2/api/zones/name/{name}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description |
---|---|---|
name | path |
media type | data type | description |
---|---|---|
application/json | RangerSecurityZone (JSON) |
GET /public/v2/api/zones/name/{name}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"services" : {
"property1" : {
"resourcesBaseInfo" : [ {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ],
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
},
"property2" : {
"resourcesBaseInfo" : [ {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ],
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
}
},
"auditUserGroups" : [ "...", "..." ],
"description" : "...",
"tagServices" : [ "...", "..." ],
"auditUsers" : [ "...", "..." ],
"adminUsers" : [ "...", "..." ],
"name" : "...",
"adminRoles" : [ "...", "..." ],
"auditRoles" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
Get service header info List for given zone. This API is authorized to every authenticated user.
name | type | description | constraints |
---|---|---|---|
zoneId | path | long |
media type | data type | description |
---|---|---|
application/json | array of RangerServiceHeaderInfo (JSON) | List of RangerServiceHeaderInfo for given zone if present. |
GET /public/v2/api/zones/{zoneId}/service-headers
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"isGdsService" : true,
"isTagService" : true,
"displayName" : "...",
"type" : "...",
"name" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
} ]
name | type | description |
---|---|---|
name | path |
media type | data type | description |
---|---|---|
application/json | RangerSecurityZoneV2 (JSON) |
GET /public/v2/api/zones-v2/name/{name}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"description" : "...",
"admins" : [ {
"name" : "...",
"type" : "USER"
}, {
"name" : "...",
"type" : "GROUP"
} ],
"tagServices" : [ "...", "..." ],
"name" : "...",
"services" : {
"property1" : {
"resources" : [ {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ]
},
"property2" : {
"resources" : [ {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ]
}
},
"auditors" : [ {
"name" : "...",
"type" : "ROLE"
}, {
"name" : "...",
"type" : "GROUP"
} ],
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | RangerSecurityZoneChangeRequest (JSON) |
media type | data type | description |
---|---|---|
application/json | boolean (JSON) |
PUT /public/v2/api/zones-v2/{id}/partial
Content-Type: application/json
Accept: application/json
{
"name" : "...",
"description" : "...",
"tagServicesToRemove" : [ "...", "..." ],
"adminsToRemove" : [ {
"name" : "...",
"type" : "ROLE"
}, {
"name" : "...",
"type" : "ROLE"
} ],
"auditorsToAdd" : [ {
"name" : "...",
"type" : "USER"
}, {
"name" : "...",
"type" : "GROUP"
} ],
"resourcesToRemove" : {
"property1" : {
"resources" : [ {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ]
},
"property2" : {
"resources" : [ {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ]
}
},
"adminsToAdd" : [ {
"name" : "...",
"type" : "ROLE"
}, {
"name" : "...",
"type" : "USER"
} ],
"resourcesToUpdate" : {
"property1" : {
"resources" : [ {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ]
},
"property2" : {
"resources" : [ {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ]
}
},
"tagServicesToAdd" : [ "...", "..." ],
"auditorsToRemove" : [ {
"name" : "...",
"type" : "ROLE"
}, {
"name" : "...",
"type" : "GROUP"
} ]
}
HTTP/1.1 204 No Content
Content-Type: application/json
...
name | type | description |
---|---|---|
policyname | path | |
servicename | path | |
zoneName | query |
media type | data type | description |
---|---|---|
application/json | RangerPolicy (JSON) |
GET /public/v2/api/service/{servicename}/policy/{policyname}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"zoneName" : "...",
"validitySchedules" : [ {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
} ],
"description" : "...",
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"resources" : {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
},
"resourceSignature" : "...",
"policyType" : 12345,
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"isAuditEnabled" : true,
"name" : "...",
"additionalResources" : [ {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
}, {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
} ],
"service" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"policyLabels" : [ "...", "..." ],
"options" : {
"property1" : { },
"property2" : { }
},
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyPriority" : 12345,
"isDenyAllElse" : true,
"serviceType" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
name | type | description |
---|---|---|
policyname | path | |
servicename | path | |
zoneName | query |
media type | data type |
---|---|
application/json | RangerPolicy (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerPolicy (JSON) |
PUT /public/v2/api/service/{servicename}/policy/{policyname}
Content-Type: application/json
Accept: application/json
{
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"zoneName" : "...",
"validitySchedules" : [ {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
} ],
"description" : "...",
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"resources" : {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
},
"resourceSignature" : "...",
"policyType" : 12345,
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"isAuditEnabled" : true,
"name" : "...",
"additionalResources" : [ {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
}, {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
} ],
"service" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"policyLabels" : [ "...", "..." ],
"options" : {
"property1" : { },
"property2" : { }
},
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyPriority" : 12345,
"isDenyAllElse" : true,
"serviceType" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"dataMaskInfo" : {
"valueExpr" : "...",
"conditionExpr" : "...",
"dataMaskType" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"zoneName" : "...",
"validitySchedules" : [ {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "..."
} ],
"description" : "...",
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"resources" : {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
},
"resourceSignature" : "...",
"policyType" : 12345,
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyItems" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"isAuditEnabled" : true,
"name" : "...",
"additionalResources" : [ {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
}, {
"property1" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
},
"property2" : {
"isRecursive" : true,
"isExcludes" : true,
"values" : [ "...", "..." ]
}
} ],
"service" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"policyLabels" : [ "...", "..." ],
"options" : {
"property1" : { },
"property2" : { }
},
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
}, {
"users" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true,
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ]
} ],
"policyPriority" : 12345,
"isDenyAllElse" : true,
"serviceType" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
}
Get List of security zone header info. This API is authorized to every authenticated user.
name | type | description | default | constraints |
---|---|---|---|---|
serviceId | path | long | ||
isTagService | query | false | boolean |
media type | data type | description |
---|---|---|
application/json | array of RangerSecurityZoneHeaderInfo (JSON) | List of RangerSecurityZoneHeaderInfo if present. |
GET /public/v2/api/zones/zone-headers/for-service/{serviceId}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"name" : "...",
"updatedBy" : "...",
"createdBy" : "...",
"isEnabled" : true,
"guid" : "...",
"createTime" : 12345,
"id" : 12345,
"version" : 12345,
"updateTime" : 12345
} ]
name | type | description | constraints |
---|---|---|---|
id | path | long | |
serviceName | path |
media type | data type | description |
---|---|---|
application/json | PListOfRangerSecurityZoneResource (JSON) |
GET /public/v2/api/zones-v2/{id}/resources/{serviceName}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"resultSize" : 12345,
"startIndex" : 12345,
"pageSize" : 12345,
"totalCount" : 12345,
"list" : [ {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ],
"listSize" : 12345,
"sortType" : "...",
"queryTimeMS" : 12345,
"sortBy" : "..."
}
name | type | description |
---|---|---|
name | path | |
serviceName | path |
media type | data type | description |
---|---|---|
application/json | PListOfRangerSecurityZoneResource (JSON) |
GET /public/v2/api/zones-v2/name/{name}/resources/{serviceName}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"resultSize" : 12345,
"startIndex" : 12345,
"pageSize" : 12345,
"totalCount" : 12345,
"list" : [ {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
}, {
"resource" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
},
"createTime" : 12345,
"id" : 12345,
"createdBy" : "...",
"updateTime" : 12345,
"updatedBy" : "..."
} ],
"listSize" : 12345,
"sortType" : "...",
"queryTimeMS" : 12345,
"sortBy" : "..."
}