Software Development Kit (SDK) and API Discussions

What is the DFM API call to find a cluster?

lewisn
4,829 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
4,829 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
4,829 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
4,829 Views

Which version of DFM are you using?

HASMIK_HAYRAPETYAN
4,829 Views

Mine is 5.1.

aashray
4,830 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
4,829 Views

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

Public