Host Profile Manager Retrieve Answer File For Profile

Host Profile Manager Retrieve Answer File For Profile

Returns the answer file associated with a particular host, augmented with whatever answer file values are required for the supplied host profile.

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/HostProfileManager/{moId}/RetrieveAnswerFileForProfile
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 9.0.0.0 APIs.


Request Body
RetrieveAnswerFileForProfileRequestType of type(s) application/json
Required
"RetrieveAnswerFileForProfileRequestType Object"
host
Required

Host with which the answer file is associated.

Required privileges: Profile.Edit

applyProfile
Required

Profile configuration used to generate answer file

Authentication
This operation uses the following authentication methods.
Responses
200

Answer file object will be returned.

This response body class contains all of the following: AnswerFile
{
    "0": "A",
    "1": "n",
    "2": "s",
    "3": "w",
    "4": "e",
    "5": "r",
    "6": "F",
    "7": "i",
    "8": "l",
    "9": "e",
    "10": " ",
    "11": "O",
    "12": "b",
    "13": "j",
    "14": "e",
    "15": "c",
    "16": "t"
}

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