# Managed Object - HostProfile

Extends
  Profile
See also
  HostProfileConfigSpec, HostProfileValidationFailureInfo, HostSystem, ProfileDeferredPolicyOptionParameter, ProfileExecuteResult
Since
  vSphere API 4.0

## Managed Object Description

Properties

Name | Type | Description
--- | --- | ---
referenceHost* | ManagedObjectReference to a HostSystem |
validationFailureInfo* | HostProfileValidationFailureInfo | Since vSphere API 6.7
validationState* | xsd:string | Since vSphere API 6.7
validationStateUpdateTime* | xsd:dateTime | Since vSphere API 6.7
Properties inherited from Profile
complianceStatus, config, createdTime, description, entity, modifiedTime, name

*May not be present

Methods

Methods defined in this Managed Object
ExecuteHostProfile, HostProfileResetValidationState, UpdateHostProfile, UpdateReferenceHost
Methods inherited from Profile
AssociateProfile, CheckProfileCompliance_Task, DestroyProfile, DissociateProfile, ExportProfile, RetrieveDescription

# ExecuteHostProfile

Required Privileges
  System.View

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the HostProfile used to make the method call.
host P | ManagedObjectReference to a HostSystem | Since vSphere API 4.0
deferredParam* P | ProfileDeferredPolicyOptionParameter[] | Since vSphere API 4.0

*Need not be set P Required privilege - see tooltip for details

Return Value

Type | Description
--- | ---
ProfileExecuteResult |

Faults

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

Events

Type
None

# HostProfileResetValidationState

Required Privileges
  Profile.Edit
Since
  vSphere API 6.7

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the HostProfile used to make the method call.

Return Value

Type | Description
--- | ---
None

Faults

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

Events

Type
None

# UpdateHostProfile

Required Privileges
  Profile.Edit

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the HostProfile used to make the method call.
config P | HostProfileConfigSpec | Since vSphere API 4.0

P Required privilege: config

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
DuplicateName |
ProfileUpdateFailed |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

# UpdateReferenceHost

Required Privileges
  Profile.Edit

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the HostProfile used to make the method call.
host* P | ManagedObjectReference to a HostSystem | Since vSphere API 4.0

*Need not be set P Required privilege: host

Return Value

Type | Description
--- | ---
None

Faults

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

Events

Type
None