Host Profile Manager Query Answer File Status

Host Profile Manager Query Answer File Status

Returns the status of the answer files associated with specified hosts.

This method returns the most recent status determined by CheckAnswerFileStatus_Task. See HostProfileManagerAnswerFileStatusEnum for valid values.

Required privileges: System.View

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

The hosts the answer file is associated with.

Authentication
This operation uses the following authentication methods.
Responses
200

List of answer file status objects.

Returns Array of AnswerFileStatusResult of type(s) application/json
[
    {
        "_typeName": "string",
        "checkedTime": "string",
        "host": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        },
        "status": "string",
        "error": [
            {
                "_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"
                }
            }
        ]
    }
]