GET /api/v3/snapshots/actions/getforenv

Retrieves all snapshots contained in a specified environment’s blueprint. A blueprint can contain up to five snapshots, with newer snapshots displacing the oldest snapshots in the blueprint.

Request Path

GET /api/v3/snapshots/actions/getforenv?envId={envID}

Request Payload

None

Parameters

{envId} The ID of the environment. To retrieve environment IDs, use GET /api/v3/envs

Response Example

[
    {
        "authorName": "John Doe",
        "comment": null,
        "createTime": "Mon, 23 Feb 2015 12:13:27 GMT",
        "description": null,
        "id": "SSYr6dCpwFjTakIVPUEXvYHQ2",
        "imageUrl": "http://www.cloudshare.netdna-cdn.com/sites/all/themes/cloudsharev2/images/template/showcase/icon.png",
        "isDefault": false,
        "isLatest": false,
        "machines": [
            {
                "canAddMultipleInstances": true,
                "description": "Windows 7 Professional SP1 With Office 2010 Professional",
                "domainName": null,
                "hostName": "C8443860937",
                "httpAccessEnabled": false,
                "id": "MC0PiILpWZtnnHTkiPOXy94Q2",
                "imageUrl": "/resources/imgs/cs/machines_icon_orange.png",
                "internalIPs": [],
                "macAddresses": [],
                "name": "Prod - Windows 7 Pro SP1 With Office 2010",
                "osTypeName": "Windows",
                "password": null,
                "resources": {
                    "cpuCount": 1,
                    "diskSizeMB": 20480,
                    "memorySizeMB": 1024
                },
                "startWithHttps": false,
                "user": null,
                "vanityName": null
            }
        ],
        "name": "my first snapshot",
        "number": 0,
        "resources": {
             "cpuCount": 1,
             "diskSizeMB": 20480,
             "memorySizeMB": 1024
        },
        "type": 0 // always 0
    },
    {
        "authorName": "John Doe",
        "comment": null,
        "createTime": "Mon, 23 Feb 2015 12:50:54 GMT",
        "description": null,
        "id": "SS1XKjIGp12d488qbICywLtQ2",
        "imageUrl": "http://www.cloudshare.netdna-cdn.com/sites/all/themes/cloudsharev2/images/template/showcase/icon.png",
        "isDefault": true,
        "isLatest": true,
        "machines": [
            {
                "canAddMultipleInstances": true,
                "description": "My machine",
                "domainName": null,
                "hostName": "C1364296305",
                "httpAccessEnabled": false,
                "id": "MC_H8BT7G-QOjV00FotTehpQ2",
                "imageUrl": "/ImageHandler.ashx?JW4TmNK3K82wwUBbKK6JGA2",
                "internalIPs": [],
                "macAddresses": [],
                "name": "Prod - Windows 7 Pro SP1",
                "osTypeName": "Windows",
                "password": null,
                "resources": {
                    "cpuCount": 1,
                    "diskSizeMB": 20480,
                    "memorySizeMB": 1024
                },
                "startWithHttps": false,
                "user": null,
                "vanityName": null
            }
        ],
        "name": "My second snapshot",
        "number": 1,
        "resources": {
            "cpuCount": 1,
            "diskSizeMB": 20480,
            "memorySizeMB": 1024
        },
        "type": 0 // always 0
    }
]