AnswerFile
AnswerFile
The AnswerFile data object contains host-specific information that a host will use in combination with a HostProfile for configuration.
Answer files are stored on the vCenter Server, along with host profiles. An answer file is always associated with a particular host.
To supply host-specific data:
- Specify deferred parameters when you call the HostProfile.ExecuteHostProfile method. The host profile engine will verify the set of parameters for the additional configuration data.
- Use the complete required input list (ProfileExecuteResult.requireInput[]) as user input for the HostProfileManager.ApplyHostConfig_Task method. When you apply the profile, the vCenter Server saves the additional configuration data in the userInput list.
- Use the HostProfileManager.UpdateAnswerFile_Task method. This method will update an existing answer file or create a new one.
AllOf
This class requires all of the following:
JSON Example
{
"_typeName": "string",
"userInput": [
{
"_typeName": "string",
"inputPath": {
"_typeName": "string",
"profilePath": "string",
"policyId": "string",
"parameterId": "string",
"policyOptionId": "string"
},
"parameter": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
]
}
],
"createdTime": "string",
"modifiedTime": "string"
}
array of ProfileDeferredPolicyOptionParameter
userInput
Optional
List containing host-specific configuration data.
string As date-time As date-time
createdTime
Required
Time at which the answer file was created.
string As date-time As date-time
modifiedTime
Required
Time at which the answer file was last modified.