Managed Object - HostProfileManager

Property of
ServiceContent
Extends
ProfileManager
See also
ApplyProfile, HostConfigSpec, HostProfileManagerConfigTaskList, HostSystem, ProfileMetadata
Since
vSphere API 4.0


Managed Object Description

The HostProfileManager provides access to a list of HostProfiles and it defines methods to manipulate profiles and AnswerFiles.

Properties

Name Type Description
None
Properties inherited from ProfileManager
profile

Methods

Methods defined in this Managed Object
ApplyHostConfig_Task, CreateDefaultProfile, GenerateConfigTaskList, QueryHostProfileMetadata
Methods inherited from ProfileManager
CreateProfile, FindAssociatedProfile, QueryPolicyMetadata

ApplyHostConfig_Task

Apply the configuration to the host. If you specify any user input, the configuration will be saved in the AnswerFile associated with the host. If there is no answer file, the Profile Engine will create one.
Required Privileges
Dynamic - See discussion above

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the HostProfileManager used to make the method call.
hostManagedObjectReference
to a HostSystem

Host to be updated. User must have sufficient credentials and privileges to satisfy the contents of the configSpec.
configSpecHostConfigSpec

Set of configuration changes to be applied to the host. The changes are returned by the HostProfile.ExecuteHostProfile method in the ProfileExecuteResult.configSpec property.

Return Value

Type Description
ManagedObjectReference
to a SmsTask
This method returns a Task object with which to monitor the operation.

Faults

Type Description
HostConfigFailedThrown if the ESX Server cannot apply the configuration changes.
InvalidStateThrown if the host is not in maintenance mode and the configuration specification requires it.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None



CreateDefaultProfile

Create a default subprofile of a given type (for example, a VirtualSwitchProfile). After you create the subprofile, you can add it to a configuration specification and update the host profile:
Required Privileges
System.View

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the HostProfileManager used to make the method call.
profileTypexsd:string

Type of profile to create. The profile types are system-defined (ApplyProfile.profileTypeName).

Return Value

Type Description
ApplyProfileDerived subprofile of type profileType.

Faults

Type Description
vim.fault.InvalidProfileReferenceHostThrown if the reference host associated with the profile is incompatible or there is no reference host for the profile.
InvalidArgumentThrown if either the profileType or profileTypeName is incorrect.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None



GenerateConfigTaskList

Deprecated. As of vSphere API 6.0 use GenerateHostProfileTaskList_Task

Generate a list of configuration tasks that will be performed on the host during HostProfile application.
Required Privileges
System.View

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the HostProfileManager used to make the method call.
configSpecHostConfigSpec

ConfigSpec which was proposed by ExecuteHostProfile method.
hostManagedObjectReference
to a HostSystem

Host on which the HostProfile application needs to be carried out.

Return Value

Type Description
HostProfileManagerConfigTaskListList of Configuration tasks.

Faults

Type Description
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None



QueryHostProfileMetadata

Retrieve the metadata for a set of profiles.
Required Privileges
System.View

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the HostProfileManager used to make the method call.
profileName*xsd:string[]

Names of the profiles for which metadata is requested. If not set, the method returns metadata for all the profiles.
*Need not be set

Return Value

Type Description
ProfileMetadata[]List of profile metadata objects.

Faults

Type Description
vim.fault.InvalidProfileReferenceHostThrown if the reference host associated with the profile is incompatible or there is no reference host for the profile.
InvalidArgumentThrown if profileName parameter is invalid.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None