Apache Ranger Public REST APIs
Also available as:
PDF

Get Policy by ID

Reference information for the Ranger REST API service/public/v2/api/policy/{id}.

API Name Get Policy
Request Type Get
Request URL service/public/v2/api/policy/{id}
Request Params
Response
{
    "allowExceptions": [],
    "createTime": 1450757397000,
    "createdBy": "amb_ranger_admin",
    "denyExceptions": [],
    "denyPolicyItems": [],
    "description": "Default Policy for Service: cl1_hadoop",
    "guid": "4c2f7afb-23fa-45e9-9b41-29bdc7423b65",
    "id": 1,
    "isAuditEnabled": true,
    "isEnabled": true,
    "name": "cl1_hadoop-1-20151222040957",
    "policyItems": [
        {
            "accesses": [
                {
                    "isAllowed": true,
                    "type": "read"
                },
                {
                    "isAllowed": true,
                    "type": "write"
                },
                {
                    "isAllowed": true,
                    "type": "execute"
                }
            ],
            "conditions": [],
            "delegateAdmin": true,
            "groups": [],
            "users": [
                "ambari-qa"
            ]
        }
    ],
    "resourceSignature": "6f956063401eda656f1eae8870c1afac",
    "resources": {
        "path": {
            "isExcludes": false,
            "isRecursive": true,
            "values": [
                "/*"
            ]
        }
    },
    "service": "cl1_hadoop",
    "updateTime": 1450757398000,
    "updatedBy": "amb_ranger_admin",
    "version": 2
}