RevertMachine

Restores a specific machine in an environment to the state of that machine in the default snapshot. Any other machines in the environment are not affected.

Request URL

GET https://use.cloudshare.com/API/v1/Env/RevertMachine?MachineApiId=<id>&UserApiId=<id>&timestamp=<time_t>&HMAC=<signature>

Parameters

MachineApiId The unique id for the machine within the environment. This would be obtained, for example, using the ListEnvironments resource.
Example: PVSV2TWQQ2BA

Response example

{
    "apiId": "PVSV2TWQQ2BA"
}

The machine id is returned.

Note that a successful (HTTP Status 200 – OK) response indicates that the request was valid and the resume activity has commenced. This response is returned immediately. It does not mean that the resume activity has completed and that the environment – with all of its machines – is now active. This could take some time (seconds, perhaps) to complete. To determine the progress of the resume activity, the application should poll with the GetEnvState resource, using the environment’s unique id.

GetEnvState resource, using the environment’s unique id, and then filter the response for the specific machine.


Code sample