vsphere get and answer question with rest api


This Content is from Stack Overflow. Question asked by سعید نوروزی

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 :

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"


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?