Host Profile Manager Export Answer File Task

Host Profile Manager Export Answer File Task

Export a host's answer file into a serialized form.

The method returns a string that contains only the list of user input options. See AnswerFile.userInput.

Required privileges: Profile.Export

Request
URI
POST
https://{vcenter-host}/sdk/vim25/{release}/HostProfileManager/{moId}/ExportAnswerFile_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.3.0 APIs.


Request Body
ExportAnswerFileRequestType of type(s) application/json
Required

Show optional properties

{
    "host": {}
}
{
    "host": {
        "_typeName": "string",
        "type": "string",
        "value": "string"
    }
}
host
Required

Reference to an instance of the HostSystem managed object.

Authentication
This operation uses the following authentication methods.
Responses
200

This method returns a Task object with which to monitor the operation. If the task is successful, the Task.info.result property is a string that contains a serialized form of the answer file.

Returns MoRefTask of type(s) application/json
This response body class contains all of the following: MoRefExtensibleManagedObject
{
    "_typeName": "string",
    "type": "string",
    "value": "string"
}