Hi,
I have DFM 4.0 Server and use it's API to retrieve members of specific group using group-member-list-iter-start/next/end command.
For this command, according to the documentation, I have to specify either groups or type or both. I want to get all members of a group, so I specify group name only.
This is what I do:
1 NaElement input = new NaElement("group-member-list-iter-start");
2 input.addNewChild("object-name-or-id", "lunsGroup");
3 NaElement output = server.invokeElem(input);
4 String records = output.getChildContent("records");
5 if (!records.equals("0")) {
6 String tag = output.getChildContent("tag");
7 input = new NaElement("group-member-list-iter-next");
8 input.addNewChild("maximum", records);
9 input.addNewChild("tag", tag);
10 output = server.invokeElem(input);
11}
But I get exception on line 3 - "netapp.manage.NaAPIFailedException: You must specify type when listing objects in global group. (errno=13001)"
It seems it can't get provided group name if it speaks about global group and requires to specify type.
Did I provide group name on line 2 in a wrong way? If so, then how can I do that correctly?
Regards,
Hasmik