VMware Cloud Community
defmania
Enthusiast
Enthusiast

Retrieve VM object id from vROps

Hey,

Is there an easy way to retrieve the vROps object ID of a VM object? I'm asking because I'm thinking of a way to generate the link that will take a vRA user straight to the All Metrics view in vROps for his VM.

I was thinking that this can be generated as a day 2 action in vRA, so that if users had performance issues with their VMs they can jump straight to vROps and take a peak at the metrics.

Has anyone implemented something similar successfully?

PS: I am aware of the health badge that shows up in vRA in on the item details view, but I'm looking for something more.

Thanks!

0 Kudos
3 Replies
daphnissov
Immortal
Immortal

You should be able to get this with either the REST API directly, or the cmdlets build into PowerCLI. From there, you can build your day 2 action as XaaS using a scriptable task with the REST plug-in to fetch the vROps ID based on the vCAC and VM entity ID.

0 Kudos
defmania
Enthusiast
Enthusiast

Hey daphnissov,

This should work via the HTTP-REST pack in vRO? I'm thinking of using that for getting vRO/vRA to talk to vROps and grab that VM object-id, based on the VM's name, and then generate the link for the user to receive via email. All this should be accomplised by a XaaS item or day 2 vRA action.

Sounds ok?

Thanks!

0 Kudos
daphnissov
Immortal
Immortal

Yeah, I can't think of why it wouldn't work.

0 Kudos