Software Development Kit (SDK) and API Discussions

netapp manageability sdk: setting reserved snapshot in volume-create

MEYTAL_GENAH

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

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

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public