Host Profile Manager Retrieve Host Customizations For Profile

Host Profile Manager Retrieve Host Customizations For Profile

This is the batch version of vim.profile.host.ProfileManager@retrieveAnswerFileForProfile.

Returns a map that contains the hosts and their answer files associated with these hosts, augmented with whatever answer file values are required for the supplied host profile.

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/HostProfileManager/{moId}/RetrieveHostCustomizationsForProfile
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
"RetrieveHostCustomizationsForProfileRequestType Object"
array of object
hosts
Optional

Hosts with which the answer files are associated.

Required privileges: Profile.Edit

object
applyProfile
Required

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.

Authentication
This operation uses the following authentication methods.
Responses
200

A map contains the hosts and their answer files.

Returns Array of StructuredCustomizations of type(s) application/json
[
    "StructuredCustomizations Object"
]

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