PublicAPIsv2 Resource

DELETE /public/v2/api/policy

Request Parameters
name type description
policyname query
servicename query
zoneName query

Example

Request
DELETE /public/v2/api/policy
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

GET /public/v2/api/policy

Response Body
media type data type description
application/json array of RangerPolicy (JSON)

Example

Request
GET /public/v2/api/policy
Content-Type: */*
Accept: application/json

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

POST /public/v2/api/policy

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

Example

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

GET /public/v2/api/roles

Response Body
media type data type description
application/json array of RangerRole (JSON)

Example

Request
GET /public/v2/api/roles
Content-Type: */*
Accept: application/json

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

POST /public/v2/api/roles

Request Parameters
name type description default constraints
createNonExistUserGroup query false boolean
serviceName query    
Request Body
media type data type
application/json RangerRole (JSON)
Response Body
media type data type description
application/json RangerRole (JSON)

Example

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

GET /public/v2/api/service

Response Body
media type data type description
application/json array of RangerService (JSON)

Example

Request
GET /public/v2/api/service
Content-Type: */*
Accept: application/json

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

POST /public/v2/api/service

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

Example

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

GET /public/v2/api/servicedef

Response Body
media type data type description
application/json array of RangerServiceDef (JSON)

Example

Request
GET /public/v2/api/servicedef
Content-Type: */*
Accept: application/json

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

POST /public/v2/api/servicedef

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

Example

Request
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
}
                
              
Response
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 /public/v2/api/zone-headers

Get List of security zone header info. This API is authorized to every authenticated user.

Response Body
media type data type description
application/json array of RangerSecurityZoneHeaderInfo (JSON) List of RangerSecurityZoneHeaderInfo if present.

Example

Request
GET /public/v2/api/zone-headers
Content-Type: */*
Accept: application/json

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

                
[ {
  "name" : "...",
  "guid" : "...",
  "isEnabled" : true,
  "createTime" : 12345,
  "createdBy" : "...",
  "updatedBy" : "...",
  "id" : 12345,
  "updateTime" : 12345,
  "version" : 12345
} ]
                
              

GET /public/v2/api/zones

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

Example

Request
GET /public/v2/api/zones
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
} ]
                
              

POST /public/v2/api/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 /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
}
                
              
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
}
                
              

GET /public/v2/api/plugins/info

Response Body
media type data type description
application/json array of RangerPluginInfo (JSON)

Example

Request
GET /public/v2/api/plugins/info
Content-Type: */*
Accept: application/json

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

POST /public/v2/api/policy/apply

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

Example

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

DELETE /public/v2/api/policy/{id}

Request Parameters
name type description constraints
id path long

Example

Request
DELETE /public/v2/api/policy/{id}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

GET /public/v2/api/policy/{id}

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

Example

Request
GET /public/v2/api/policy/{id}
Content-Type: */*
Accept: application/json

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

PUT /public/v2/api/policy/{id}

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

Example

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

GET /public/v2/api/roles/names

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

Example

Request
GET /public/v2/api/roles/names
Content-Type: */*
Accept: application/json

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

                
...
                
              

DELETE /public/v2/api/roles/{id}

Request Parameters
name type description constraints
id path long

Example

Request
DELETE /public/v2/api/roles/{id}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

GET /public/v2/api/roles/{id}

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

Example

Request
GET /public/v2/api/roles/{id}
Content-Type: */*
Accept: application/json

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

PUT /public/v2/api/roles/{id}

Request Parameters
name type description default constraints
id path   long
createNonExistUserGroup query false boolean
Request Body
media type data type
application/json RangerRole (JSON)
Response Body
media type data type description
application/json RangerRole (JSON)

Example

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

DELETE /public/v2/api/server/policydeltas

Request Parameters
name type description default constraints
days query 7 int

Example

Request
DELETE /public/v2/api/server/policydeltas
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

DELETE /public/v2/api/server/tagdeltas

Request Parameters
name type description default constraints
days query 7 int

Example

Request
DELETE /public/v2/api/server/tagdeltas
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

DELETE /public/v2/api/service/{id}

Request Parameters
name type description constraints
id path long

Example

Request
DELETE /public/v2/api/service/{id}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

GET /public/v2/api/service/{id}

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

Example

Request
GET /public/v2/api/service/{id}
Content-Type: */*
Accept: application/json

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

PUT /public/v2/api/service/{id}

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

Example

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

DELETE /public/v2/api/servicedef/{id}

Request Parameters
name type description constraints
id path long

Example

Request
DELETE /public/v2/api/servicedef/{id}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

GET /public/v2/api/servicedef/{id}

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

Example

Request
GET /public/v2/api/servicedef/{id}
Content-Type: */*
Accept: application/json

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

PUT /public/v2/api/servicedef/{id}

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

Example

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

DELETE /public/v2/api/zones/{id}

Request Parameters
name type description constraints
id path long

Example

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

                
...
                
              
Response
HTTP/1.1 204 No Content

              

GET /public/v2/api/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 /public/v2/api/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 /public/v2/api/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 /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
}
                
              
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 /public/v2/api/policies/{serviceDefName}/for-resource

Request Parameters
name type description default
serviceDefName path  
serviceName query
Response Body
media type data type description
application/json array of RangerPolicy (JSON)

Example

Request
GET /public/v2/api/policies/{serviceDefName}/for-resource
Content-Type: */*
Accept: application/json

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

DELETE /public/v2/api/policy/guid/{guid}

Request Parameters
name type description default
guid path  
serviceName query
zoneName query

Example

Request
DELETE /public/v2/api/policy/guid/{guid}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

GET /public/v2/api/policy/guid/{guid}

Request Parameters
name type description default
guid path  
ZoneName query
serviceName query
Response Body
media type data type description
application/json RangerPolicy (JSON)

Example

Request
GET /public/v2/api/policy/guid/{guid}
Content-Type: */*
Accept: application/json

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

PUT /public/v2/api/roles/grant/{serviceName}

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

Example

Request
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" : [ "...", "..." ]
}
                
              
Response
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" : "..."
  } ]
}
                
              

DELETE /public/v2/api/roles/name/{name}

Request Parameters
name type description
name path
execUser query
serviceName query

Example

Request
DELETE /public/v2/api/roles/name/{name}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

GET /public/v2/api/roles/name/{name}

Request Parameters
name type description
name path
execUser query
serviceName query
Response Body
media type data type description
application/json RangerRole (JSON)

Example

Request
GET /public/v2/api/roles/name/{name}
Content-Type: */*
Accept: application/json

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

PUT /public/v2/api/roles/revoke/{serviceName}

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

Example

Request
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" : [ "...", "..." ]
}
                
              
Response
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" : "..."
  } ]
}
                
              

GET /public/v2/api/roles/user/{user}

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

Example

Request
GET /public/v2/api/roles/user/{user}
Content-Type: */*
Accept: application/json

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

                
...
                
              

PUT /public/v2/api/roles/{id}/addUsersAndGroups

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

Example

Request
PUT /public/v2/api/roles/{id}/addUsersAndGroups
Content-Type: application/json
Accept: application/json

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

PUT /public/v2/api/roles/{id}/removeAdminFromUsersAndGroups

Request Parameters
name type description constraints
id path long
Request Body
media type data type
application/json array of string (JSON)
Response Body
media type data type description
application/json RangerRole (JSON)

Example

Request
PUT /public/v2/api/roles/{id}/removeAdminFromUsersAndGroups
Content-Type: application/json
Accept: application/json

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

PUT /public/v2/api/roles/{id}/removeUsersAndGroups

Request Parameters
name type description constraints
id path long
Request Body
media type data type
application/json array of string (JSON)
Response Body
media type data type description
application/json RangerRole (JSON)

Example

Request
PUT /public/v2/api/roles/{id}/removeUsersAndGroups
Content-Type: application/json
Accept: application/json

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

DELETE /public/v2/api/server/purgepolicies/{serviceName}

Request Parameters
name type description
serviceName path

Example

Request
DELETE /public/v2/api/server/purgepolicies/{serviceName}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

DELETE /public/v2/api/service/name/{name}

Request Parameters
name type description
name path

Example

Request
DELETE /public/v2/api/service/name/{name}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

GET /public/v2/api/service/name/{name}

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

Example

Request
GET /public/v2/api/service/name/{name}
Content-Type: */*
Accept: application/json

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

PUT /public/v2/api/service/name/{name}

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

Example

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

GET /public/v2/api/service/{serviceName}/tags

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

Example

Request
GET /public/v2/api/service/{serviceName}/tags
Content-Type: */*
Accept: application/json

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

PUT /public/v2/api/service/{serviceName}/tags

Request Parameters
name type description
serviceName path
Request Body
media type data type
application/json RangerServiceTags (JSON)

Example

Request
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 ]
  }
}
                
              
Response
HTTP/1.1 204 No Content

              

GET /public/v2/api/service/{servicename}/policy

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

Example

Request
GET /public/v2/api/service/{servicename}/policy
Content-Type: */*
Accept: application/json

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

DELETE /public/v2/api/servicedef/name/{name}

Request Parameters
name type description
name path

Example

Request
DELETE /public/v2/api/servicedef/name/{name}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

GET /public/v2/api/servicedef/name/{name}

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

Example

Request
GET /public/v2/api/servicedef/name/{name}
Content-Type: */*
Accept: application/json

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

PUT /public/v2/api/servicedef/name/{name}

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

Example

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

GET /public/v2/api/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 /public/v2/api/zone-names/{serviceName}/resource
Content-Type: */*
Accept: application/json

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

                
...
                
              

DELETE /public/v2/api/zones/name/{name}

Request Parameters
name type description
name path

Example

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

                
...
                
              
Response
HTTP/1.1 204 No Content

              

GET /public/v2/api/zones/name/{name}

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

Example

Request
GET /public/v2/api/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
}
                
              

GET /public/v2/api/zones/{zoneId}/service-headers

Get service header info List for given zone. This API is authorized to every authenticated user.

Request Parameters
name type description constraints
zoneId path long
Response Body
media type data type description
application/json array of RangerServiceHeaderInfo (JSON) List of RangerServiceHeaderInfo for given zone if present.

Example

Request
GET /public/v2/api/zones/{zoneId}/service-headers
Content-Type: */*
Accept: application/json

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

GET /public/v2/api/service/{servicename}/policy/{policyname}

Request Parameters
name type description
policyname path
servicename path
zoneName query
Response Body
media type data type description
application/json RangerPolicy (JSON)

Example

Request
GET /public/v2/api/service/{servicename}/policy/{policyname}
Content-Type: */*
Accept: application/json

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

PUT /public/v2/api/service/{servicename}/policy/{policyname}

Request Parameters
name type description
policyname path
servicename path
zoneName query
Request Body
media type data type
application/json RangerPolicy (JSON)
Response Body
media type data type description
application/json RangerPolicy (JSON)

Example

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