Host Profile Manager Update Answer File Task

Host Profile Manager Update Answer File Task

Update the AnswerFile for the specified host.

If there is no answer file associated with the host, the Profile Engine uses the answer file configuration specification to create a new one.

Required privileges: Profile.Edit

Request
URI
POST
https://{vcenter-host}/sdk/vim25/{release}/HostProfileManager/{moId}/UpdateAnswerFile_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
UpdateAnswerFileRequestType of type(s) application/json
Required
{
    "host": {
        "_typeName": "string",
        "type": "string",
        "value": "string"
    },
    "configSpec": {
        "_typeName": "string",
        "validating": false
    }
}
host
Required

Reference to an instance of the HostSystem managed object.

configSpec
Required

Base class for host-specific answer file options.

Authentication
This operation uses the following authentication methods.
Responses
200

This method returns a Task object with which to monitor the operation.

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

500

AnswerFileUpdateFailed: If the answer file could not be updated.

InvalidArgument: If the input parameters are incorrect.

Returns AnswerFileUpdateFailed of type(s) application/json
This response body class contains all of the following: VimFault
{
    "_typeName": "string",
    "faultCause": "MethodFault Object",
    "faultMessage": [
        {
            "_typeName": "string",
            "key": "string",
            "arg": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": {
                        "_typeName": "string"
                    }
                }
            ],
            "message": "string"
        }
    ],
    "failure": [
        {
            "_typeName": "string",
            "userInputPath": {
                "_typeName": "string",
                "profilePath": "string",
                "policyId": "string",
                "parameterId": "string",
                "policyOptionId": "string"
            },
            "errMsg": {
                "_typeName": "string",
                "key": "string",
                "arg": [
                    {
                        "_typeName": "string",
                        "key": "string",
                        "value": {
                            "_typeName": "string"
                        }
                    }
                ],
                "message": "string"
            }
        }
    ]
}
failure
Required

Failures encountered during answer file update