RevertEnvironment

Restores the specified environment to the default snapshot for that environment.

Request URL

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

Parameters

EnvApiId The unique id for the environment.
Example: I5ADJ4VCMBTB

Response example

{
    "apiId": "I5ADJ4VCMBTB"
}

The response is the id of the environment that was reverted.

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.


Code sample