I am trying to surface some Octopus status information on a dashboard webpage so that I don’t have to go into Octopus to see if, for example, a Tentacle has a problem.
I was able to easily use the fantastic API to get each machine and it’s status. Where I’m getting tripped up is finding a way to generate a regular web (non API) URL to each machine. For example, this dashboard would show a Tentacle in distress, the user clicks it, and the Octopus site opens.
I have located the ‘Links.Self’ URL snippet that looks like “/api/machines/Machines-64” but that only a partial URL and is also an API URL. I can hack my way around with a some string manipulation and knowledge of the root URL (http://octopus) and end up with a URL like 'http://octopus/app#/machines/Machines-64", but that’s messy.
Is there an easy way to get from a machine, or a release, to the web page that represents that item?