<?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 Vserver snapshot-set-reserve in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Vserver-snapshot-set-reserve/m-p/134908#M2486</link>
    <description>&lt;P&gt;I have a problem with Vserver &lt;STRONG&gt;snapshot-set-reserve&lt;/STRONG&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Sets the size of the indicated volume's snapshot reserve to the specified percentage. Reserve space can be used only by snapshots and not by the active file system.&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Input&amp;nbsp;Name&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Range&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;percentage&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;integer&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Percentage to set. Range [0-100].&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;volume&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;string&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Name of volume on which to set the snapshot space reserve.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the percentage range is [0-100] but when I set percentage is integer 0. I get the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invalid integer value for percentage: (null)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when I set percentage is inter 1. Snapshot-set-reserve works..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please let me know how to set snapshot reserve is 0?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 14:32:07 GMT</pubDate>
    <dc:creator>Daredia</dc:creator>
    <dc:date>2025-06-04T14:32:07Z</dc:date>
    <item>
      <title>Vserver snapshot-set-reserve</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Vserver-snapshot-set-reserve/m-p/134908#M2486</link>
      <description>&lt;P&gt;I have a problem with Vserver &lt;STRONG&gt;snapshot-set-reserve&lt;/STRONG&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Sets the size of the indicated volume's snapshot reserve to the specified percentage. Reserve space can be used only by snapshots and not by the active file system.&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Input&amp;nbsp;Name&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Range&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;percentage&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;integer&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Percentage to set. Range [0-100].&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;volume&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;string&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Name of volume on which to set the snapshot space reserve.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the percentage range is [0-100] but when I set percentage is integer 0. I get the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invalid integer value for percentage: (null)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when I set percentage is inter 1. Snapshot-set-reserve works..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please let me know how to set snapshot reserve is 0?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:32:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Vserver-snapshot-set-reserve/m-p/134908#M2486</guid>
      <dc:creator>Daredia</dc:creator>
      <dc:date>2025-06-04T14:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Vserver snapshot-set-reserve</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Vserver-snapshot-set-reserve/m-p/134928#M2487</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested this and it works, can you post the code you are using which generates the error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;using System;
using System.Text;
using System.Collections.Generic;
using NetApp.Manage;

namespace NetApp.NMSDK.Example
{
  class ApiClient 
  {
	 static void Main(string[] args)
	 {
		 try
		 {
			NaServer s = new NaServer("&amp;lt;cluster_name&amp;gt;", 1 , 110);
			s.ServerType = NaServer.SERVER_TYPE.FILER;
			s.TransportType = NaServer.TRANSPORT_TYPE.HTTPS;
			s.Port = 443;
			s.Style = NaServer.AUTH_STYLE.LOGIN_PASSWORD;
			s.SetAdminUser("admin", "&amp;lt;password&amp;gt;");
			s.Vserver = "&amp;lt;vserver_name&amp;gt;";


			NaElement api = new NaElement("snapshot-set-reserve");
			api.AddNewChild("percentage","10");
			api.AddNewChild("volume","&amp;lt;volume_name&amp;gt;");

			NaElement xo = s.InvokeElem(api);
			Console.WriteLine(xo.ToPrettyString(""));


		}
		catch (NaAuthException e)
		{
			Console.Error.WriteLine("Authorization Failed: " + e.Message);
		}
		catch (NaApiFailedException e)
		{
			Console.Error.WriteLine("API FAILED: " + e.Message);
		}
		 catch (Exception e)
		{
			Console.Error.WriteLine(e.Message);
		}
	 }
  }
}&lt;/PRE&gt;&lt;P&gt;Have you tried using the "Set-NcSnapshotReserve" cmdlet? EG:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PS C:\&amp;gt; import-module dataontap
PS C:\&amp;gt; get-nccommand -api snapshot-set-reserve

Name                                Category        Family               Api
----                                --------        ------               ---
Set-NcSnapshotReserve               snapshot        {vserver}            {snapshot-set-reserve}

PS C:\&amp;gt; get-help Set-NcSnapshotReserve

NAME
    Set-NcSnapshotReserve

SYNOPSIS
    Sets the size of the indicated volume's snapshot reserve to the specified percentage.

SYNTAX
    Set-NcSnapshotReserve [-Volume] &amp;lt;String&amp;gt; [-Percentage] &amp;lt;Int32&amp;gt; [-VserverContext &amp;lt;String&amp;gt;] [-Controller
    &amp;lt;NcController[]&amp;gt;] [-ZapiRetryCount &amp;lt;Int32&amp;gt;] [&amp;lt;CommonParameters&amp;gt;]&lt;/PRE&gt;&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 03:22:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Vserver-snapshot-set-reserve/m-p/134928#M2487</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2017-10-03T03:22:45Z</dc:date>
    </item>
  </channel>
</rss>

