Host Profile Manager Retrieve Answer File

Host Profile Manager Retrieve Answer File

Returns the answer file associated with a particular host.

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/HostProfileManager/{moId}/RetrieveAnswerFile
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
RetrieveAnswerFileRequestType of type(s) application/json
Required
"RetrieveAnswerFileRequestType Object"
host
Required

Host with which the answer file is associated.

Required privileges: Profile.Edit

Authentication
This operation uses the following authentication methods.
Responses
200

Answer file object will be returned if it exists.

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}/RetrieveAnswerFile