media type | data type | description |
---|---|---|
application/json | RangerSecurityZoneList (JSON) | |
application/xml | rangerSecurityZoneList (XML) |
GET /zones/zones
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"securityZones" : [ {
"tagServices" : [ "...", "..." ],
"description" : "...",
"auditUsers" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"adminUsers" : [ "...", "..." ],
"name" : "...",
"services" : {
"property1" : {
"resources" : [ {
"property1" : [ ],
"property2" : [ ]
}, {
"property1" : [ ],
"property2" : [ ]
} ]
},
"property2" : {
"resources" : [ {
"property1" : [ ],
"property2" : [ ]
}, {
"property1" : [ ],
"property2" : [ ]
} ]
}
},
"auditUserGroups" : [ "...", "..." ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}, {
"tagServices" : [ "...", "..." ],
"description" : "...",
"auditUsers" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"adminUsers" : [ "...", "..." ],
"name" : "...",
"services" : {
"property1" : {
"resources" : [ {
"property1" : [ ],
"property2" : [ ]
}, {
"property1" : [ ],
"property2" : [ ]
} ]
},
"property2" : {
"resources" : [ {
"property1" : [ ],
"property2" : [ ]
}, {
"property1" : [ ],
"property2" : [ ]
} ]
}
},
"auditUserGroups" : [ "...", "..." ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
} ],
"listSize" : 12345,
"list" : [ { }, { } ],
"startIndex" : 12345,
"pageSize" : 12345,
"totalCount" : 12345,
"resultSize" : 12345,
"sortType" : "...",
"sortBy" : "..."
}
media type | data type |
---|---|
application/json | RangerSecurityZone (JSON) |
application/xml | rangerSecurityZone (XML) |
media type | data type | description |
---|---|---|
application/json | RangerSecurityZone (JSON) | |
application/xml | rangerSecurityZone (XML) |
POST /zones/zones
Content-Type: application/json
Accept: application/json
{
"tagServices" : [ "...", "..." ],
"description" : "...",
"auditUsers" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"adminUsers" : [ "...", "..." ],
"name" : "...",
"services" : {
"property1" : {
"resources" : [ {
"property1" : [ ],
"property2" : [ ]
}, {
"property1" : [ ],
"property2" : [ ]
} ]
},
"property2" : {
"resources" : [ {
"property1" : [ ],
"property2" : [ ]
}, {
"property1" : [ ],
"property2" : [ ]
} ]
}
},
"auditUserGroups" : [ "...", "..." ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"tagServices" : [ "...", "..." ],
"description" : "...",
"auditUsers" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"adminUsers" : [ "...", "..." ],
"name" : "...",
"services" : {
"property1" : {
"resources" : [ {
"property1" : [ ],
"property2" : [ ]
}, {
"property1" : [ ],
"property2" : [ ]
} ]
},
"property2" : {
"resources" : [ {
"property1" : [ ],
"property2" : [ ]
}, {
"property1" : [ ],
"property2" : [ ]
} ]
}
},
"auditUserGroups" : [ "...", "..." ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
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) | |
application/xml | rangerSecurityZone (XML) |
GET /zones/zones/{id}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"tagServices" : [ "...", "..." ],
"description" : "...",
"auditUsers" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"adminUsers" : [ "...", "..." ],
"name" : "...",
"services" : {
"property1" : {
"resources" : [ {
"property1" : [ ],
"property2" : [ ]
}, {
"property1" : [ ],
"property2" : [ ]
} ]
},
"property2" : {
"resources" : [ {
"property1" : [ ],
"property2" : [ ]
}, {
"property1" : [ ],
"property2" : [ ]
} ]
}
},
"auditUserGroups" : [ "...", "..." ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | RangerSecurityZone (JSON) |
application/xml | rangerSecurityZone (XML) |
media type | data type | description |
---|---|---|
application/json | RangerSecurityZone (JSON) | |
application/xml | rangerSecurityZone (XML) |
PUT /zones/zones/{id}
Content-Type: application/json
Accept: application/json
{
"tagServices" : [ "...", "..." ],
"description" : "...",
"auditUsers" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"adminUsers" : [ "...", "..." ],
"name" : "...",
"services" : {
"property1" : {
"resources" : [ {
"property1" : [ ],
"property2" : [ ]
}, {
"property1" : [ ],
"property2" : [ ]
} ]
},
"property2" : {
"resources" : [ {
"property1" : [ ],
"property2" : [ ]
}, {
"property1" : [ ],
"property2" : [ ]
} ]
}
},
"auditUserGroups" : [ "...", "..." ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"tagServices" : [ "...", "..." ],
"description" : "...",
"auditUsers" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"adminUsers" : [ "...", "..." ],
"name" : "...",
"services" : {
"property1" : {
"resources" : [ {
"property1" : [ ],
"property2" : [ ]
}, {
"property1" : [ ],
"property2" : [ ]
} ]
},
"property2" : {
"resources" : [ {
"property1" : [ ],
"property2" : [ ]
}, {
"property1" : [ ],
"property2" : [ ]
} ]
}
},
"auditUserGroups" : [ "...", "..." ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
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) | |
application/xml | rangerSecurityZone (XML) |
GET /zones/zones/name/{name}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"tagServices" : [ "...", "..." ],
"description" : "...",
"auditUsers" : [ "...", "..." ],
"adminUserGroups" : [ "...", "..." ],
"adminUsers" : [ "...", "..." ],
"name" : "...",
"services" : {
"property1" : {
"resources" : [ {
"property1" : [ ],
"property2" : [ ]
}, {
"property1" : [ ],
"property2" : [ ]
} ]
},
"property2" : {
"resources" : [ {
"property1" : [ ],
"property2" : [ ]
}, {
"property1" : [ ],
"property2" : [ ]
} ]
}
},
"auditUserGroups" : [ "...", "..." ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}