SecurityZoneREST Resource

GET /zones/zones

Response Body
media type data type description
application/json RangerSecurityZoneList (JSON)

Example

Request
GET /zones/zones
Content-Type: */*
Accept: application/json

                
...
                
              
Response
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" : "..."
}
                
              

POST /zones/zones

Request Body
media type data type
application/json RangerSecurityZone (JSON)
Response Body
media type data type description
application/json RangerSecurityZone (JSON)

Example

Request
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
}
                
              
Response
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
}
                
              

DELETE /zones/zones/{id}

Request Parameters
name type description constraints
id path long

Example

Request
DELETE /zones/zones/{id}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

GET /zones/zones/{id}

Request Parameters
name type description constraints
id path long
Response Body
media type data type description
application/json RangerSecurityZone (JSON)

Example

Request
GET /zones/zones/{id}
Content-Type: */*
Accept: application/json

                
...
                
              
Response
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
}
                
              

PUT /zones/zones/{id}

Request Parameters
name type description constraints
id path long
Request Body
media type data type
application/json RangerSecurityZone (JSON)
Response Body
media type data type description
application/json RangerSecurityZone (JSON)

Example

Request
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
}
                
              
Response
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
}
                
              

GET /zones/zone-names/{serviceName}/resource

Request Parameters
name type description
serviceName path
Response Body
media type data type description
application/json array of string (JSON)

Example

Request
GET /zones/zone-names/{serviceName}/resource
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

DELETE /zones/zones/name/{name}

Request Parameters
name type description
name path

Example

Request
DELETE /zones/zones/name/{name}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

GET /zones/zones/name/{name}

Request Parameters
name type description
name path
Response Body
media type data type description
application/json RangerSecurityZone (JSON)

Example

Request
GET /zones/zones/name/{name}
Content-Type: */*
Accept: application/json

                
...
                
              
Response
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
}