Software Development Kit (SDK) and API Discussions
Software Development Kit (SDK) and API Discussions
I am trying to find out if there is an API call to determine what cluster a particular node belongs to. Anyone have an idea?
Solved! See The Solution
Hi,
I think the API you are looking for is dfm-related-objects-list-info.
You'll have to pass as parameter the name of the node and it will return you data about its parent (the parent-cluster in this case).
Example Input :
<dfm-related-objects-list-info>
<object-name-or-id>clus_2-01</object-name-or-id>
</dfm-related-objects-list-info>
Example Output :
<parent-object-list>
<parent-object>
<name>clus_2</name>
<id>3846</id>
<full-name>clus_2</full-name>
<type>cluster</type>
</parent-object>
</parent-object-list>
<child-count-list>
<child-count>
<count>1</count>
<type>aggregate</type>
</child-count>
</child-count-list>
Hope this helps.
Best Regards
Aashray Arora
I am also interested in this, because cluster nodes come as filers via DFM API and it seems there is no information about parent cluster.
Which version of DFM are you using?
Mine is 5.1.
Hi,
I think the API you are looking for is dfm-related-objects-list-info.
You'll have to pass as parameter the name of the node and it will return you data about its parent (the parent-cluster in this case).
Example Input :
<dfm-related-objects-list-info>
<object-name-or-id>clus_2-01</object-name-or-id>
</dfm-related-objects-list-info>
Example Output :
<parent-object-list>
<parent-object>
<name>clus_2</name>
<id>3846</id>
<full-name>clus_2</full-name>
<type>cluster</type>
</parent-object>
</parent-object-list>
<child-count-list>
<child-count>
<count>1</count>
<type>aggregate</type>
</child-count>
</child-count-list>
Hope this helps.
Best Regards
Aashray Arora
Thanks a lot Aashray!!! That is exactly what I need.