Retrieve the url of the ManageIQ server


#1

Hello,

I would like to know if it is possible to retrieve the URL of the ManageIQ server where the code is executed.

Thank you for your help.


#2

not the URL directly, but you have access to

$evm.root['miq_server'].name
$evm.root['miq_server'].hostname
$evm.root['miq_server'].ipaddress

# Access the miq_server object via rails console
$evm.vmdb(:miq_server).first

#3

Thank you But for your answer…