VMware Cloud Community
FTVDaniel
Contributor
Contributor
Jump to solution

transform a computeResource object to hostSystem object

hello,

to add a new host to a vcenter I use the "add standalone host" workflow but the result object is a computeResource object and what I expected was a hostSystem object to be able to configure it

is there a possibility to transform an object type to an other one or do I need to do find the host by his name?

thanks

0 Kudos
1 Solution

Accepted Solutions
eoinbyrne
Expert
Expert
Jump to solution

If you look at the ComputeResource class document here - vRO API Explorer by Dr Ruurd and Flores of ITQ

The ComputeResource has a member named "host" which is an array of VcHostSystem objects which make up the resource...

- HTH

View solution in original post

0 Kudos
2 Replies
eoinbyrne
Expert
Expert
Jump to solution

If you look at the ComputeResource class document here - vRO API Explorer by Dr Ruurd and Flores of ITQ

The ComputeResource has a member named "host" which is an array of VcHostSystem objects which make up the resource...

- HTH

0 Kudos
FTVDaniel
Contributor
Contributor
Jump to solution

thanks eoinbyrn

it is as simple as that

I did not new the existance of  this api explorer it is a good tool

pb resolved

0 Kudos