NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Software Development Kit (SDK) and API Discussions

What is the DFM API call to find a cluster?

lewisn
6,215 Views

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

aashray
6,215 Views

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
6,215 Views

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.

aashray
6,215 Views

Which version of DFM are you using?

HASMIK_HAYRAPETYAN
6,215 Views

Mine is 5.1.

aashray
6,216 Views

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

HASMIK_HAYRAPETYAN
6,215 Views

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

Public