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
[ {
"policyType" : 12345,
"description" : "...",
"policyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"validitySchedules" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"serviceType" : "...",
"additionalResources" : [ {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
}, {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
} ],
"policyPriority" : 12345,
"isAuditEnabled" : true,
"resourceSignature" : "...",
"name" : "...",
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"service" : "...",
"zoneName" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"isDenyAllElse" : true,
"policyLabels" : [ "...", "..." ],
"resources" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"policyType" : 12345,
"description" : "...",
"policyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"validitySchedules" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"serviceType" : "...",
"additionalResources" : [ {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
}, {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
} ],
"policyPriority" : 12345,
"isAuditEnabled" : true,
"resourceSignature" : "...",
"name" : "...",
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"service" : "...",
"zoneName" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"isDenyAllElse" : true,
"policyLabels" : [ "...", "..." ],
"resources" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"policyType" : 12345,
"description" : "...",
"policyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"validitySchedules" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"serviceType" : "...",
"additionalResources" : [ {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
}, {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
} ],
"policyPriority" : 12345,
"isAuditEnabled" : true,
"resourceSignature" : "...",
"name" : "...",
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"service" : "...",
"zoneName" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"isDenyAllElse" : true,
"policyLabels" : [ "...", "..." ],
"resources" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
[ {
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
[ {
"type" : "...",
"tagUpdateTime" : 12345,
"tagService" : "...",
"description" : "...",
"name" : "...",
"policyVersion" : 12345,
"policyUpdateTime" : 12345,
"displayName" : "...",
"tagVersion" : 12345,
"configs" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"type" : "...",
"tagUpdateTime" : 12345,
"tagService" : "...",
"description" : "...",
"name" : "...",
"policyVersion" : 12345,
"policyUpdateTime" : 12345,
"displayName" : "...",
"tagVersion" : 12345,
"configs" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"type" : "...",
"tagUpdateTime" : 12345,
"tagService" : "...",
"description" : "...",
"name" : "...",
"policyVersion" : 12345,
"policyUpdateTime" : 12345,
"displayName" : "...",
"tagVersion" : 12345,
"configs" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
[ {
"rbKeyLabel" : "...",
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ],
"contextEnrichers" : [ {
"enricher" : "...",
"name" : "...",
"itemId" : 12345,
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
}
}, {
"enricher" : "...",
"name" : "...",
"itemId" : 12345,
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
}
} ],
"description" : "...",
"implClass" : "...",
"enums" : [ {
"defaultIndex" : 12345,
"name" : "...",
"elements" : [ {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
}, {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
} ],
"itemId" : 12345
}, {
"defaultIndex" : 12345,
"name" : "...",
"elements" : [ {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
}, {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
} ],
"itemId" : 12345
} ],
"label" : "...",
"configs" : [ {
"itemId" : 12345,
"subType" : "...",
"type" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"defaultValue" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyValidationMessage" : "...",
"name" : "...",
"description" : "...",
"mandatory" : true,
"validationMessage" : "..."
}, {
"itemId" : 12345,
"subType" : "...",
"type" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"defaultValue" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyValidationMessage" : "...",
"name" : "...",
"description" : "...",
"mandatory" : true,
"validationMessage" : "..."
} ],
"options" : {
"property1" : "...",
"property2" : "..."
},
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"dataMaskDef" : {
"maskTypes" : [ {
"transformer" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"description" : "...",
"rbKeyDescription" : "..."
}, {
"transformer" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"description" : "...",
"rbKeyDescription" : "..."
} ],
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ]
},
"policyConditions" : [ {
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"description" : "...",
"validationMessage" : "...",
"label" : "...",
"name" : "...",
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyDescription" : "...",
"evaluator" : "..."
}, {
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"description" : "...",
"validationMessage" : "...",
"label" : "...",
"name" : "...",
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyDescription" : "...",
"evaluator" : "..."
} ],
"displayName" : "...",
"name" : "...",
"rowFilterDef" : {
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ]
},
"rbKeyDescription" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"rbKeyLabel" : "...",
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ],
"contextEnrichers" : [ {
"enricher" : "...",
"name" : "...",
"itemId" : 12345,
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
}
}, {
"enricher" : "...",
"name" : "...",
"itemId" : 12345,
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
}
} ],
"description" : "...",
"implClass" : "...",
"enums" : [ {
"defaultIndex" : 12345,
"name" : "...",
"elements" : [ {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
}, {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
} ],
"itemId" : 12345
}, {
"defaultIndex" : 12345,
"name" : "...",
"elements" : [ {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
}, {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
} ],
"itemId" : 12345
} ],
"label" : "...",
"configs" : [ {
"itemId" : 12345,
"subType" : "...",
"type" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"defaultValue" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyValidationMessage" : "...",
"name" : "...",
"description" : "...",
"mandatory" : true,
"validationMessage" : "..."
}, {
"itemId" : 12345,
"subType" : "...",
"type" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"defaultValue" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyValidationMessage" : "...",
"name" : "...",
"description" : "...",
"mandatory" : true,
"validationMessage" : "..."
} ],
"options" : {
"property1" : "...",
"property2" : "..."
},
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"dataMaskDef" : {
"maskTypes" : [ {
"transformer" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"description" : "...",
"rbKeyDescription" : "..."
}, {
"transformer" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"description" : "...",
"rbKeyDescription" : "..."
} ],
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ]
},
"policyConditions" : [ {
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"description" : "...",
"validationMessage" : "...",
"label" : "...",
"name" : "...",
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyDescription" : "...",
"evaluator" : "..."
}, {
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"description" : "...",
"validationMessage" : "...",
"label" : "...",
"name" : "...",
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyDescription" : "...",
"evaluator" : "..."
} ],
"displayName" : "...",
"name" : "...",
"rowFilterDef" : {
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ]
},
"rbKeyDescription" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"rbKeyLabel" : "...",
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ],
"contextEnrichers" : [ {
"enricher" : "...",
"name" : "...",
"itemId" : 12345,
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
}
}, {
"enricher" : "...",
"name" : "...",
"itemId" : 12345,
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
}
} ],
"description" : "...",
"implClass" : "...",
"enums" : [ {
"defaultIndex" : 12345,
"name" : "...",
"elements" : [ {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
}, {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
} ],
"itemId" : 12345
}, {
"defaultIndex" : 12345,
"name" : "...",
"elements" : [ {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
}, {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
} ],
"itemId" : 12345
} ],
"label" : "...",
"configs" : [ {
"itemId" : 12345,
"subType" : "...",
"type" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"defaultValue" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyValidationMessage" : "...",
"name" : "...",
"description" : "...",
"mandatory" : true,
"validationMessage" : "..."
}, {
"itemId" : 12345,
"subType" : "...",
"type" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"defaultValue" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyValidationMessage" : "...",
"name" : "...",
"description" : "...",
"mandatory" : true,
"validationMessage" : "..."
} ],
"options" : {
"property1" : "...",
"property2" : "..."
},
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"dataMaskDef" : {
"maskTypes" : [ {
"transformer" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"description" : "...",
"rbKeyDescription" : "..."
}, {
"transformer" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"description" : "...",
"rbKeyDescription" : "..."
} ],
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ]
},
"policyConditions" : [ {
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"description" : "...",
"validationMessage" : "...",
"label" : "...",
"name" : "...",
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyDescription" : "...",
"evaluator" : "..."
}, {
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"description" : "...",
"validationMessage" : "...",
"label" : "...",
"name" : "...",
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyDescription" : "...",
"evaluator" : "..."
} ],
"displayName" : "...",
"name" : "...",
"rowFilterDef" : {
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ]
},
"rbKeyDescription" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
[ {
"adminUsers" : [ "...", "..." ],
"auditUserGroups" : [ "...", "..." ],
"auditUsers" : [ "...", "..." ],
"description" : "...",
"services" : {
"property1" : {
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
},
"property2" : {
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
}
},
"name" : "...",
"tagServices" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"adminUsers" : [ "...", "..." ],
"auditUserGroups" : [ "...", "..." ],
"auditUsers" : [ "...", "..." ],
"description" : "...",
"services" : {
"property1" : {
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
},
"property2" : {
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
}
},
"name" : "...",
"tagServices" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"adminUsers" : [ "...", "..." ],
"auditUserGroups" : [ "...", "..." ],
"auditUsers" : [ "...", "..." ],
"description" : "...",
"services" : {
"property1" : {
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
},
"property2" : {
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
}
},
"name" : "...",
"tagServices" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
[ {
"updateTime" : 12345,
"createTime" : 12345,
"serviceName" : "...",
"serviceType" : "...",
"id" : 12345,
"serviceTypeDisplayName" : "...",
"hostName" : "...",
"ipAddress" : "...",
"appType" : "...",
"info" : {
"property1" : "...",
"property2" : "..."
},
"serviceDisplayName" : "..."
} ]
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
{
"policyType" : 12345,
"description" : "...",
"policyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"validitySchedules" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"serviceType" : "...",
"additionalResources" : [ {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
}, {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
} ],
"policyPriority" : 12345,
"isAuditEnabled" : true,
"resourceSignature" : "...",
"name" : "...",
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"service" : "...",
"zoneName" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"isDenyAllElse" : true,
"policyLabels" : [ "...", "..." ],
"resources" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"policyType" : 12345,
"description" : "...",
"policyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"validitySchedules" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"serviceType" : "...",
"additionalResources" : [ {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
}, {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
} ],
"policyPriority" : 12345,
"isAuditEnabled" : true,
"resourceSignature" : "...",
"name" : "...",
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"service" : "...",
"zoneName" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"isDenyAllElse" : true,
"policyLabels" : [ "...", "..." ],
"resources" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"policyType" : 12345,
"description" : "...",
"policyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"validitySchedules" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"serviceType" : "...",
"additionalResources" : [ {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
}, {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
} ],
"policyPriority" : 12345,
"isAuditEnabled" : true,
"resourceSignature" : "...",
"name" : "...",
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"service" : "...",
"zoneName" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"isDenyAllElse" : true,
"policyLabels" : [ "...", "..." ],
"resources" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"policyType" : 12345,
"description" : "...",
"policyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"validitySchedules" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"serviceType" : "...",
"additionalResources" : [ {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
}, {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
} ],
"policyPriority" : 12345,
"isAuditEnabled" : true,
"resourceSignature" : "...",
"name" : "...",
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"service" : "...",
"zoneName" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"isDenyAllElse" : true,
"policyLabels" : [ "...", "..." ],
"resources" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"policyType" : 12345,
"description" : "...",
"policyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"validitySchedules" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"serviceType" : "...",
"additionalResources" : [ {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
}, {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
} ],
"policyPriority" : 12345,
"isAuditEnabled" : true,
"resourceSignature" : "...",
"name" : "...",
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"service" : "...",
"zoneName" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"isDenyAllElse" : true,
"policyLabels" : [ "...", "..." ],
"resources" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"type" : "...",
"tagUpdateTime" : 12345,
"tagService" : "...",
"description" : "...",
"name" : "...",
"policyVersion" : 12345,
"policyUpdateTime" : 12345,
"displayName" : "...",
"tagVersion" : 12345,
"configs" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"type" : "...",
"tagUpdateTime" : 12345,
"tagService" : "...",
"description" : "...",
"name" : "...",
"policyVersion" : 12345,
"policyUpdateTime" : 12345,
"displayName" : "...",
"tagVersion" : 12345,
"configs" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"type" : "...",
"tagUpdateTime" : 12345,
"tagService" : "...",
"description" : "...",
"name" : "...",
"policyVersion" : 12345,
"policyUpdateTime" : 12345,
"displayName" : "...",
"tagVersion" : 12345,
"configs" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"rbKeyLabel" : "...",
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ],
"contextEnrichers" : [ {
"enricher" : "...",
"name" : "...",
"itemId" : 12345,
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
}
}, {
"enricher" : "...",
"name" : "...",
"itemId" : 12345,
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
}
} ],
"description" : "...",
"implClass" : "...",
"enums" : [ {
"defaultIndex" : 12345,
"name" : "...",
"elements" : [ {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
}, {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
} ],
"itemId" : 12345
}, {
"defaultIndex" : 12345,
"name" : "...",
"elements" : [ {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
}, {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
} ],
"itemId" : 12345
} ],
"label" : "...",
"configs" : [ {
"itemId" : 12345,
"subType" : "...",
"type" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"defaultValue" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyValidationMessage" : "...",
"name" : "...",
"description" : "...",
"mandatory" : true,
"validationMessage" : "..."
}, {
"itemId" : 12345,
"subType" : "...",
"type" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"defaultValue" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyValidationMessage" : "...",
"name" : "...",
"description" : "...",
"mandatory" : true,
"validationMessage" : "..."
} ],
"options" : {
"property1" : "...",
"property2" : "..."
},
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"dataMaskDef" : {
"maskTypes" : [ {
"transformer" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"description" : "...",
"rbKeyDescription" : "..."
}, {
"transformer" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"description" : "...",
"rbKeyDescription" : "..."
} ],
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ]
},
"policyConditions" : [ {
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"description" : "...",
"validationMessage" : "...",
"label" : "...",
"name" : "...",
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyDescription" : "...",
"evaluator" : "..."
}, {
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"description" : "...",
"validationMessage" : "...",
"label" : "...",
"name" : "...",
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyDescription" : "...",
"evaluator" : "..."
} ],
"displayName" : "...",
"name" : "...",
"rowFilterDef" : {
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ]
},
"rbKeyDescription" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"rbKeyLabel" : "...",
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ],
"contextEnrichers" : [ {
"enricher" : "...",
"name" : "...",
"itemId" : 12345,
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
}
}, {
"enricher" : "...",
"name" : "...",
"itemId" : 12345,
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
}
} ],
"description" : "...",
"implClass" : "...",
"enums" : [ {
"defaultIndex" : 12345,
"name" : "...",
"elements" : [ {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
}, {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
} ],
"itemId" : 12345
}, {
"defaultIndex" : 12345,
"name" : "...",
"elements" : [ {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
}, {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
} ],
"itemId" : 12345
} ],
"label" : "...",
"configs" : [ {
"itemId" : 12345,
"subType" : "...",
"type" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"defaultValue" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyValidationMessage" : "...",
"name" : "...",
"description" : "...",
"mandatory" : true,
"validationMessage" : "..."
}, {
"itemId" : 12345,
"subType" : "...",
"type" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"defaultValue" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyValidationMessage" : "...",
"name" : "...",
"description" : "...",
"mandatory" : true,
"validationMessage" : "..."
} ],
"options" : {
"property1" : "...",
"property2" : "..."
},
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"dataMaskDef" : {
"maskTypes" : [ {
"transformer" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"description" : "...",
"rbKeyDescription" : "..."
}, {
"transformer" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"description" : "...",
"rbKeyDescription" : "..."
} ],
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ]
},
"policyConditions" : [ {
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"description" : "...",
"validationMessage" : "...",
"label" : "...",
"name" : "...",
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyDescription" : "...",
"evaluator" : "..."
}, {
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"description" : "...",
"validationMessage" : "...",
"label" : "...",
"name" : "...",
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyDescription" : "...",
"evaluator" : "..."
} ],
"displayName" : "...",
"name" : "...",
"rowFilterDef" : {
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ]
},
"rbKeyDescription" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"rbKeyLabel" : "...",
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ],
"contextEnrichers" : [ {
"enricher" : "...",
"name" : "...",
"itemId" : 12345,
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
}
}, {
"enricher" : "...",
"name" : "...",
"itemId" : 12345,
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
}
} ],
"description" : "...",
"implClass" : "...",
"enums" : [ {
"defaultIndex" : 12345,
"name" : "...",
"elements" : [ {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
}, {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
} ],
"itemId" : 12345
}, {
"defaultIndex" : 12345,
"name" : "...",
"elements" : [ {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
}, {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
} ],
"itemId" : 12345
} ],
"label" : "...",
"configs" : [ {
"itemId" : 12345,
"subType" : "...",
"type" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"defaultValue" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyValidationMessage" : "...",
"name" : "...",
"description" : "...",
"mandatory" : true,
"validationMessage" : "..."
}, {
"itemId" : 12345,
"subType" : "...",
"type" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"defaultValue" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyValidationMessage" : "...",
"name" : "...",
"description" : "...",
"mandatory" : true,
"validationMessage" : "..."
} ],
"options" : {
"property1" : "...",
"property2" : "..."
},
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"dataMaskDef" : {
"maskTypes" : [ {
"transformer" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"description" : "...",
"rbKeyDescription" : "..."
}, {
"transformer" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"description" : "...",
"rbKeyDescription" : "..."
} ],
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ]
},
"policyConditions" : [ {
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"description" : "...",
"validationMessage" : "...",
"label" : "...",
"name" : "...",
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyDescription" : "...",
"evaluator" : "..."
}, {
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"description" : "...",
"validationMessage" : "...",
"label" : "...",
"name" : "...",
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyDescription" : "...",
"evaluator" : "..."
} ],
"displayName" : "...",
"name" : "...",
"rowFilterDef" : {
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ]
},
"rbKeyDescription" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"adminUsers" : [ "...", "..." ],
"auditUserGroups" : [ "...", "..." ],
"auditUsers" : [ "...", "..." ],
"description" : "...",
"services" : {
"property1" : {
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
},
"property2" : {
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
}
},
"name" : "...",
"tagServices" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"adminUsers" : [ "...", "..." ],
"auditUserGroups" : [ "...", "..." ],
"auditUsers" : [ "...", "..." ],
"description" : "...",
"services" : {
"property1" : {
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
},
"property2" : {
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
}
},
"name" : "...",
"tagServices" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"adminUsers" : [ "...", "..." ],
"auditUserGroups" : [ "...", "..." ],
"auditUsers" : [ "...", "..." ],
"description" : "...",
"services" : {
"property1" : {
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
},
"property2" : {
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
}
},
"name" : "...",
"tagServices" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
[ {
"policyType" : 12345,
"description" : "...",
"policyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"validitySchedules" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"serviceType" : "...",
"additionalResources" : [ {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
}, {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
} ],
"policyPriority" : 12345,
"isAuditEnabled" : true,
"resourceSignature" : "...",
"name" : "...",
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"service" : "...",
"zoneName" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"isDenyAllElse" : true,
"policyLabels" : [ "...", "..." ],
"resources" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"policyType" : 12345,
"description" : "...",
"policyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"validitySchedules" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"serviceType" : "...",
"additionalResources" : [ {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
}, {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
} ],
"policyPriority" : 12345,
"isAuditEnabled" : true,
"resourceSignature" : "...",
"name" : "...",
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"service" : "...",
"zoneName" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"isDenyAllElse" : true,
"policyLabels" : [ "...", "..." ],
"resources" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"grantOption" : true,
"clientIPAddress" : "...",
"users" : [ "...", "..." ],
"grantor" : "...",
"targetRoles" : [ "...", "..." ],
"requestData" : "...",
"sessionId" : "...",
"grantorGroups" : [ "...", "..." ],
"clusterName" : "...",
"roles" : [ "...", "..." ],
"clientType" : "...",
"groups" : [ "...", "..." ]
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"message" : "...",
"httpStatusCode" : 12345,
"msgDesc" : "...",
"statusCode" : 12345,
"messageList" : [ {
"objectId" : 12345,
"fieldName" : "...",
"message" : "...",
"name" : "...",
"rbKey" : "..."
}, {
"objectId" : 12345,
"fieldName" : "...",
"message" : "...",
"name" : "...",
"rbKey" : "..."
} ]
}
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
{
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"grantOption" : true,
"clientIPAddress" : "...",
"users" : [ "...", "..." ],
"grantor" : "...",
"targetRoles" : [ "...", "..." ],
"requestData" : "...",
"sessionId" : "...",
"grantorGroups" : [ "...", "..." ],
"clusterName" : "...",
"roles" : [ "...", "..." ],
"clientType" : "...",
"groups" : [ "...", "..." ]
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"message" : "...",
"httpStatusCode" : 12345,
"msgDesc" : "...",
"statusCode" : 12345,
"messageList" : [ {
"objectId" : 12345,
"fieldName" : "...",
"message" : "...",
"name" : "...",
"rbKey" : "..."
}, {
"objectId" : 12345,
"fieldName" : "...",
"message" : "...",
"name" : "...",
"rbKey" : "..."
} ]
}
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
{
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
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
{
"type" : "...",
"tagUpdateTime" : 12345,
"tagService" : "...",
"description" : "...",
"name" : "...",
"policyVersion" : 12345,
"policyUpdateTime" : 12345,
"displayName" : "...",
"tagVersion" : 12345,
"configs" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"type" : "...",
"tagUpdateTime" : 12345,
"tagService" : "...",
"description" : "...",
"name" : "...",
"policyVersion" : 12345,
"policyUpdateTime" : 12345,
"displayName" : "...",
"tagVersion" : 12345,
"configs" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"type" : "...",
"tagUpdateTime" : 12345,
"tagService" : "...",
"description" : "...",
"name" : "...",
"policyVersion" : 12345,
"policyUpdateTime" : 12345,
"displayName" : "...",
"tagVersion" : 12345,
"configs" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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" : [ {
"type" : "...",
"name" : "..."
}, {
"type" : "...",
"name" : "..."
} ],
"name" : "...",
"source" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
},
"property2" : {
"attributeDefs" : [ {
"type" : "...",
"name" : "..."
}, {
"type" : "...",
"name" : "..."
} ],
"name" : "...",
"source" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
},
"tagUpdateTime" : 12345,
"serviceName" : "...",
"tags" : {
"property1" : {
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
},
"property2" : {
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
},
"tagVersion" : 12345,
"serviceResources" : [ {
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}, {
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
} ],
"resourceToTagIds" : {
"property1" : [ 12345, 12345 ],
"property2" : [ 12345, 12345 ]
}
}
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" : [ {
"type" : "...",
"name" : "..."
}, {
"type" : "...",
"name" : "..."
} ],
"name" : "...",
"source" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
},
"property2" : {
"attributeDefs" : [ {
"type" : "...",
"name" : "..."
}, {
"type" : "...",
"name" : "..."
} ],
"name" : "...",
"source" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
},
"tagUpdateTime" : 12345,
"serviceName" : "...",
"tags" : {
"property1" : {
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
},
"property2" : {
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
},
"tagVersion" : 12345,
"serviceResources" : [ {
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}, {
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
} ],
"resourceToTagIds" : {
"property1" : [ 12345, 12345 ],
"property2" : [ 12345, 12345 ]
}
}
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
[ {
"policyType" : 12345,
"description" : "...",
"policyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"validitySchedules" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"serviceType" : "...",
"additionalResources" : [ {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
}, {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
} ],
"policyPriority" : 12345,
"isAuditEnabled" : true,
"resourceSignature" : "...",
"name" : "...",
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"service" : "...",
"zoneName" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"isDenyAllElse" : true,
"policyLabels" : [ "...", "..." ],
"resources" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"rbKeyLabel" : "...",
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ],
"contextEnrichers" : [ {
"enricher" : "...",
"name" : "...",
"itemId" : 12345,
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
}
}, {
"enricher" : "...",
"name" : "...",
"itemId" : 12345,
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
}
} ],
"description" : "...",
"implClass" : "...",
"enums" : [ {
"defaultIndex" : 12345,
"name" : "...",
"elements" : [ {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
}, {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
} ],
"itemId" : 12345
}, {
"defaultIndex" : 12345,
"name" : "...",
"elements" : [ {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
}, {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
} ],
"itemId" : 12345
} ],
"label" : "...",
"configs" : [ {
"itemId" : 12345,
"subType" : "...",
"type" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"defaultValue" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyValidationMessage" : "...",
"name" : "...",
"description" : "...",
"mandatory" : true,
"validationMessage" : "..."
}, {
"itemId" : 12345,
"subType" : "...",
"type" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"defaultValue" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyValidationMessage" : "...",
"name" : "...",
"description" : "...",
"mandatory" : true,
"validationMessage" : "..."
} ],
"options" : {
"property1" : "...",
"property2" : "..."
},
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"dataMaskDef" : {
"maskTypes" : [ {
"transformer" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"description" : "...",
"rbKeyDescription" : "..."
}, {
"transformer" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"description" : "...",
"rbKeyDescription" : "..."
} ],
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ]
},
"policyConditions" : [ {
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"description" : "...",
"validationMessage" : "...",
"label" : "...",
"name" : "...",
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyDescription" : "...",
"evaluator" : "..."
}, {
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"description" : "...",
"validationMessage" : "...",
"label" : "...",
"name" : "...",
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyDescription" : "...",
"evaluator" : "..."
} ],
"displayName" : "...",
"name" : "...",
"rowFilterDef" : {
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ]
},
"rbKeyDescription" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"rbKeyLabel" : "...",
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ],
"contextEnrichers" : [ {
"enricher" : "...",
"name" : "...",
"itemId" : 12345,
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
}
}, {
"enricher" : "...",
"name" : "...",
"itemId" : 12345,
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
}
} ],
"description" : "...",
"implClass" : "...",
"enums" : [ {
"defaultIndex" : 12345,
"name" : "...",
"elements" : [ {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
}, {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
} ],
"itemId" : 12345
}, {
"defaultIndex" : 12345,
"name" : "...",
"elements" : [ {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
}, {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
} ],
"itemId" : 12345
} ],
"label" : "...",
"configs" : [ {
"itemId" : 12345,
"subType" : "...",
"type" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"defaultValue" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyValidationMessage" : "...",
"name" : "...",
"description" : "...",
"mandatory" : true,
"validationMessage" : "..."
}, {
"itemId" : 12345,
"subType" : "...",
"type" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"defaultValue" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyValidationMessage" : "...",
"name" : "...",
"description" : "...",
"mandatory" : true,
"validationMessage" : "..."
} ],
"options" : {
"property1" : "...",
"property2" : "..."
},
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"dataMaskDef" : {
"maskTypes" : [ {
"transformer" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"description" : "...",
"rbKeyDescription" : "..."
}, {
"transformer" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"description" : "...",
"rbKeyDescription" : "..."
} ],
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ]
},
"policyConditions" : [ {
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"description" : "...",
"validationMessage" : "...",
"label" : "...",
"name" : "...",
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyDescription" : "...",
"evaluator" : "..."
}, {
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"description" : "...",
"validationMessage" : "...",
"label" : "...",
"name" : "...",
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyDescription" : "...",
"evaluator" : "..."
} ],
"displayName" : "...",
"name" : "...",
"rowFilterDef" : {
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ]
},
"rbKeyDescription" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"rbKeyLabel" : "...",
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ],
"contextEnrichers" : [ {
"enricher" : "...",
"name" : "...",
"itemId" : 12345,
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
}
}, {
"enricher" : "...",
"name" : "...",
"itemId" : 12345,
"enricherOptions" : {
"property1" : "...",
"property2" : "..."
}
} ],
"description" : "...",
"implClass" : "...",
"enums" : [ {
"defaultIndex" : 12345,
"name" : "...",
"elements" : [ {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
}, {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
} ],
"itemId" : 12345
}, {
"defaultIndex" : 12345,
"name" : "...",
"elements" : [ {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
}, {
"name" : "...",
"label" : "...",
"rbKeyLabel" : "...",
"itemId" : 12345
} ],
"itemId" : 12345
} ],
"label" : "...",
"configs" : [ {
"itemId" : 12345,
"subType" : "...",
"type" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"defaultValue" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyValidationMessage" : "...",
"name" : "...",
"description" : "...",
"mandatory" : true,
"validationMessage" : "..."
}, {
"itemId" : 12345,
"subType" : "...",
"type" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"rbKeyLabel" : "...",
"defaultValue" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyValidationMessage" : "...",
"name" : "...",
"description" : "...",
"mandatory" : true,
"validationMessage" : "..."
} ],
"options" : {
"property1" : "...",
"property2" : "..."
},
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"dataMaskDef" : {
"maskTypes" : [ {
"transformer" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"description" : "...",
"rbKeyDescription" : "..."
}, {
"transformer" : "...",
"dataMaskOptions" : {
"property1" : "...",
"property2" : "..."
},
"rbKeyLabel" : "...",
"itemId" : 12345,
"label" : "...",
"name" : "...",
"description" : "...",
"rbKeyDescription" : "..."
} ],
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ]
},
"policyConditions" : [ {
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"description" : "...",
"validationMessage" : "...",
"label" : "...",
"name" : "...",
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyDescription" : "...",
"evaluator" : "..."
}, {
"evaluatorOptions" : {
"property1" : "...",
"property2" : "..."
},
"itemId" : 12345,
"description" : "...",
"validationMessage" : "...",
"label" : "...",
"name" : "...",
"rbKeyValidationMessage" : "...",
"rbKeyLabel" : "...",
"validationRegEx" : "...",
"uiHint" : "...",
"rbKeyDescription" : "...",
"evaluator" : "..."
} ],
"displayName" : "...",
"name" : "...",
"rowFilterDef" : {
"accessTypes" : [ {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
}, {
"name" : "...",
"label" : "...",
"itemId" : 12345,
"impliedGrants" : [ "...", "..." ],
"rbKeyLabel" : "..."
} ],
"resources" : [ {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
}, {
"type" : "...",
"matcherOptions" : {
"property1" : "...",
"property2" : "..."
},
"excludesSupported" : true,
"parent" : "...",
"name" : "...",
"validationRegEx" : "...",
"level" : 12345,
"lookupSupported" : true,
"itemId" : 12345,
"validationMessage" : "...",
"mandatory" : true,
"accessTypeRestrictions" : [ "...", "..." ],
"uiHint" : "...",
"description" : "...",
"matcher" : "...",
"rbKeyValidationMessage" : "...",
"label" : "...",
"rbKeyDescription" : "...",
"isValidLeaf" : true,
"rbKeyLabel" : "...",
"recursiveSupported" : true
} ]
},
"rbKeyDescription" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"adminUsers" : [ "...", "..." ],
"auditUserGroups" : [ "...", "..." ],
"auditUsers" : [ "...", "..." ],
"description" : "...",
"services" : {
"property1" : {
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
},
"property2" : {
"resources" : [ {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}, {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
} ]
}
},
"name" : "...",
"tagServices" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
[ {
"isTagService" : true,
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
} ]
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
{
"policyType" : 12345,
"description" : "...",
"policyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"validitySchedules" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"serviceType" : "...",
"additionalResources" : [ {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
}, {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
} ],
"policyPriority" : 12345,
"isAuditEnabled" : true,
"resourceSignature" : "...",
"name" : "...",
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"service" : "...",
"zoneName" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"isDenyAllElse" : true,
"policyLabels" : [ "...", "..." ],
"resources" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 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
{
"policyType" : 12345,
"description" : "...",
"policyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"validitySchedules" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"serviceType" : "...",
"additionalResources" : [ {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
}, {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
} ],
"policyPriority" : 12345,
"isAuditEnabled" : true,
"resourceSignature" : "...",
"name" : "...",
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"service" : "...",
"zoneName" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"isDenyAllElse" : true,
"policyLabels" : [ "...", "..." ],
"resources" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"policyType" : 12345,
"description" : "...",
"policyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"validitySchedules" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"dataMaskPolicyItems" : [ {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"dataMaskInfo" : {
"conditionExpr" : "...",
"dataMaskType" : "...",
"valueExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"serviceType" : "...",
"additionalResources" : [ {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
}, {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
} ],
"policyPriority" : 12345,
"isAuditEnabled" : true,
"resourceSignature" : "...",
"name" : "...",
"allowExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"service" : "...",
"zoneName" : "...",
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"denyPolicyItems" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"denyExceptions" : [ {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"isDenyAllElse" : true,
"policyLabels" : [ "...", "..." ],
"resources" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"rowFilterPolicyItems" : [ {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
}, {
"rowFilterInfo" : {
"filterExpr" : "..."
},
"users" : [ "...", "..." ],
"accesses" : [ {
"isAllowed" : true,
"type" : "..."
}, {
"isAllowed" : true,
"type" : "..."
} ],
"groups" : [ "...", "..." ],
"roles" : [ "...", "..." ],
"conditions" : [ {
"values" : [ "...", "..." ],
"type" : "..."
}, {
"values" : [ "...", "..." ],
"type" : "..."
} ],
"delegateAdmin" : true
} ],
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}