Host Profile Manager Validate Host Profile Composition Task

Host Profile Manager Validate Host Profile Composition Task

Validates the proposed host profile composition.

Required privileges: Profile.Edit

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/HostProfileManager/{moId}/ValidateHostProfileComposition_Task
COPY
Path Parameters
string
moId
Required

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}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.


Request Body
Required
"ValidateHostProfileCompositionRequestType Object"
object
source
Required

Reference to an instance of the Profile managed object.

array of object
targets
Optional

The array of target host profiles that the configurations composite into.

object
toBeMerged
Optional

The HostApplyProfile data object provides access to subprofiles that contain configuration data for different host capabilities.

The Profile Engine will use any configuration data that you supply to overwrite the host configuration. See the ExecuteHostProfile and ApplyHostConfig_Task methods.

object
toReplaceWith
Optional

The HostApplyProfile data object provides access to subprofiles that contain configuration data for different host capabilities.

The Profile Engine will use any configuration data that you supply to overwrite the host configuration. See the ExecuteHostProfile and ApplyHostConfig_Task methods.

object
toBeDeleted
Optional

The HostApplyProfile data object provides access to subprofiles that contain configuration data for different host capabilities.

The Profile Engine will use any configuration data that you supply to overwrite the host configuration. See the ExecuteHostProfile and ApplyHostConfig_Task methods.

object
enableStatusToBeCopied
Optional

The HostApplyProfile data object provides access to subprofiles that contain configuration data for different host capabilities.

The Profile Engine will use any configuration data that you supply to overwrite the host configuration. See the ExecuteHostProfile and ApplyHostConfig_Task methods.

boolean
errorOnly
Optional

Indicates that the validation result for each target don't contain the source-target difference.

Authentication
This operation uses the following authentication methods.
Responses
200

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.

Returns MoRefTask of type(s) application/json
"MoRefTask Object"

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/HostProfileManager/{moId}/ValidateHostProfileComposition_Task