vsphere get and answer question with rest api

Viewed 23

in vsphere (REST API) after registering ( or moving ) virtual machines when trying to power on virtual machines its ask this question : its moved or copied How should i get this question and answer it ( in PHP ) ? According to vmware Developer documents this code should be work but i get error message : request this code by get method :

https://172.20.16.1/api/vcenter/deployment/question

and get this error message :

{
    "error_type": "NOT_ALLOWED_IN_CURRENT_STATE",
    "messages": [
        {
            "args": [],
            "default_message": "This appliance is not in QUESTION_RAISED state, so there is no question that can be returned.",
            "id": "com.vmware.vcenter.deploy.config.no.question.raised.error"
        }
    ]
}
0 Answers
Related