ServiceREST Resource

GET /plugins/checksso

Response Body
media type data type description
text/plain string

Example

Request
GET /plugins/checksso
Content-Type: */*
Accept: text/plain

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: text/plain

                
...
                
              

GET /plugins/csrfconf

Response Body
media type data type description
application/json map of object (JSON)

Example

Request
GET /plugins/csrfconf
Content-Type: */*
Accept: application/json

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

                
...
                
              

GET /plugins/definitions

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

Example

Request
GET /plugins/definitions
Content-Type: */*
Accept: application/json

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

                
{
  "serviceDefs" : [ {
    "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" : [ { }, { } ],
      "itemId" : 12345
    }, {
      "defaultIndex" : 12345,
      "name" : "...",
      "elements" : [ { }, { } ],
      "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" : [ { }, { } ],
      "accessTypes" : [ { }, { } ],
      "resources" : [ { }, { } ]
    },
    "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" : [ { }, { } ],
      "resources" : [ { }, { } ]
    },
    "rbKeyDescription" : "...",
    "guid" : "...",
    "isEnabled" : true,
    "createTime" : 12345,
    "createdBy" : "...",
    "updatedBy" : "...",
    "id" : 12345,
    "updateTime" : 12345,
    "version" : 12345
  }, {
    "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" : [ { }, { } ],
      "itemId" : 12345
    }, {
      "defaultIndex" : 12345,
      "name" : "...",
      "elements" : [ { }, { } ],
      "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" : [ { }, { } ],
      "accessTypes" : [ { }, { } ],
      "resources" : [ { }, { } ]
    },
    "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" : [ { }, { } ],
      "resources" : [ { }, { } ]
    },
    "rbKeyDescription" : "...",
    "guid" : "...",
    "isEnabled" : true,
    "createTime" : 12345,
    "createdBy" : "...",
    "updatedBy" : "...",
    "id" : 12345,
    "updateTime" : 12345,
    "version" : 12345
  } ],
  "listSize" : 12345,
  "list" : [ { }, { } ],
  "startIndex" : 12345,
  "pageSize" : 12345,
  "totalCount" : 12345,
  "resultSize" : 12345,
  "sortType" : "...",
  "sortBy" : "..."
}
                
              

POST /plugins/definitions

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

Example

Request
POST /plugins/definitions
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 /plugins/policies

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

Example

Request
GET /plugins/policies
Content-Type: */*
Accept: application/json

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

                
{
  "policies" : [ {
    "policyType" : 12345,
    "description" : "...",
    "policyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "validitySchedules" : [ {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    }, {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    } ],
    "dataMaskPolicyItems" : [ {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "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" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "service" : "...",
    "zoneName" : "...",
    "conditions" : [ {
      "values" : [ "...", "..." ],
      "type" : "..."
    }, {
      "values" : [ "...", "..." ],
      "type" : "..."
    } ],
    "denyPolicyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "denyExceptions" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "isDenyAllElse" : true,
    "policyLabels" : [ "...", "..." ],
    "resources" : {
      "property1" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      },
      "property2" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      }
    },
    "rowFilterPolicyItems" : [ {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "guid" : "...",
    "isEnabled" : true,
    "createTime" : 12345,
    "createdBy" : "...",
    "updatedBy" : "...",
    "id" : 12345,
    "updateTime" : 12345,
    "version" : 12345
  }, {
    "policyType" : 12345,
    "description" : "...",
    "policyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "validitySchedules" : [ {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    }, {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    } ],
    "dataMaskPolicyItems" : [ {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "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" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "service" : "...",
    "zoneName" : "...",
    "conditions" : [ {
      "values" : [ "...", "..." ],
      "type" : "..."
    }, {
      "values" : [ "...", "..." ],
      "type" : "..."
    } ],
    "denyPolicyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "denyExceptions" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "isDenyAllElse" : true,
    "policyLabels" : [ "...", "..." ],
    "resources" : {
      "property1" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      },
      "property2" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      }
    },
    "rowFilterPolicyItems" : [ {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "guid" : "...",
    "isEnabled" : true,
    "createTime" : 12345,
    "createdBy" : "...",
    "updatedBy" : "...",
    "id" : 12345,
    "updateTime" : 12345,
    "version" : 12345
  } ],
  "listSize" : 12345,
  "list" : [ { }, { } ],
  "startIndex" : 12345,
  "pageSize" : 12345,
  "totalCount" : 12345,
  "resultSize" : 12345,
  "sortType" : "...",
  "sortBy" : "..."
}
                
              

POST /plugins/policies

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

Example

Request
POST /plugins/policies
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 /plugins/policyLabels

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

Example

Request
GET /plugins/policyLabels
Content-Type: */*
Accept: application/json

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

                
...
                
              

GET /plugins/services

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

Example

Request
GET /plugins/services
Content-Type: */*
Accept: application/json

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

                
{
  "services" : [ {
    "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
  }, {
    "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
  } ],
  "listSize" : 12345,
  "list" : [ { }, { } ],
  "startIndex" : 12345,
  "pageSize" : 12345,
  "totalCount" : 12345,
  "resultSize" : 12345,
  "sortType" : "...",
  "sortBy" : "..."
}
                
              

POST /plugins/services

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

Example

Request
POST /plugins/services
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
}
                
              

DELETE /plugins/cluster-services/{clusterName}

Delete services/ repos associated with cluster. Only users with Ranger UserAdmin OR KeyAdmin are allowed to access this API.

Request Parameters
name type description
clusterName path
Response Body
media type data type description
application/json ResponseEntityOfListOfServiceDeleteResponse (JSON) List of serviceDeleteResponse.

Example

Request
DELETE /plugins/cluster-services/{clusterName}
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 204 No Content
Content-Type: application/json

                
{
  "statusCode" : "PRECONDITION_REQUIRED",
  "statusCodeValue" : 12345,
  "body" : { },
  "headers" : {
    "property1" : [ "...", "..." ],
    "property2" : [ "...", "..." ]
  }
}
                
              

DELETE /plugins/definitions/{id}

Request Parameters
name type description constraints
id path long

Example

Request
DELETE /plugins/definitions/{id}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

GET /plugins/definitions/{id}

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

Example

Request
GET /plugins/definitions/{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 /plugins/definitions/{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 /plugins/definitions/{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
}
                
              

GET /plugins/plugins/info

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

Example

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

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

                
{
  "pluginInfoList" : [ {
    "updateTime" : 12345,
    "createTime" : 12345,
    "serviceName" : "...",
    "serviceType" : "...",
    "id" : 12345,
    "serviceTypeDisplayName" : "...",
    "hostName" : "...",
    "ipAddress" : "...",
    "appType" : "...",
    "info" : {
      "property1" : "...",
      "property2" : "..."
    },
    "serviceDisplayName" : "..."
  }, {
    "updateTime" : 12345,
    "createTime" : 12345,
    "serviceName" : "...",
    "serviceType" : "...",
    "id" : 12345,
    "serviceTypeDisplayName" : "...",
    "hostName" : "...",
    "ipAddress" : "...",
    "appType" : "...",
    "info" : {
      "property1" : "...",
      "property2" : "..."
    },
    "serviceDisplayName" : "..."
  } ],
  "listSize" : 12345,
  "list" : [ { }, { } ],
  "startIndex" : 12345,
  "pageSize" : 12345,
  "totalCount" : 12345,
  "resultSize" : 12345,
  "sortType" : "...",
  "sortBy" : "..."
}
                
              

POST /plugins/policies/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 /plugins/policies/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
}
                
              

GET /plugins/policies/count

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

Example

Request
GET /plugins/policies/count
Content-Type: */*
Accept: application/json

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

                
...
                
              

GET /plugins/policies/csv

Example

Request
GET /plugins/policies/csv
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 200 OK

              

GET /plugins/policies/downloadExcel

Example

Request
GET /plugins/policies/downloadExcel
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 200 OK

              

GET /plugins/policies/eventTime

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

Example

Request
GET /plugins/policies/eventTime
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
}
                
              

GET /plugins/policies/exportJson

Request Parameters
name type description constraints
checkPoliciesExists query boolean

Example

Request
GET /plugins/policies/exportJson
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 200 OK

              

POST /plugins/policies/importPoliciesFromFile

Request Parameters
name type description constraints
fileDetail formdata  
serviceMapStream formdata  
uploadedInputStream formdata  
zoneMapStream formdata  
importType query  
isOverride query boolean
Request Body
media type data type
application/json (custom)
multipart/form-data (custom)

Example

Request
POST /plugins/policies/importPoliciesFromFile
Content-Type: application/json

                
...
                
              
Response
HTTP/1.1 201 Created

              

DELETE /plugins/policies/{id}

Request Parameters
name type description constraints
id path long

Example

Request
DELETE /plugins/policies/{id}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

GET /plugins/policies/{id}

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

Example

Request
GET /plugins/policies/{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 /plugins/policies/{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 /plugins/policies/{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
}
                
              

DELETE /plugins/server/policydeltas

Request Parameters
name type description default constraints
days query 7 int

Example

Request
DELETE /plugins/server/policydeltas
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

GET /plugins/services/count

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

Example

Request
GET /plugins/services/count
Content-Type: */*
Accept: application/json

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

                
...
                
              

POST /plugins/services/validateConfig

Request Body
media type data type
application/json RangerService (JSON)
application/xml rangerService (XML)
Response Body
media type data type description
application/json VXResponse (JSON)

Example

Request
POST /plugins/services/validateConfig
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

                
{
  "statusCode" : 12345,
  "msgDesc" : "...",
  "messageList" : [ {
    "name" : "...",
    "rbKey" : "...",
    "message" : "...",
    "objectId" : 12345,
    "fieldName" : "...",
    "myClassType" : 12345
  }, {
    "name" : "...",
    "rbKey" : "...",
    "message" : "...",
    "objectId" : 12345,
    "fieldName" : "...",
    "myClassType" : 12345
  } ],
  "myClassType" : 12345
}
                
              

DELETE /plugins/services/{id}

Request Parameters
name type description constraints
id path long

Example

Request
DELETE /plugins/services/{id}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

GET /plugins/services/{id}

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

Example

Request
GET /plugins/services/{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 /plugins/services/{id}

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

Example

Request
PUT /plugins/services/{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
}
                
              

GET /plugins/definitions/name/{name}

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

Example

Request
GET /plugins/definitions/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
}
                
              

GET /plugins/metrics/type/{type}

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

Example

Request
GET /plugins/metrics/type/{type}
Content-Type: */*
Accept: application/json

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

                
...
                
              

GET /plugins/policies/cache/reset

Resets/ removes service policy cache for given service.

Request Parameters
name type description
serviceName query non-empty serviceName
Response Body
media type data type description
application/json boolean (JSON) true if successfully reseted/ removed for given service, false otherwise.

Example

Request
GET /plugins/policies/cache/reset
Content-Type: */*
Accept: application/json

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

                
...
                
              

GET /plugins/policies/cache/reset-all

Resets/ removes service policy cache for all.

Response Body
media type data type description
application/json boolean (JSON) true if successfully reseted/ removed, false otherwise.

Example

Request
GET /plugins/policies/cache/reset-all
Content-Type: */*
Accept: application/json

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

                
...
                
              

GET /plugins/policies/download/{serviceName}

Request Parameters
name type description default constraints
serviceName path    
clusterName query  
lastActivationTime query 0 long
lastKnownVersion query -1 long
pluginCapabilities query  
pluginId query    
supportsPolicyDeltas query false boolean
zoneName query  
Response Body
media type data type description
application/json ServicePolicies (JSON)

Example

Request
GET /plugins/policies/download/{serviceName}
Content-Type: */*
Accept: application/json

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

                
{
  "policyVersion" : 12345,
  "policies" : [ {
    "policyType" : 12345,
    "description" : "...",
    "policyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "validitySchedules" : [ {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    }, {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    } ],
    "dataMaskPolicyItems" : [ {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "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" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "service" : "...",
    "zoneName" : "...",
    "conditions" : [ {
      "values" : [ "...", "..." ],
      "type" : "..."
    }, {
      "values" : [ "...", "..." ],
      "type" : "..."
    } ],
    "denyPolicyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "denyExceptions" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "isDenyAllElse" : true,
    "policyLabels" : [ "...", "..." ],
    "resources" : {
      "property1" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      },
      "property2" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      }
    },
    "rowFilterPolicyItems" : [ {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "guid" : "...",
    "isEnabled" : true,
    "createTime" : 12345,
    "createdBy" : "...",
    "updatedBy" : "...",
    "id" : 12345,
    "updateTime" : 12345,
    "version" : 12345
  }, {
    "policyType" : 12345,
    "description" : "...",
    "policyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "validitySchedules" : [ {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    }, {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    } ],
    "dataMaskPolicyItems" : [ {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "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" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "service" : "...",
    "zoneName" : "...",
    "conditions" : [ {
      "values" : [ "...", "..." ],
      "type" : "..."
    }, {
      "values" : [ "...", "..." ],
      "type" : "..."
    } ],
    "denyPolicyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "denyExceptions" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "isDenyAllElse" : true,
    "policyLabels" : [ "...", "..." ],
    "resources" : {
      "property1" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      },
      "property2" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      }
    },
    "rowFilterPolicyItems" : [ {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "guid" : "...",
    "isEnabled" : true,
    "createTime" : 12345,
    "createdBy" : "...",
    "updatedBy" : "...",
    "id" : 12345,
    "updateTime" : 12345,
    "version" : 12345
  } ],
  "securityZones" : {
    "property1" : {
      "policies" : [ {
        "policyType" : 12345,
        "description" : "...",
        "policyItems" : [ { }, { } ],
        "validitySchedules" : [ { }, { } ],
        "dataMaskPolicyItems" : [ { }, { } ],
        "options" : {
          "property1" : { },
          "property2" : { }
        },
        "serviceType" : "...",
        "additionalResources" : [ {
          "property1" : { },
          "property2" : { }
        }, {
          "property1" : { },
          "property2" : { }
        } ],
        "policyPriority" : 12345,
        "isAuditEnabled" : true,
        "resourceSignature" : "...",
        "name" : "...",
        "allowExceptions" : [ { }, { } ],
        "service" : "...",
        "zoneName" : "...",
        "conditions" : [ { }, { } ],
        "denyPolicyItems" : [ { }, { } ],
        "denyExceptions" : [ { }, { } ],
        "isDenyAllElse" : true,
        "policyLabels" : [ "...", "..." ],
        "resources" : {
          "property1" : { },
          "property2" : { }
        },
        "rowFilterPolicyItems" : [ { }, { } ],
        "guid" : "...",
        "isEnabled" : true,
        "createTime" : 12345,
        "createdBy" : "...",
        "updatedBy" : "...",
        "id" : 12345,
        "updateTime" : 12345,
        "version" : 12345
      }, {
        "policyType" : 12345,
        "description" : "...",
        "policyItems" : [ { }, { } ],
        "validitySchedules" : [ { }, { } ],
        "dataMaskPolicyItems" : [ { }, { } ],
        "options" : {
          "property1" : { },
          "property2" : { }
        },
        "serviceType" : "...",
        "additionalResources" : [ {
          "property1" : { },
          "property2" : { }
        }, {
          "property1" : { },
          "property2" : { }
        } ],
        "policyPriority" : 12345,
        "isAuditEnabled" : true,
        "resourceSignature" : "...",
        "name" : "...",
        "allowExceptions" : [ { }, { } ],
        "service" : "...",
        "zoneName" : "...",
        "conditions" : [ { }, { } ],
        "denyPolicyItems" : [ { }, { } ],
        "denyExceptions" : [ { }, { } ],
        "isDenyAllElse" : true,
        "policyLabels" : [ "...", "..." ],
        "resources" : {
          "property1" : { },
          "property2" : { }
        },
        "rowFilterPolicyItems" : [ { }, { } ],
        "guid" : "...",
        "isEnabled" : true,
        "createTime" : 12345,
        "createdBy" : "...",
        "updatedBy" : "...",
        "id" : 12345,
        "updateTime" : 12345,
        "version" : 12345
      } ],
      "zoneName" : "...",
      "policyDeltas" : [ {
        "policy" : { },
        "policiesVersion" : 12345,
        "id" : 12345,
        "changeType" : 12345
      }, {
        "policy" : { },
        "policiesVersion" : 12345,
        "id" : 12345,
        "changeType" : 12345
      } ],
      "resources" : [ {
        "property1" : [ "...", "..." ],
        "property2" : [ "...", "..." ]
      }, {
        "property1" : [ "...", "..." ],
        "property2" : [ "...", "..." ]
      } ],
      "containsAssociatedTagService" : true
    },
    "property2" : {
      "policies" : [ {
        "policyType" : 12345,
        "description" : "...",
        "policyItems" : [ { }, { } ],
        "validitySchedules" : [ { }, { } ],
        "dataMaskPolicyItems" : [ { }, { } ],
        "options" : {
          "property1" : { },
          "property2" : { }
        },
        "serviceType" : "...",
        "additionalResources" : [ {
          "property1" : { },
          "property2" : { }
        }, {
          "property1" : { },
          "property2" : { }
        } ],
        "policyPriority" : 12345,
        "isAuditEnabled" : true,
        "resourceSignature" : "...",
        "name" : "...",
        "allowExceptions" : [ { }, { } ],
        "service" : "...",
        "zoneName" : "...",
        "conditions" : [ { }, { } ],
        "denyPolicyItems" : [ { }, { } ],
        "denyExceptions" : [ { }, { } ],
        "isDenyAllElse" : true,
        "policyLabels" : [ "...", "..." ],
        "resources" : {
          "property1" : { },
          "property2" : { }
        },
        "rowFilterPolicyItems" : [ { }, { } ],
        "guid" : "...",
        "isEnabled" : true,
        "createTime" : 12345,
        "createdBy" : "...",
        "updatedBy" : "...",
        "id" : 12345,
        "updateTime" : 12345,
        "version" : 12345
      }, {
        "policyType" : 12345,
        "description" : "...",
        "policyItems" : [ { }, { } ],
        "validitySchedules" : [ { }, { } ],
        "dataMaskPolicyItems" : [ { }, { } ],
        "options" : {
          "property1" : { },
          "property2" : { }
        },
        "serviceType" : "...",
        "additionalResources" : [ {
          "property1" : { },
          "property2" : { }
        }, {
          "property1" : { },
          "property2" : { }
        } ],
        "policyPriority" : 12345,
        "isAuditEnabled" : true,
        "resourceSignature" : "...",
        "name" : "...",
        "allowExceptions" : [ { }, { } ],
        "service" : "...",
        "zoneName" : "...",
        "conditions" : [ { }, { } ],
        "denyPolicyItems" : [ { }, { } ],
        "denyExceptions" : [ { }, { } ],
        "isDenyAllElse" : true,
        "policyLabels" : [ "...", "..." ],
        "resources" : {
          "property1" : { },
          "property2" : { }
        },
        "rowFilterPolicyItems" : [ { }, { } ],
        "guid" : "...",
        "isEnabled" : true,
        "createTime" : 12345,
        "createdBy" : "...",
        "updatedBy" : "...",
        "id" : 12345,
        "updateTime" : 12345,
        "version" : 12345
      } ],
      "zoneName" : "...",
      "policyDeltas" : [ {
        "policy" : { },
        "policiesVersion" : 12345,
        "id" : 12345,
        "changeType" : 12345
      }, {
        "policy" : { },
        "policiesVersion" : 12345,
        "id" : 12345,
        "changeType" : 12345
      } ],
      "resources" : [ {
        "property1" : [ "...", "..." ],
        "property2" : [ "...", "..." ]
      }, {
        "property1" : [ "...", "..." ],
        "property2" : [ "...", "..." ]
      } ],
      "containsAssociatedTagService" : true
    }
  },
  "auditMode" : "...",
  "serviceConfig" : {
    "property1" : "...",
    "property2" : "..."
  },
  "policyDeltas" : [ {
    "policy" : {
      "policyType" : 12345,
      "description" : "...",
      "policyItems" : [ { }, { } ],
      "validitySchedules" : [ { }, { } ],
      "dataMaskPolicyItems" : [ { }, { } ],
      "options" : {
        "property1" : { },
        "property2" : { }
      },
      "serviceType" : "...",
      "additionalResources" : [ {
        "property1" : { },
        "property2" : { }
      }, {
        "property1" : { },
        "property2" : { }
      } ],
      "policyPriority" : 12345,
      "isAuditEnabled" : true,
      "resourceSignature" : "...",
      "name" : "...",
      "allowExceptions" : [ { }, { } ],
      "service" : "...",
      "zoneName" : "...",
      "conditions" : [ { }, { } ],
      "denyPolicyItems" : [ { }, { } ],
      "denyExceptions" : [ { }, { } ],
      "isDenyAllElse" : true,
      "policyLabels" : [ "...", "..." ],
      "resources" : {
        "property1" : { },
        "property2" : { }
      },
      "rowFilterPolicyItems" : [ { }, { } ],
      "guid" : "...",
      "isEnabled" : true,
      "createTime" : 12345,
      "createdBy" : "...",
      "updatedBy" : "...",
      "id" : 12345,
      "updateTime" : 12345,
      "version" : 12345
    },
    "policiesVersion" : 12345,
    "id" : 12345,
    "changeType" : 12345
  }, {
    "policy" : {
      "policyType" : 12345,
      "description" : "...",
      "policyItems" : [ { }, { } ],
      "validitySchedules" : [ { }, { } ],
      "dataMaskPolicyItems" : [ { }, { } ],
      "options" : {
        "property1" : { },
        "property2" : { }
      },
      "serviceType" : "...",
      "additionalResources" : [ {
        "property1" : { },
        "property2" : { }
      }, {
        "property1" : { },
        "property2" : { }
      } ],
      "policyPriority" : 12345,
      "isAuditEnabled" : true,
      "resourceSignature" : "...",
      "name" : "...",
      "allowExceptions" : [ { }, { } ],
      "service" : "...",
      "zoneName" : "...",
      "conditions" : [ { }, { } ],
      "denyPolicyItems" : [ { }, { } ],
      "denyExceptions" : [ { }, { } ],
      "isDenyAllElse" : true,
      "policyLabels" : [ "...", "..." ],
      "resources" : {
        "property1" : { },
        "property2" : { }
      },
      "rowFilterPolicyItems" : [ { }, { } ],
      "guid" : "...",
      "isEnabled" : true,
      "createTime" : 12345,
      "createdBy" : "...",
      "updatedBy" : "...",
      "id" : 12345,
      "updateTime" : 12345,
      "version" : 12345
    },
    "policiesVersion" : 12345,
    "id" : 12345,
    "changeType" : 12345
  } ],
  "tagPolicies" : {
    "auditMode" : "...",
    "serviceId" : 12345,
    "serviceDef" : {
      "rbKeyLabel" : "...",
      "resources" : [ { }, { } ],
      "contextEnrichers" : [ { }, { } ],
      "description" : "...",
      "implClass" : "...",
      "enums" : [ { }, { } ],
      "label" : "...",
      "configs" : [ { }, { } ],
      "options" : {
        "property1" : "...",
        "property2" : "..."
      },
      "accessTypes" : [ { }, { } ],
      "dataMaskDef" : { },
      "policyConditions" : [ { }, { } ],
      "displayName" : "...",
      "name" : "...",
      "rowFilterDef" : { },
      "rbKeyDescription" : "...",
      "guid" : "...",
      "isEnabled" : true,
      "createTime" : 12345,
      "createdBy" : "...",
      "updatedBy" : "...",
      "id" : 12345,
      "updateTime" : 12345,
      "version" : 12345
    },
    "serviceName" : "...",
    "policyUpdateTime" : 12345,
    "serviceConfig" : {
      "property1" : "...",
      "property2" : "..."
    },
    "policies" : [ {
      "policyType" : 12345,
      "description" : "...",
      "policyItems" : [ { }, { } ],
      "validitySchedules" : [ { }, { } ],
      "dataMaskPolicyItems" : [ { }, { } ],
      "options" : {
        "property1" : { },
        "property2" : { }
      },
      "serviceType" : "...",
      "additionalResources" : [ {
        "property1" : { },
        "property2" : { }
      }, {
        "property1" : { },
        "property2" : { }
      } ],
      "policyPriority" : 12345,
      "isAuditEnabled" : true,
      "resourceSignature" : "...",
      "name" : "...",
      "allowExceptions" : [ { }, { } ],
      "service" : "...",
      "zoneName" : "...",
      "conditions" : [ { }, { } ],
      "denyPolicyItems" : [ { }, { } ],
      "denyExceptions" : [ { }, { } ],
      "isDenyAllElse" : true,
      "policyLabels" : [ "...", "..." ],
      "resources" : {
        "property1" : { },
        "property2" : { }
      },
      "rowFilterPolicyItems" : [ { }, { } ],
      "guid" : "...",
      "isEnabled" : true,
      "createTime" : 12345,
      "createdBy" : "...",
      "updatedBy" : "...",
      "id" : 12345,
      "updateTime" : 12345,
      "version" : 12345
    }, {
      "policyType" : 12345,
      "description" : "...",
      "policyItems" : [ { }, { } ],
      "validitySchedules" : [ { }, { } ],
      "dataMaskPolicyItems" : [ { }, { } ],
      "options" : {
        "property1" : { },
        "property2" : { }
      },
      "serviceType" : "...",
      "additionalResources" : [ {
        "property1" : { },
        "property2" : { }
      }, {
        "property1" : { },
        "property2" : { }
      } ],
      "policyPriority" : 12345,
      "isAuditEnabled" : true,
      "resourceSignature" : "...",
      "name" : "...",
      "allowExceptions" : [ { }, { } ],
      "service" : "...",
      "zoneName" : "...",
      "conditions" : [ { }, { } ],
      "denyPolicyItems" : [ { }, { } ],
      "denyExceptions" : [ { }, { } ],
      "isDenyAllElse" : true,
      "policyLabels" : [ "...", "..." ],
      "resources" : {
        "property1" : { },
        "property2" : { }
      },
      "rowFilterPolicyItems" : [ { }, { } ],
      "guid" : "...",
      "isEnabled" : true,
      "createTime" : 12345,
      "createdBy" : "...",
      "updatedBy" : "...",
      "id" : 12345,
      "updateTime" : 12345,
      "version" : 12345
    } ],
    "policyVersion" : 12345
  },
  "policyUpdateTime" : 12345,
  "serviceName" : "...",
  "serviceId" : 12345,
  "serviceDef" : {
    "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" : [ { }, { } ],
      "itemId" : 12345
    }, {
      "defaultIndex" : 12345,
      "name" : "...",
      "elements" : [ { }, { } ],
      "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" : [ { }, { } ],
      "accessTypes" : [ { }, { } ],
      "resources" : [ { }, { } ]
    },
    "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" : [ { }, { } ],
      "resources" : [ { }, { } ]
    },
    "rbKeyDescription" : "...",
    "guid" : "...",
    "isEnabled" : true,
    "createTime" : 12345,
    "createdBy" : "...",
    "updatedBy" : "...",
    "id" : 12345,
    "updateTime" : 12345,
    "version" : 12345
  }
}
                
              

DELETE /plugins/policies/guid/{guid}

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

Example

Request
DELETE /plugins/policies/guid/{guid}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

GET /plugins/policies/guid/{guid}

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

Example

Request
GET /plugins/policies/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
}
                
              

GET /plugins/policies/service/{id}

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

Example

Request
GET /plugins/policies/service/{id}
Content-Type: */*
Accept: application/json

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

                
{
  "policies" : [ {
    "policyType" : 12345,
    "description" : "...",
    "policyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "validitySchedules" : [ {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    }, {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    } ],
    "dataMaskPolicyItems" : [ {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "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" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "service" : "...",
    "zoneName" : "...",
    "conditions" : [ {
      "values" : [ "...", "..." ],
      "type" : "..."
    }, {
      "values" : [ "...", "..." ],
      "type" : "..."
    } ],
    "denyPolicyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "denyExceptions" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "isDenyAllElse" : true,
    "policyLabels" : [ "...", "..." ],
    "resources" : {
      "property1" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      },
      "property2" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      }
    },
    "rowFilterPolicyItems" : [ {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "guid" : "...",
    "isEnabled" : true,
    "createTime" : 12345,
    "createdBy" : "...",
    "updatedBy" : "...",
    "id" : 12345,
    "updateTime" : 12345,
    "version" : 12345
  }, {
    "policyType" : 12345,
    "description" : "...",
    "policyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "validitySchedules" : [ {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    }, {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    } ],
    "dataMaskPolicyItems" : [ {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "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" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "service" : "...",
    "zoneName" : "...",
    "conditions" : [ {
      "values" : [ "...", "..." ],
      "type" : "..."
    }, {
      "values" : [ "...", "..." ],
      "type" : "..."
    } ],
    "denyPolicyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "denyExceptions" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "isDenyAllElse" : true,
    "policyLabels" : [ "...", "..." ],
    "resources" : {
      "property1" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      },
      "property2" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      }
    },
    "rowFilterPolicyItems" : [ {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "guid" : "...",
    "isEnabled" : true,
    "createTime" : 12345,
    "createdBy" : "...",
    "updatedBy" : "...",
    "id" : 12345,
    "updateTime" : 12345,
    "version" : 12345
  } ],
  "listSize" : 12345,
  "list" : [ { }, { } ],
  "startIndex" : 12345,
  "pageSize" : 12345,
  "totalCount" : 12345,
  "resultSize" : 12345,
  "sortType" : "...",
  "sortBy" : "..."
}
                
              

GET /plugins/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 /plugins/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
} ]
                
              

GET /plugins/policy/{policyId}/versionList

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

Example

Request
GET /plugins/policy/{policyId}/versionList
Content-Type: */*
Accept: application/json

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

                
{
  "value" : "...",
  "myClassType" : 12345
}
                
              

DELETE /plugins/server/purgepolicies/{serviceName}

Request Parameters
name type description
serviceName path

Example

Request
DELETE /plugins/server/purgepolicies/{serviceName}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

POST /plugins/services/grant/{serviceName}

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

Example

Request
POST /plugins/services/grant/{serviceName}
Content-Type: application/json
Accept: application/json

                
{
  "grantorGroups" : [ "...", "..." ],
  "remoteIPAddress" : "...",
  "accessTypes" : [ "...", "..." ],
  "requestData" : "...",
  "clientIPAddress" : "...",
  "replaceExistingPermissions" : true,
  "forwardedAddresses" : [ "...", "..." ],
  "ownerUser" : "...",
  "enableAudit" : true,
  "delegateAdmin" : true,
  "sessionId" : "...",
  "clusterName" : "...",
  "isRecursive" : true,
  "groups" : [ "...", "..." ],
  "users" : [ "...", "..." ],
  "grantor" : "...",
  "clientType" : "...",
  "roles" : [ "...", "..." ],
  "zoneName" : "...",
  "resource" : {
    "property1" : "...",
    "property2" : "..."
  }
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "message" : "...",
  "httpStatusCode" : 12345,
  "msgDesc" : "...",
  "statusCode" : 12345,
  "messageList" : [ {
    "objectId" : 12345,
    "fieldName" : "...",
    "message" : "...",
    "name" : "...",
    "rbKey" : "..."
  }, {
    "objectId" : 12345,
    "fieldName" : "...",
    "message" : "...",
    "name" : "...",
    "rbKey" : "..."
  } ]
}
                
              

POST /plugins/services/lookupResource/{serviceName}

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

Example

Request
POST /plugins/services/lookupResource/{serviceName}
Content-Type: application/json
Accept: application/json

                
{
  "resources" : {
    "property1" : [ "...", "..." ],
    "property2" : [ "...", "..." ]
  },
  "userInput" : "...",
  "resourceName" : "..."
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

GET /plugins/services/name/{name}

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

Example

Request
GET /plugins/services/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
}
                
              

POST /plugins/services/revoke/{serviceName}

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

Example

Request
POST /plugins/services/revoke/{serviceName}
Content-Type: application/json
Accept: application/json

                
{
  "grantorGroups" : [ "...", "..." ],
  "remoteIPAddress" : "...",
  "accessTypes" : [ "...", "..." ],
  "requestData" : "...",
  "clientIPAddress" : "...",
  "replaceExistingPermissions" : true,
  "forwardedAddresses" : [ "...", "..." ],
  "ownerUser" : "...",
  "enableAudit" : true,
  "delegateAdmin" : true,
  "sessionId" : "...",
  "clusterName" : "...",
  "isRecursive" : true,
  "groups" : [ "...", "..." ],
  "users" : [ "...", "..." ],
  "grantor" : "...",
  "clientType" : "...",
  "roles" : [ "...", "..." ],
  "zoneName" : "...",
  "resource" : {
    "property1" : "...",
    "property2" : "..."
  }
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "message" : "...",
  "httpStatusCode" : 12345,
  "msgDesc" : "...",
  "statusCode" : 12345,
  "messageList" : [ {
    "objectId" : 12345,
    "fieldName" : "...",
    "message" : "...",
    "name" : "...",
    "rbKey" : "..."
  }, {
    "objectId" : 12345,
    "fieldName" : "...",
    "message" : "...",
    "name" : "...",
    "rbKey" : "..."
  } ]
}
                
              

GET /plugins/policies/service/name/{name}

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

Example

Request
GET /plugins/policies/service/name/{name}
Content-Type: */*
Accept: application/json

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

                
{
  "policies" : [ {
    "policyType" : 12345,
    "description" : "...",
    "policyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "validitySchedules" : [ {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    }, {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    } ],
    "dataMaskPolicyItems" : [ {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "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" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "service" : "...",
    "zoneName" : "...",
    "conditions" : [ {
      "values" : [ "...", "..." ],
      "type" : "..."
    }, {
      "values" : [ "...", "..." ],
      "type" : "..."
    } ],
    "denyPolicyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "denyExceptions" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "isDenyAllElse" : true,
    "policyLabels" : [ "...", "..." ],
    "resources" : {
      "property1" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      },
      "property2" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      }
    },
    "rowFilterPolicyItems" : [ {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "guid" : "...",
    "isEnabled" : true,
    "createTime" : 12345,
    "createdBy" : "...",
    "updatedBy" : "...",
    "id" : 12345,
    "updateTime" : 12345,
    "version" : 12345
  }, {
    "policyType" : 12345,
    "description" : "...",
    "policyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "validitySchedules" : [ {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    }, {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    } ],
    "dataMaskPolicyItems" : [ {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "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" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "service" : "...",
    "zoneName" : "...",
    "conditions" : [ {
      "values" : [ "...", "..." ],
      "type" : "..."
    }, {
      "values" : [ "...", "..." ],
      "type" : "..."
    } ],
    "denyPolicyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "denyExceptions" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "isDenyAllElse" : true,
    "policyLabels" : [ "...", "..." ],
    "resources" : {
      "property1" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      },
      "property2" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      }
    },
    "rowFilterPolicyItems" : [ {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "guid" : "...",
    "isEnabled" : true,
    "createTime" : 12345,
    "createdBy" : "...",
    "updatedBy" : "...",
    "id" : 12345,
    "updateTime" : 12345,
    "version" : 12345
  } ],
  "listSize" : 12345,
  "list" : [ { }, { } ],
  "startIndex" : 12345,
  "pageSize" : 12345,
  "totalCount" : 12345,
  "resultSize" : 12345,
  "sortType" : "...",
  "sortBy" : "..."
}
                
              

GET /plugins/policy/{policyId}/version/{versionNo}

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

Example

Request
GET /plugins/policy/{policyId}/version/{versionNo}
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
}
                
              

GET /plugins/secure/policies/download/{serviceName}

Request Parameters
name type description default constraints
serviceName path    
clusterName query  
lastActivationTime query 0 long
lastKnownVersion query -1 long
pluginCapabilities query  
pluginId query    
supportsPolicyDeltas query false boolean
zoneName query  
Response Body
media type data type description
application/json ServicePolicies (JSON)

Example

Request
GET /plugins/secure/policies/download/{serviceName}
Content-Type: */*
Accept: application/json

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

                
{
  "policyVersion" : 12345,
  "policies" : [ {
    "policyType" : 12345,
    "description" : "...",
    "policyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "validitySchedules" : [ {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    }, {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    } ],
    "dataMaskPolicyItems" : [ {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "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" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "service" : "...",
    "zoneName" : "...",
    "conditions" : [ {
      "values" : [ "...", "..." ],
      "type" : "..."
    }, {
      "values" : [ "...", "..." ],
      "type" : "..."
    } ],
    "denyPolicyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "denyExceptions" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "isDenyAllElse" : true,
    "policyLabels" : [ "...", "..." ],
    "resources" : {
      "property1" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      },
      "property2" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      }
    },
    "rowFilterPolicyItems" : [ {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "guid" : "...",
    "isEnabled" : true,
    "createTime" : 12345,
    "createdBy" : "...",
    "updatedBy" : "...",
    "id" : 12345,
    "updateTime" : 12345,
    "version" : 12345
  }, {
    "policyType" : 12345,
    "description" : "...",
    "policyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "validitySchedules" : [ {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    }, {
      "startTime" : "...",
      "endTime" : "...",
      "timeZone" : "...",
      "recurrences" : [ { }, { } ]
    } ],
    "dataMaskPolicyItems" : [ {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "dataMaskInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "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" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "service" : "...",
    "zoneName" : "...",
    "conditions" : [ {
      "values" : [ "...", "..." ],
      "type" : "..."
    }, {
      "values" : [ "...", "..." ],
      "type" : "..."
    } ],
    "denyPolicyItems" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "denyExceptions" : [ {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "isDenyAllElse" : true,
    "policyLabels" : [ "...", "..." ],
    "resources" : {
      "property1" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      },
      "property2" : {
        "isExcludes" : true,
        "values" : [ "...", "..." ],
        "isRecursive" : true
      }
    },
    "rowFilterPolicyItems" : [ {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    }, {
      "rowFilterInfo" : { },
      "users" : [ "...", "..." ],
      "accesses" : [ { }, { } ],
      "groups" : [ "...", "..." ],
      "roles" : [ "...", "..." ],
      "conditions" : [ { }, { } ],
      "delegateAdmin" : true
    } ],
    "guid" : "...",
    "isEnabled" : true,
    "createTime" : 12345,
    "createdBy" : "...",
    "updatedBy" : "...",
    "id" : 12345,
    "updateTime" : 12345,
    "version" : 12345
  } ],
  "securityZones" : {
    "property1" : {
      "policies" : [ {
        "policyType" : 12345,
        "description" : "...",
        "policyItems" : [ { }, { } ],
        "validitySchedules" : [ { }, { } ],
        "dataMaskPolicyItems" : [ { }, { } ],
        "options" : {
          "property1" : { },
          "property2" : { }
        },
        "serviceType" : "...",
        "additionalResources" : [ {
          "property1" : { },
          "property2" : { }
        }, {
          "property1" : { },
          "property2" : { }
        } ],
        "policyPriority" : 12345,
        "isAuditEnabled" : true,
        "resourceSignature" : "...",
        "name" : "...",
        "allowExceptions" : [ { }, { } ],
        "service" : "...",
        "zoneName" : "...",
        "conditions" : [ { }, { } ],
        "denyPolicyItems" : [ { }, { } ],
        "denyExceptions" : [ { }, { } ],
        "isDenyAllElse" : true,
        "policyLabels" : [ "...", "..." ],
        "resources" : {
          "property1" : { },
          "property2" : { }
        },
        "rowFilterPolicyItems" : [ { }, { } ],
        "guid" : "...",
        "isEnabled" : true,
        "createTime" : 12345,
        "createdBy" : "...",
        "updatedBy" : "...",
        "id" : 12345,
        "updateTime" : 12345,
        "version" : 12345
      }, {
        "policyType" : 12345,
        "description" : "...",
        "policyItems" : [ { }, { } ],
        "validitySchedules" : [ { }, { } ],
        "dataMaskPolicyItems" : [ { }, { } ],
        "options" : {
          "property1" : { },
          "property2" : { }
        },
        "serviceType" : "...",
        "additionalResources" : [ {
          "property1" : { },
          "property2" : { }
        }, {
          "property1" : { },
          "property2" : { }
        } ],
        "policyPriority" : 12345,
        "isAuditEnabled" : true,
        "resourceSignature" : "...",
        "name" : "...",
        "allowExceptions" : [ { }, { } ],
        "service" : "...",
        "zoneName" : "...",
        "conditions" : [ { }, { } ],
        "denyPolicyItems" : [ { }, { } ],
        "denyExceptions" : [ { }, { } ],
        "isDenyAllElse" : true,
        "policyLabels" : [ "...", "..." ],
        "resources" : {
          "property1" : { },
          "property2" : { }
        },
        "rowFilterPolicyItems" : [ { }, { } ],
        "guid" : "...",
        "isEnabled" : true,
        "createTime" : 12345,
        "createdBy" : "...",
        "updatedBy" : "...",
        "id" : 12345,
        "updateTime" : 12345,
        "version" : 12345
      } ],
      "zoneName" : "...",
      "policyDeltas" : [ {
        "policy" : { },
        "policiesVersion" : 12345,
        "id" : 12345,
        "changeType" : 12345
      }, {
        "policy" : { },
        "policiesVersion" : 12345,
        "id" : 12345,
        "changeType" : 12345
      } ],
      "resources" : [ {
        "property1" : [ "...", "..." ],
        "property2" : [ "...", "..." ]
      }, {
        "property1" : [ "...", "..." ],
        "property2" : [ "...", "..." ]
      } ],
      "containsAssociatedTagService" : true
    },
    "property2" : {
      "policies" : [ {
        "policyType" : 12345,
        "description" : "...",
        "policyItems" : [ { }, { } ],
        "validitySchedules" : [ { }, { } ],
        "dataMaskPolicyItems" : [ { }, { } ],
        "options" : {
          "property1" : { },
          "property2" : { }
        },
        "serviceType" : "...",
        "additionalResources" : [ {
          "property1" : { },
          "property2" : { }
        }, {
          "property1" : { },
          "property2" : { }
        } ],
        "policyPriority" : 12345,
        "isAuditEnabled" : true,
        "resourceSignature" : "...",
        "name" : "...",
        "allowExceptions" : [ { }, { } ],
        "service" : "...",
        "zoneName" : "...",
        "conditions" : [ { }, { } ],
        "denyPolicyItems" : [ { }, { } ],
        "denyExceptions" : [ { }, { } ],
        "isDenyAllElse" : true,
        "policyLabels" : [ "...", "..." ],
        "resources" : {
          "property1" : { },
          "property2" : { }
        },
        "rowFilterPolicyItems" : [ { }, { } ],
        "guid" : "...",
        "isEnabled" : true,
        "createTime" : 12345,
        "createdBy" : "...",
        "updatedBy" : "...",
        "id" : 12345,
        "updateTime" : 12345,
        "version" : 12345
      }, {
        "policyType" : 12345,
        "description" : "...",
        "policyItems" : [ { }, { } ],
        "validitySchedules" : [ { }, { } ],
        "dataMaskPolicyItems" : [ { }, { } ],
        "options" : {
          "property1" : { },
          "property2" : { }
        },
        "serviceType" : "...",
        "additionalResources" : [ {
          "property1" : { },
          "property2" : { }
        }, {
          "property1" : { },
          "property2" : { }
        } ],
        "policyPriority" : 12345,
        "isAuditEnabled" : true,
        "resourceSignature" : "...",
        "name" : "...",
        "allowExceptions" : [ { }, { } ],
        "service" : "...",
        "zoneName" : "...",
        "conditions" : [ { }, { } ],
        "denyPolicyItems" : [ { }, { } ],
        "denyExceptions" : [ { }, { } ],
        "isDenyAllElse" : true,
        "policyLabels" : [ "...", "..." ],
        "resources" : {
          "property1" : { },
          "property2" : { }
        },
        "rowFilterPolicyItems" : [ { }, { } ],
        "guid" : "...",
        "isEnabled" : true,
        "createTime" : 12345,
        "createdBy" : "...",
        "updatedBy" : "...",
        "id" : 12345,
        "updateTime" : 12345,
        "version" : 12345
      } ],
      "zoneName" : "...",
      "policyDeltas" : [ {
        "policy" : { },
        "policiesVersion" : 12345,
        "id" : 12345,
        "changeType" : 12345
      }, {
        "policy" : { },
        "policiesVersion" : 12345,
        "id" : 12345,
        "changeType" : 12345
      } ],
      "resources" : [ {
        "property1" : [ "...", "..." ],
        "property2" : [ "...", "..." ]
      }, {
        "property1" : [ "...", "..." ],
        "property2" : [ "...", "..." ]
      } ],
      "containsAssociatedTagService" : true
    }
  },
  "auditMode" : "...",
  "serviceConfig" : {
    "property1" : "...",
    "property2" : "..."
  },
  "policyDeltas" : [ {
    "policy" : {
      "policyType" : 12345,
      "description" : "...",
      "policyItems" : [ { }, { } ],
      "validitySchedules" : [ { }, { } ],
      "dataMaskPolicyItems" : [ { }, { } ],
      "options" : {
        "property1" : { },
        "property2" : { }
      },
      "serviceType" : "...",
      "additionalResources" : [ {
        "property1" : { },
        "property2" : { }
      }, {
        "property1" : { },
        "property2" : { }
      } ],
      "policyPriority" : 12345,
      "isAuditEnabled" : true,
      "resourceSignature" : "...",
      "name" : "...",
      "allowExceptions" : [ { }, { } ],
      "service" : "...",
      "zoneName" : "...",
      "conditions" : [ { }, { } ],
      "denyPolicyItems" : [ { }, { } ],
      "denyExceptions" : [ { }, { } ],
      "isDenyAllElse" : true,
      "policyLabels" : [ "...", "..." ],
      "resources" : {
        "property1" : { },
        "property2" : { }
      },
      "rowFilterPolicyItems" : [ { }, { } ],
      "guid" : "...",
      "isEnabled" : true,
      "createTime" : 12345,
      "createdBy" : "...",
      "updatedBy" : "...",
      "id" : 12345,
      "updateTime" : 12345,
      "version" : 12345
    },
    "policiesVersion" : 12345,
    "id" : 12345,
    "changeType" : 12345
  }, {
    "policy" : {
      "policyType" : 12345,
      "description" : "...",
      "policyItems" : [ { }, { } ],
      "validitySchedules" : [ { }, { } ],
      "dataMaskPolicyItems" : [ { }, { } ],
      "options" : {
        "property1" : { },
        "property2" : { }
      },
      "serviceType" : "...",
      "additionalResources" : [ {
        "property1" : { },
        "property2" : { }
      }, {
        "property1" : { },
        "property2" : { }
      } ],
      "policyPriority" : 12345,
      "isAuditEnabled" : true,
      "resourceSignature" : "...",
      "name" : "...",
      "allowExceptions" : [ { }, { } ],
      "service" : "...",
      "zoneName" : "...",
      "conditions" : [ { }, { } ],
      "denyPolicyItems" : [ { }, { } ],
      "denyExceptions" : [ { }, { } ],
      "isDenyAllElse" : true,
      "policyLabels" : [ "...", "..." ],
      "resources" : {
        "property1" : { },
        "property2" : { }
      },
      "rowFilterPolicyItems" : [ { }, { } ],
      "guid" : "...",
      "isEnabled" : true,
      "createTime" : 12345,
      "createdBy" : "...",
      "updatedBy" : "...",
      "id" : 12345,
      "updateTime" : 12345,
      "version" : 12345
    },
    "policiesVersion" : 12345,
    "id" : 12345,
    "changeType" : 12345
  } ],
  "tagPolicies" : {
    "auditMode" : "...",
    "serviceId" : 12345,
    "serviceDef" : {
      "rbKeyLabel" : "...",
      "resources" : [ { }, { } ],
      "contextEnrichers" : [ { }, { } ],
      "description" : "...",
      "implClass" : "...",
      "enums" : [ { }, { } ],
      "label" : "...",
      "configs" : [ { }, { } ],
      "options" : {
        "property1" : "...",
        "property2" : "..."
      },
      "accessTypes" : [ { }, { } ],
      "dataMaskDef" : { },
      "policyConditions" : [ { }, { } ],
      "displayName" : "...",
      "name" : "...",
      "rowFilterDef" : { },
      "rbKeyDescription" : "...",
      "guid" : "...",
      "isEnabled" : true,
      "createTime" : 12345,
      "createdBy" : "...",
      "updatedBy" : "...",
      "id" : 12345,
      "updateTime" : 12345,
      "version" : 12345
    },
    "serviceName" : "...",
    "policyUpdateTime" : 12345,
    "serviceConfig" : {
      "property1" : "...",
      "property2" : "..."
    },
    "policies" : [ {
      "policyType" : 12345,
      "description" : "...",
      "policyItems" : [ { }, { } ],
      "validitySchedules" : [ { }, { } ],
      "dataMaskPolicyItems" : [ { }, { } ],
      "options" : {
        "property1" : { },
        "property2" : { }
      },
      "serviceType" : "...",
      "additionalResources" : [ {
        "property1" : { },
        "property2" : { }
      }, {
        "property1" : { },
        "property2" : { }
      } ],
      "policyPriority" : 12345,
      "isAuditEnabled" : true,
      "resourceSignature" : "...",
      "name" : "...",
      "allowExceptions" : [ { }, { } ],
      "service" : "...",
      "zoneName" : "...",
      "conditions" : [ { }, { } ],
      "denyPolicyItems" : [ { }, { } ],
      "denyExceptions" : [ { }, { } ],
      "isDenyAllElse" : true,
      "policyLabels" : [ "...", "..." ],
      "resources" : {
        "property1" : { },
        "property2" : { }
      },
      "rowFilterPolicyItems" : [ { }, { } ],
      "guid" : "...",
      "isEnabled" : true,
      "createTime" : 12345,
      "createdBy" : "...",
      "updatedBy" : "...",
      "id" : 12345,
      "updateTime" : 12345,
      "version" : 12345
    }, {
      "policyType" : 12345,
      "description" : "...",
      "policyItems" : [ { }, { } ],
      "validitySchedules" : [ { }, { } ],
      "dataMaskPolicyItems" : [ { }, { } ],
      "options" : {
        "property1" : { },
        "property2" : { }
      },
      "serviceType" : "...",
      "additionalResources" : [ {
        "property1" : { },
        "property2" : { }
      }, {
        "property1" : { },
        "property2" : { }
      } ],
      "policyPriority" : 12345,
      "isAuditEnabled" : true,
      "resourceSignature" : "...",
      "name" : "...",
      "allowExceptions" : [ { }, { } ],
      "service" : "...",
      "zoneName" : "...",
      "conditions" : [ { }, { } ],
      "denyPolicyItems" : [ { }, { } ],
      "denyExceptions" : [ { }, { } ],
      "isDenyAllElse" : true,
      "policyLabels" : [ "...", "..." ],
      "resources" : {
        "property1" : { },
        "property2" : { }
      },
      "rowFilterPolicyItems" : [ { }, { } ],
      "guid" : "...",
      "isEnabled" : true,
      "createTime" : 12345,
      "createdBy" : "...",
      "updatedBy" : "...",
      "id" : 12345,
      "updateTime" : 12345,
      "version" : 12345
    } ],
    "policyVersion" : 12345
  },
  "policyUpdateTime" : 12345,
  "serviceName" : "...",
  "serviceId" : 12345,
  "serviceDef" : {
    "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" : [ { }, { } ],
      "itemId" : 12345
    }, {
      "defaultIndex" : 12345,
      "name" : "...",
      "elements" : [ { }, { } ],
      "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" : [ { }, { } ],
      "accessTypes" : [ { }, { } ],
      "resources" : [ { }, { } ]
    },
    "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" : [ { }, { } ],
      "resources" : [ { }, { } ]
    },
    "rbKeyDescription" : "...",
    "guid" : "...",
    "isEnabled" : true,
    "createTime" : 12345,
    "createdBy" : "...",
    "updatedBy" : "...",
    "id" : 12345,
    "updateTime" : 12345,
    "version" : 12345
  }
}
                
              

POST /plugins/secure/services/grant/{serviceName}

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

Example

Request
POST /plugins/secure/services/grant/{serviceName}
Content-Type: application/json
Accept: application/json

                
{
  "grantorGroups" : [ "...", "..." ],
  "remoteIPAddress" : "...",
  "accessTypes" : [ "...", "..." ],
  "requestData" : "...",
  "clientIPAddress" : "...",
  "replaceExistingPermissions" : true,
  "forwardedAddresses" : [ "...", "..." ],
  "ownerUser" : "...",
  "enableAudit" : true,
  "delegateAdmin" : true,
  "sessionId" : "...",
  "clusterName" : "...",
  "isRecursive" : true,
  "groups" : [ "...", "..." ],
  "users" : [ "...", "..." ],
  "grantor" : "...",
  "clientType" : "...",
  "roles" : [ "...", "..." ],
  "zoneName" : "...",
  "resource" : {
    "property1" : "...",
    "property2" : "..."
  }
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "message" : "...",
  "httpStatusCode" : 12345,
  "msgDesc" : "...",
  "statusCode" : 12345,
  "messageList" : [ {
    "objectId" : 12345,
    "fieldName" : "...",
    "message" : "...",
    "name" : "...",
    "rbKey" : "..."
  }, {
    "objectId" : 12345,
    "fieldName" : "...",
    "message" : "...",
    "name" : "...",
    "rbKey" : "..."
  } ]
}
                
              

POST /plugins/secure/services/revoke/{serviceName}

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

Example

Request
POST /plugins/secure/services/revoke/{serviceName}
Content-Type: application/json
Accept: application/json

                
{
  "grantorGroups" : [ "...", "..." ],
  "remoteIPAddress" : "...",
  "accessTypes" : [ "...", "..." ],
  "requestData" : "...",
  "clientIPAddress" : "...",
  "replaceExistingPermissions" : true,
  "forwardedAddresses" : [ "...", "..." ],
  "ownerUser" : "...",
  "enableAudit" : true,
  "delegateAdmin" : true,
  "sessionId" : "...",
  "clusterName" : "...",
  "isRecursive" : true,
  "groups" : [ "...", "..." ],
  "users" : [ "...", "..." ],
  "grantor" : "...",
  "clientType" : "...",
  "roles" : [ "...", "..." ],
  "zoneName" : "...",
  "resource" : {
    "property1" : "...",
    "property2" : "..."
  }
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "message" : "...",
  "httpStatusCode" : 12345,
  "msgDesc" : "...",
  "statusCode" : 12345,
  "messageList" : [ {
    "objectId" : 12345,
    "fieldName" : "...",
    "message" : "...",
    "name" : "...",
    "rbKey" : "..."
  }, {
    "objectId" : 12345,
    "fieldName" : "...",
    "message" : "...",
    "name" : "...",
    "rbKey" : "..."
  } ]
}