<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Ranger 0.7 Rest API in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-0-7-Rest-API/m-p/227708#M72602</link>
    <description>&lt;P&gt;I am able to create a policy with the below command;&lt;/P&gt;&lt;PRE&gt;curl -iv -u username:password -H "content-type:application/json" -X POST &lt;A href="http://hostname:6080/service/public/api/policy/" target="_blank"&gt;http://hostname:6080/service/public/api/policy/&lt;/A&gt; -d '{ "policyName": "api-Test", "resourceName": "/data", "description": "Testing", "repositoryName": "HDPPRD01_hadoop", "repositoryType": "hdfs", "isEnabled": "true", "isRecursive": "true", "isAuditEnabled": "true", "permMapList": [{ "userList":["sudheer"],"groupList":["hadoop_group"], "permList": ["Read","Execute", "Write", "Admin"] }] }'&lt;/PRE&gt;&lt;P&gt;But I want to update that policy with the Rest APi:&lt;/P&gt;&lt;P&gt;Tried with this command but throwing some error: (The specified HTTP method is not allowed for the requested resource.)&lt;/P&gt;&lt;PRE&gt;curl -iv -u username:password -H "content-type:application/json" -X PUT &lt;A href="http://hostname:6080/service/public/api/policy/" target="_blank"&gt;http://hostname:6080/service/public/api/policy/&lt;/A&gt; -d '{ "policyName": "api-Test", "resourceName": "/tmp", "description": "Testing", "repositoryName": "HDPPRD01_hadoop", "repositoryType": "hdfs", "isEnabled": "true", "isRecursive": "true", "isAuditEnabled": "true", "permMapList": [{ "userList":["velagapudi"],"groupList":["hadoop_user"], "permList": ["Read","Execute", "Write", "Admin"] }] }'&lt;/PRE&gt;</description>
    <pubDate>Wed, 13 Dec 2017 03:30:52 GMT</pubDate>
    <dc:creator>itsssudheer</dc:creator>
    <dc:date>2017-12-13T03:30:52Z</dc:date>
    <item>
      <title>Ranger 0.7 Rest API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-0-7-Rest-API/m-p/227708#M72602</link>
      <description>&lt;P&gt;I am able to create a policy with the below command;&lt;/P&gt;&lt;PRE&gt;curl -iv -u username:password -H "content-type:application/json" -X POST &lt;A href="http://hostname:6080/service/public/api/policy/" target="_blank"&gt;http://hostname:6080/service/public/api/policy/&lt;/A&gt; -d '{ "policyName": "api-Test", "resourceName": "/data", "description": "Testing", "repositoryName": "HDPPRD01_hadoop", "repositoryType": "hdfs", "isEnabled": "true", "isRecursive": "true", "isAuditEnabled": "true", "permMapList": [{ "userList":["sudheer"],"groupList":["hadoop_group"], "permList": ["Read","Execute", "Write", "Admin"] }] }'&lt;/PRE&gt;&lt;P&gt;But I want to update that policy with the Rest APi:&lt;/P&gt;&lt;P&gt;Tried with this command but throwing some error: (The specified HTTP method is not allowed for the requested resource.)&lt;/P&gt;&lt;PRE&gt;curl -iv -u username:password -H "content-type:application/json" -X PUT &lt;A href="http://hostname:6080/service/public/api/policy/" target="_blank"&gt;http://hostname:6080/service/public/api/policy/&lt;/A&gt; -d '{ "policyName": "api-Test", "resourceName": "/tmp", "description": "Testing", "repositoryName": "HDPPRD01_hadoop", "repositoryType": "hdfs", "isEnabled": "true", "isRecursive": "true", "isAuditEnabled": "true", "permMapList": [{ "userList":["velagapudi"],"groupList":["hadoop_user"], "permList": ["Read","Execute", "Write", "Admin"] }] }'&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Dec 2017 03:30:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-0-7-Rest-API/m-p/227708#M72602</guid>
      <dc:creator>itsssudheer</dc:creator>
      <dc:date>2017-12-13T03:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger 0.7 Rest API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-0-7-Rest-API/m-p/227709#M72603</link>
      <description>&lt;P&gt;hi &lt;A rel="user" href="https://community.cloudera.com/users/45207/sudheerpc2.html" nodeid="45207"&gt;@Sudheer Velagapudi&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;To update the policy you need to specify the policy ID(At the end of the URL) where as in creation time, it automatically increment the policy Id.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;ex: &lt;A href="http://hostname:6080/service/public/api/policy/" target="_blank"&gt;http://hostname:6080/service/public/api/policy/&lt;/A&gt;&lt;STRONG&gt;&lt;EM&gt;{id}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 06:30:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-0-7-Rest-API/m-p/227709#M72603</guid>
      <dc:creator>bkosaraju</dc:creator>
      <dc:date>2017-12-13T06:30:46Z</dc:date>
    </item>
  </channel>
</rss>

