Apache Ranger · JSON Structure

Apache Ranger Policy Structure

Ranger security policy definition

Type: object Properties: 9
Access ControlAuthorizationHadoopPolicy ManagementSecurityApacheOpen Source

Policy is a JSON Structure definition published by Apache Ranger, describing 9 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id name serviceType serviceName description isEnabled isAuditEnabled resources policyItems

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-ranger/refs/heads/main/json-structure/apache-ranger-policy-structure.json",
  "description": "Ranger security policy definition",
  "type": "object",
  "properties": {
    "id": {
      "type": "int32",
      "description": "Policy identifier"
    },
    "name": {
      "type": "string",
      "description": "Policy name"
    },
    "serviceType": {
      "type": "string",
      "description": "Service type this policy applies to (hdfs, hive, hbase)"
    },
    "serviceName": {
      "type": "string",
      "description": "Service name this policy applies to"
    },
    "description": {
      "type": "string",
      "description": "Policy description"
    },
    "isEnabled": {
      "type": "boolean",
      "description": "Whether the policy is active"
    },
    "isAuditEnabled": {
      "type": "boolean",
      "description": "Whether audit logging is enabled"
    },
    "resources": {
      "type": "object",
      "description": "Resources protected by this policy",
      "additionalProperties": {
        "$ref": "#/components/schemas/PolicyResource"
      }
    },
    "policyItems": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PolicyItem"
      }
    }
  },
  "name": "Policy"
}