Subscribe
Accepted Solution

netapp manageability sdk: setting reserved snapshot in volume-create

Hi,

I am trying to automate a creation of a volume, and I need to set the reserved snapshot percentage to 0. the problem is that I don't know the child's name.

Meaning, I don't know what to put instead of the question marks in the following code:

s = new NaServer(Server, 1, 0);

s.Style = NaServer.AUTH_STYLE.LOGIN_PASSWORD;

s.SetAdminUser(User, Pwd);

xi = new NaElement("volume-create");

xi.AddNewChild("volume", "VolName");

xi.AddNewChild("size", "20m");

xi.AddNewChild("containing-aggr-name", "aggr0");

xi.AddNewChild("????????", "0");

s.InvokeElem(xi);

I have Data ONTAP 7.2.4 (yes, it's old...).

Thank you,

Meytal

Re: netapp manageability sdk: setting reserved snapshot in volume-create

Hi,

I found the wanted api:

xi = new NaElement("snapshot-set-reserve");

xi.AddNewChild("volume", "volName");

xi.AddNewChild("percentage", "0");

thanks.