Host Profile Manager Validate Host Profile Composition Task
Validates the proposed host profile composition.
Required privileges: Profile.Edit
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case HostProfileManager/{moId}
.
The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.
"ValidateHostProfileCompositionRequestType Object"
The source host profile of the configurations for composition.
The array of target host profiles that the configurations composite into.
A HostApplyProfile object
contains the sub profiles that will be merged from the source to
the target host profiles, and all the ancestors of these sub
profiles. For singleton sub profile, it will be added into a
target host profile if it doesn't exist in the target; otherwise,
it replaces the one in the target.
The member variable
ApplyProfile.toBeMerged of these sub profiles
should have a value of true
. The member variables
ApplyProfile.toBeMerged
ApplyProfile.toReplaceWith,
ApplyProfile.toBeDeleted
of the ancestors should have a value of false
.
A HostApplyProfile object contains the sub profiles that will be used to replace the array in the target host profiles, and all the ancestors of these sub profiles. Similar to above except that the member variable ApplyProfile.toReplaceWith is turned on.
A HostApplyProfile object contains the sub profiles that will be deleted from the source and the target host profiles, and all the ancestors of these sub profiles. Similar to above except that the member variable ApplyProfile.toBeDeleted is turned on.
A HostApplyProfile
object contains the sub profiles that the member variable
ApplyProfile.enabled will be copied from the
source host profile to all the target host profiles, and all the
ancestors of these sub profiles.
The member variable
ApplyProfile.copyEnableStatus
of these sub profiles is turned on. The member variable
ApplyProfile.copyEnableStatus of the
ApplyProfile.copyEnableStatus of the
ancestors should have a value of false
.
Indicates that the validation result for each target don't contain the source-target difference.
This method will returns a Task object with which to monitor the operation. The Task.info.result will contain a HostProfileManagerCompositionValidationResult object containing the status of the operation, any validation errors and the validation results.
"MoRefTask Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/HostProfileManager/{moId}/ValidateHostProfileComposition_Task