<?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 Re: RBAC over RestRoles in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/RBAC-over-RestRoles/m-p/164473#M183</link>
    <description>&lt;P&gt;Hi Mat,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks for that useful info.&lt;/P&gt;&lt;P&gt;After enabling the Web Service for our (ontAPI) Role it worked also well with Rest with all RBAC Features.&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>Fri, 26 Feb 2021 13:17:14 GMT</pubDate>
    <dc:creator>klmi</dc:creator>
    <dc:date>2021-02-26T13:17:14Z</dc:date>
    <item>
      <title>RBAC over RestRoles</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/RBAC-over-RestRoles/m-p/164281#M179</link>
      <description>&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are currently in the phase to switchover from ontapi to Rest-API.&lt;BR /&gt;For some regulations, we need to use RBAC, so that special AD-Groups/User get reduced API-Access to the vserver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need a role for Snapshot-Management (Backup Application), so this user only can create/delete snapshots on the vserver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far i can only get it working with giving RestAccess to API&amp;nbsp; &lt;STRONG&gt;/api/storage/volumes&lt;/STRONG&gt;, but this would also give rights to create/destroy volumes and more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to create a more strict role, but it doesnot work.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ontap_98::&amp;gt; security login rest-role create -vserver &amp;lt;vserver&amp;gt; -role rest_snapadmin -api /api/storage/volumes/{volume.uuid}/snapshots -access all&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Error: command failed: Invalid character detected in URI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anybody an Idea, how to restirct the Access to snapshot only operations with REST-API?&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>Wed, 04 Jun 2025 10:33:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/RBAC-over-RestRoles/m-p/164281#M179</guid>
      <dc:creator>klmi</dc:creator>
      <dc:date>2025-06-04T10:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: RBAC over RestRoles</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/RBAC-over-RestRoles/m-p/164400#M181</link>
      <description>&lt;P&gt;Hi Klaus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't believe the current ONTAP release supports granular RBAC access to an individual volume via the REST API. I tested this on ONTAP 9.8 and got the same result (replacing '{volume.uuid}' with a volume's UUID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cluster1::&amp;gt; security login rest-role creat -vserver vserver1 -role rest_snapadmin -api /api/storage/volumes/1c25a5c1-bd20-11ea-8d7a-00a098dea1f0/snapshots -access all
Error: command failed: Specified URI path is invalid or not supported. Verify that the URI contains only valid characters. Variable-path URIs are not supported.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I think this may be available in a future ONTAP release however in the meantime you could rehost the volume in another SVM and delegate access to '/api/storage/volumes'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 05:17:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/RBAC-over-RestRoles/m-p/164400#M181</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2021-02-25T05:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: RBAC over RestRoles</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/RBAC-over-RestRoles/m-p/164465#M182</link>
      <description>&lt;P&gt;Hi Klaus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whilst it's not currently possible to delegate permissions using the 'security login rest-role create' command you can use the traditional method as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;security login role create -role snapadmin -cmddirname "volume snapshot" -access all -query "-vserver vserver1 -volume cifs_data_001"

vserver services web access create -name rest -role snapadmin -vserver cluster1

security login create snapadmin -application http -authentication-method password -role snapadmin

curl -ku snapadmin:&amp;lt;password&amp;gt; -X GET "https://192.168.100.2/api/storage/volumes/4a8e36e3-2861-11eb-9071-0050568028c9/snapshots"

{
  "records": [
    {
      "uuid": "b43de933-4b7f-4bcd-b51d-b759b0752a4a",
      "name": "snapmirror.1b2e97b3-285c-11eb-9660-00505680d956_2150679890.2020-11-16_224256",
      "_links": {
        "self": {
          "href": "/api/storage/volumes/4a8e36e3-2861-11eb-9071-0050568028c9/snapshots/b43de933-4b7f-4bcd-b51d-b759b0752a4a"
        }
      }
    },
    {
      "uuid": "8c3ace7d-2b99-4dbe-b05c-f954ed37547c",
      "name": "snapmirror.1b2e97b3-285c-11eb-9660-00505680d956_2150679890.2020-11-19_020943",
      "_links": {
        "self": {
          "href": "/api/storage/volumes/4a8e36e3-2861-11eb-9071-0050568028c9/snapshots/8c3ace7d-2b99-4dbe-b05c-f954ed37547c"
        }
      }
    }
  ],
  "num_records": 2,
  "_links": {
    "self": {
      "href": "/api/storage/volumes/4a8e36e3-2861-11eb-9071-0050568028c9/snapshots"
    }
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: if you ever renamed the volume you'd also need to update the name in the 'query':&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;security login role create -role snapadmin -cmddirname "volume snapshot" -access all -query "-vserver vserver1 -volume cifs_data_001"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 01:32:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/RBAC-over-RestRoles/m-p/164465#M182</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2021-02-26T01:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: RBAC over RestRoles</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/RBAC-over-RestRoles/m-p/164473#M183</link>
      <description>&lt;P&gt;Hi Mat,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks for that useful info.&lt;/P&gt;&lt;P&gt;After enabling the Web Service for our (ontAPI) Role it worked also well with Rest with all RBAC Features.&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>Fri, 26 Feb 2021 13:17:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/RBAC-over-RestRoles/m-p/164473#M183</guid>
      <dc:creator>klmi</dc:creator>
      <dc:date>2021-02-26T13:17:14Z</dc:date>
    </item>
  </channel>
</rss>

