Software Development Kit (SDK) and API Discussions

What is the DFM API call to find a cluster?

lewisn

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?

1 ACCEPTED 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

View solution in original post

5 REPLIES 5

HASMIK_HAYRAPETYAN

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.

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

View solution in original post

Thanks a lot Aashray!!! That is exactly what I need.

Which version of DFM are you using?

Mine is 5.1.

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