Hadoop Security Guide
Also available as:
PDF
loading table of contents...
Get Policy by Service Name and Policy Name

API NameGet Policy
Request TypeGet
Request URLservice/public/v2/api/service/{service-name}/policy/{policy-name}
Request Params
Response
{
    "allowExceptions": [],
    "createTime": 1450757992000,
    "createdBy": "amb_ranger_admin",
    "denyExceptions": [],
    "denyPolicyItems": [],
    "description": "Default Policy for Service: cl1_hive",
    "guid": "d6218120-1b66-43e6-9fef-9c917a8e9e25",
    "id": 4,
    "isAuditEnabled": true,
    "isEnabled": true,
    "name": "cl1_hive-2-20151222041952",
    "policyItems": [
        {
            "accesses": [
                {
                    "isAllowed": true,
                    "type": "select"
                },
                {
                    "isAllowed": true,
                    "type": "update"
                },
                {
                    "isAllowed": true,
                    "type": "create"
                },
                {
                    "isAllowed": true,
                    "type": "drop"
                },
                {
                    "isAllowed": true,
                    "type": "alter"
                },
                {
                    "isAllowed": true,
                    "type": "index"
                },
                {
                    "isAllowed": true,
                    "type": "lock"
                },
                {
                    "isAllowed": true,
                    "type": "all"
                }
            ],
            "conditions": [],
            "delegateAdmin": true,
            "groups": [],
            "users": [
                "ambari-qa"
            ]
        }
    ],
    "resourceSignature": "c834ed2b8c7462d2aa8bbffdb05226c8",
    "resources": {
        "database": {
            "isExcludes": false,
            "isRecursive": false,
            "values": [
                "*"
            ]
        },
        "udf": {
            "isExcludes": false,
            "isRecursive": false,
            "values": [
                "*"
            ]
        }
    },
    "service": "cl1_hive",
    "updateTime": 1450757995000,
    "updatedBy": "amb_ranger_admin",
    "version": 2
}