0

How do I list all the agents which are used in a specific environment of a Udeploy application?

The resources within the application environment may have hierarchical relationship with an agent at the leaf level of the resource structure.

I need to list the agents only.

Please note that the getEnvironmentBaseResource gives me only the name of the top most resource layer, but it does not list the entire resource hierarchy till the agents.

Daniel
  • 10,641
  • 12
  • 47
  • 85

1 Answers1

0

You should make a nested call.

First get all environments within the application, with:

getEnvironmentsInApplication

And then, get all base resources for an environment with getEnvironmentBaseResources

After that you may parse the response with groovy to get and manipulate the json

Rcordoval
  • 1,932
  • 2
  • 19
  • 25