Highlighted
Respected Contributor.
Respected Contributor.
285 views

API Java - List all Node from Business App

Jump to solution

Hi,

Is there a way to list nodes that belong to a Business App.?

Can you please share the API Java that was used to collect and print list of node belonging to a Business App.

Thank you,

Gerry

0 Likes
1 Solution

Accepted Solutions
Highlighted
Respected Contributor.
Respected Contributor.

Re: API Java - List all Node from Business App

Jump to solution

Thank you for your help (greatly appreciated). It is now working.Capture2.PNG

 

View solution in original post

5 Replies
Highlighted
Super Contributor.
Super Contributor.

Re: API Java - List all Node from Business App

Jump to solution

An exemple to get the computer (but easy to switch to node) with a filter on an application "%NAME%"

{
   "nodes":  [
     {
       "type": "business_application",
       "queryIdentifier": "business_application",
       "visible": true,
       "includeSubtypes": true,
       "layout": ["display_label"],
       "attributeConditions": [{
          "attribute": "name",
         "operator": "like",
         "value": "%NAME%"
     }]},
  {
       "type": "host_node",
       "queryIdentifier": "host_node",
       "visible": true,
       "includeSubtypes": true,
       "layout": ["display_label"]  
  }],
 
"relations": [
    {
      "type": "containment",
      "queryIdentifier": "containment_app_node",
      "visible": true,
      "includeSubtypes": true,
      "layout": [
        "display_name"
      ],
      "from": "business_application",
      "to": "host_node"
    },
  ]
}
Highlighted
Respected Contributor.
Respected Contributor.

Re: API Java - List all Node from Business App

Jump to solution

Thank you,  It looks like, I doing something wrong...output error

 

Capture.PNG

Highlighted
Super Contributor.
Super Contributor.

Re: API Java - List all Node from Business App

Jump to solution

Hi Gerry,

Be sure to use the "topologyQuery" method, i think you're using a method to call an existing query here, that's why it says it doesn't exists.

Best regards,
Yann Pingot

Highlighted
Respected Contributor.
Respected Contributor.

Re: API Java - List all Node from Business App

Jump to solution

Thank you for your help (greatly appreciated). It is now working.Capture2.PNG

 

View solution in original post

Highlighted
Respected Contributor.
Respected Contributor.

Re: API Java - List all Node from Business App

Jump to solution

Does anyone know how to change the output format to look like the following ...

Business_App1,  Node1, Node 2, Node 3

Business_App2,  Node1, Node 2

Business_App3,  Node1, Node 2, Node 3

Thank you.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.