<?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>topic Lock Down REST api Role in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Lock-Down-REST-api-Role/m-p/152596#M23</link>
    <description>&lt;P&gt;&lt;SPAN&gt;We have an app that is using the OnTap REST api to create snapshots of specific volumes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;We would like to create a service account that ONLY has the rights to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;create snapshots&amp;nbsp;on&amp;nbsp;&lt;STRONG&gt;specified&lt;/STRONG&gt; volumes.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Using the CLI we can create a "rest-role" that has&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;all&lt;/STRONG&gt;&amp;nbsp;access to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;all volumes:&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;modify -vserver dc1-netsim -role SmartBackupRest -api /api/storage/volumes -access all&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;But when we try to lock this down to a specific operation:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;create -vserver dc1-netsim -role SmartBackupRest -api /api/storage/volumes/snapshots -access all&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;we get "URI does not exist"&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;and if we try to use the actual URI called by the app (including the volume ID):&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;create -vserver dc1-netsim -role SmartBackupRest -api /api/storage/volumes/d9616397-&lt;WBR /&gt;a06b-4da4-931d-ee22f7bffeec/&lt;WBR /&gt;snapshots -access all&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;we get "Invalid character detected in URI."&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;How are we meant to lock the role down effectively?&lt;/DIV&gt;</description>
    <pubDate>Tue, 26 Nov 2019 16:51:02 GMT</pubDate>
    <dc:creator>lcr</dc:creator>
    <dc:date>2019-11-26T16:51:02Z</dc:date>
    <item>
      <title>Lock Down REST api Role</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Lock-Down-REST-api-Role/m-p/152596#M23</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We have an app that is using the OnTap REST api to create snapshots of specific volumes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;We would like to create a service account that ONLY has the rights to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;create snapshots&amp;nbsp;on&amp;nbsp;&lt;STRONG&gt;specified&lt;/STRONG&gt; volumes.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Using the CLI we can create a "rest-role" that has&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;all&lt;/STRONG&gt;&amp;nbsp;access to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;all volumes:&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;modify -vserver dc1-netsim -role SmartBackupRest -api /api/storage/volumes -access all&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;But when we try to lock this down to a specific operation:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;create -vserver dc1-netsim -role SmartBackupRest -api /api/storage/volumes/snapshots -access all&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;we get "URI does not exist"&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;and if we try to use the actual URI called by the app (including the volume ID):&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;create -vserver dc1-netsim -role SmartBackupRest -api /api/storage/volumes/d9616397-&lt;WBR /&gt;a06b-4da4-931d-ee22f7bffeec/&lt;WBR /&gt;snapshots -access all&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;we get "Invalid character detected in URI."&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;How are we meant to lock the role down effectively?&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Nov 2019 16:51:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Lock-Down-REST-api-Role/m-p/152596#M23</guid>
      <dc:creator>lcr</dc:creator>
      <dc:date>2019-11-26T16:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Down REST api Role</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Lock-Down-REST-api-Role/m-p/164282#M180</link>
      <description>&lt;P&gt;we are having the same problem.&lt;BR /&gt;Did you get/found any solution for that until now?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 11:41:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Lock-Down-REST-api-Role/m-p/164282#M180</guid>
      <dc:creator>klmi</dc:creator>
      <dc:date>2021-02-23T11:41:38Z</dc:date>
    </item>
  </channel>
</rss>

