Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
netapp manageability sdk: setting reserved snapshot in volume-create
2012-04-30
05:05 AM
2,857 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! See The Solution
1 ACCEPTED SOLUTION
migration has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I found the wanted api:
xi = new NaElement("snapshot-set-reserve");
xi.AddNewChild("volume", "volName");
xi.AddNewChild("percentage", "0");
thanks.
1 REPLY 1
migration has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I found the wanted api:
xi = new NaElement("snapshot-set-reserve");
xi.AddNewChild("volume", "volName");
xi.AddNewChild("percentage", "0");
thanks.
