Forum Discussion
Steve_Francis
13 years agoFormer Employee
In the coming release, in a week or two, there will be direct access to all properties of a host.n
nRight now you can use HOSTNAME and WILDVALUE (quoted) in scripts.n
nYou can also pass in any property as a parameter to your groovy script, and then access positionally:n
ne.g.n
nhost = this.args[0]n
nso youd use HOSTNAME as the parameters to your script in the datasource screen.n
nThere is currently a risk that WILDVALUE, when substituted, could break the script syntax (if the WILDVALUE object contains a quote, say). That risk will go away in the coming release.
Related Content
- 2 years ago
- 7 months ago
- 4 years ago