This API has a deprecated equivalent from v7.0U1.
Answer Question
DescriptionSupply answer to the raised question.
Request
URLURL
https://{api_host}/api/vcenter/deployment/question?action=answer
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
Request Body
DeploymentQuestionAnswerSpec of mimetype application/json
Required
AnswerSpec with the answer to the raised question.
{
"answer_val": "string",
"question_id": "string"
}
string
answer_val
Required
The answer value.
string
question_id
Required
Id of the question being answered.
Authentication
This operation uses the following authentication methods.
Errors
Errors
400
com.vmware.vapi.std.errors.invalid_argument : if passed arguments are invalid. | com.vmware.vapi.std.errors.not_allowed_in_current_state : if the appliance is NOT in QUESTION_RAISED state.
default
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
$DeploymentQuestionAnswerSpec = Initialize-DeploymentQuestionAnswerSpec -QuestionId "MyQuestionId" -AnswerVal "MyAnswerVal"
Invoke-AnswerDeploymentQuestion -DeploymentQuestionAnswerSpec $DeploymentQuestionAnswerSpec
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" -H "Content-Type: application/json" -d '{"answer_val":"string","question_id":"string"}' https://{api_host}/api/vcenter/deployment/question?action=answer
Vendor Extensions
This operation contains the following vendor extensions defined in the spec:
x-vmw-doc-deprecated-method: post
x-vmw-doc-deprecated-path: /rest/vcenter/deployment/question?action=answer
x-vmw-doc-operation: answer
Availability
Added in 7.0U2
On This Page
Question Operations
get
post