I can able to list the Host profiles in my vCenter.
var vCenterName = HostName.sdkConnection;
var vCProfile = vCenterName;
for each (var profile in vCProfile.hostProfileManager.profile) {
System.log(profile.name);
}
can any one help me with VRO pice of code, How to assign (i.e, associate) and apply a host profile to a selected ESXi host.
1, i am trying to associate profile with below command.
associateProfile(VcManagedEntity []); -> i am confusing to define with host or Profile ManagedEntity in the VcManagedEntity.
2, If we directly try by applying the host profile on host, how we can apply host profile with the object
var myVcApplyHostProfileConfigurationSpec = new VcApplyHostProfileConfigurationSpec() ;