media type | data type | description |
---|---|---|
application/json | RangerSecurityZoneList (JSON) |
GET /zones/zones
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"securityZones" : [ {
"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
}, {
"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
} ],
"listSize" : 12345,
"list" : [ { }, { } ],
"startIndex" : 12345,
"pageSize" : 12345,
"totalCount" : 12345,
"resultSize" : 12345,
"sortType" : "...",
"sortBy" : "..."
}
media type | data type |
---|---|
application/json | RangerSecurityZone (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerSecurityZone (JSON) |
POST /zones/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
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
DELETE /zones/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 /zones/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 /zones/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 |
---|---|---|
serviceName | path |
media type | data type | description |
---|---|---|
application/json | array of string (JSON) |
GET /zones/zone-names/{serviceName}/resource
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
...
name | type | description |
---|---|---|
name | path |
DELETE /zones/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 /zones/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
}