Managed Object - Profile(vim.profile.Profile)

Property of
ComplianceResult, HostProfileManagerCompositionValidationResultResultElement, InvalidProfileReferenceHost, ProfileEventArgument, ProfileManager
Parameter to
CheckCompliance_Task, ClearComplianceStatus, CreateDefaultProfile, QueryComplianceStatus, QueryExpressionMetadata, QueryHostProfileMetadata, QueryPolicyMetadata, QueryProfileStructure
Returned by
CreateProfile, FindAssociatedProfile
Extended by
ClusterProfile, HostProfile
See also
ComplianceResult, ManagedEntity, ProfileConfigInfo, ProfileDescription
Since
vSphere API 4.0


Managed Object Description

The Profile managed object is the base class for host and cluster profiles.

Properties

Name Type Description
complianceStatusxsd:string

Overall compliance of entities associated with this profile. If one of the entities is out of compliance, the profile is nonCompliant. If all entities are in compliance, the profile is compliant. If the compliance status of one of the entities is not known, compliance status of the profile is unknown. See ComplianceResultStatus.
config PProfileConfigInfo

Configuration data for the profile.
createdTimexsd:dateTime

Time at which the profile was created.
description*ProfileDescriptionDeprecated. As of vSphere API 5.0. use RetrieveDescription instead.

Localizable description of the profile
entity*ManagedObjectReference[]
to a ManagedEntity[]

List of managed entities associated with the profile.
modifiedTimexsd:dateTime

Time at which the profile was last modified.
namexsd:string

Name of the profile.
*May not be presentP Required privilege: Profile.Edit

Methods

Methods defined in this Managed Object
AssociateProfile, CheckProfileCompliance_Task, DestroyProfile, DissociateProfile, ExportProfile, RetrieveDescription

AssociateProfile(associateEntities)

Associate a profile with a managed entity. You can check the compliance of entities associated with a profile by calling the CheckProfileCompliance_Task method.
Required Privileges
Profile.Edit

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Profile used to make the method call.
entityManagedObjectReference[]
to a ManagedEntity[]

The entity(s) to associate with the profile. If an entity is already associated with the profile, the association is maintained and the vCenter Server does not perform any action.

Return Value

Type Description
None

Faults

Type Description
InvalidArgumentThrown if the association conflicts with existing association.
InvalidTypeThrown if the entity is of an unexpeted type.
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

Show WSDL type definition



CheckProfileCompliance_Task(checkCompliance)

Check compliance of an entity against a Profile.
Required Privileges
System.View

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Profile used to make the method call.
entity*ManagedObjectReference[]
to a ManagedEntity[]

If specified, the compliance check is performed on this entity. If the entity is not specified, the vCenter Server runs a compliance check on all the entities associated with the profile. The entity does not have to be associated with the profile.
*Need not be set

Return Value

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

Faults

Type Description
InvalidProfileReferenceHostThrown if the reference host associated with the profile is incompatible or there is no reference host for the profile.
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



DestroyProfile(destroy)

Destroy the profile.
Required Privileges
Profile.Delete

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Profile used to make the method call.

Return Value

Type Description
None

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

Show WSDL type definition



DissociateProfile(dissociateEntities)

Remove the association between a profile and a managed entity.
Required Privileges
Profile.Edit

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Profile used to make the method call.
entity*ManagedObjectReference[]
to a ManagedEntity[]

List of entities. The vCenter Server will remove the associations that the profile has with the entities in the list. If unset, the Server removes all the associations that the profile has with any managed entities in the inventory. If the specified entity is not associated with the profile, the Server does not perform any action.
*Need not be set

Return Value

Type Description
None

Faults

Type Description
InvalidArgumentThrown if the dissociation conflicts with existing association.
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

Show WSDL type definition



ExportProfile(exportProfile)

Export the profile in a serialized form. To use the serialized string to create a profile, specify a ProfileSerializedCreateSpec when you call the HostProfileManager.CreateProfile method.
Required Privileges
Profile.Export

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Profile used to make the method call.

Return Value

Type Description
xsd:stringSerialized form of the profile.

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

Show WSDL type definition



RetrieveDescription(retrieveDescription)

Returns the localizable description for the profile.
Required Privileges
System.View
Since
vSphere API 5.0

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Profile used to make the method call.

Return Value

Type Description
ProfileDescriptionProfile divided into sections containing element descriptions and messages.

Faults

Type Description
InvalidProfileReferenceHostThrown if the reference host associated with the profile is incompatible or there is no reference host for the profile.
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

Show WSDL type definition