Software Development Kit (SDK) and API Discussions

netapp manageability sdk: setting reserved snapshot in volume-create

MEYTAL_GENAH
2,523 Views

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

1 ACCEPTED SOLUTION

MEYTAL_GENAH
2,523 Views

Hi,

I found the wanted api:

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

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

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

thanks.

View solution in original post

1 REPLY 1

MEYTAL_GENAH
2,524 Views

Hi,

I found the wanted api:

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

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

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

thanks.

Public