Security
Also available as:
PDF
loading table of contents...
Search Policy

API Name

Search Policy

Request Type

GET

Request URL

service/public/v2/api/policy

Request Parameters

Query Parameters:

pageSize (int) – The required page size.

startIndex (int) – The start record index.

policyName (string) – The name of the policy.

columns (strings) – The columns.

columnFamilies (string) – The column families.

tables (string) – The tables.

udfs (string) – The UDFS.

databases (string) – The databases.

groupName (string) – The group.

repositoryType (string) – The repository type (hbase, hdfs, etc.).

isRecursive (boolean) – The isRecursive property (true or false).

repositoryName (string) – The repository name.

userName (string) – The user name.

isEnabled (boolean) – The isEnabled property (true or false).

Example:

pagesize25=25&startIndex=0

Response

200 - Application/jason

Example:

{
 "startIndex": 0,
 "pageSize": 1,
 "totalCount": 1,
 "resultSize": 1,
 "queryTimeMS": 1409646322022,
 "vXPolicies": [
 {
 "id": 3,
 "createDate": "2014-09-02T06:02:19Z",
 "updateDate": "2014-09-02T06:02:19Z",
 "owner": "Admin",
 "updatedBy": "Admin",
 "policyName": "hivedev_1409637739446_281_2-2-20140902060219",
 "resourceName": "/*/*",
 "repositoryName": "Hive Repo Updated_1409637741234_476_10",
 "repositoryType": "Hive",
 "tables": "",
 "columns": "",
 "databases": "*",
 "udfs": "**",
 "tableType": "Inclusion",
 "columnType": "Inclusion",
 "isEnabled": true,
 "isRecursive": false,
 "isAuditEnabled": true,
 "version": "0.1.0"
 }
 ]
}