Snapshots API


Snapshot a server

POST /servers/:server/snapshot

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "request": {
              "type": "snapshot_server",
              "id": "5362cd43-f155-4137-b2a5-e6e2a2ecaa3f",
              "created_at": "2017-02-22T17:02:48+00:00",
              "started_at": "2017-02-22T17:02:48+00:00",
              "finished_at": "2017-02-22T17:02:48+00:00",
              "message": null,
              "request_status": "Finished: Snapshot server (5362cd43-f155-4137-b2a5-e6e2a2ecaa3f) (less than a minute ago)",
              "successful": true,
              "updated_at": "2017-02-22T17:02:49+00:00",
              "read_channel": null,
              "stage": "snapshots.perform",
              "dependencies": "https://api.engineyard.com/requests/5362cd43-f155-4137-b2a5-e6e2a2ecaa3f/dependencies",
              "stages": "https://api.engineyard.com/requests/5362cd43-f155-4137-b2a5-e6e2a2ecaa3f/stages",
              "account": "https://api.engineyard.com/accounts/cdfc3873-c7c8-4952-a456-3f931db3113a",
              "requester": "https://api.engineyard.com/requests/5362cd43-f155-4137-b2a5-e6e2a2ecaa3f/requester",
              "messages": "https://api.engineyard.com/requests/5362cd43-f155-4137-b2a5-e6e2a2ecaa3f/messages",
              "callback_url": "https://api.engineyard.com/requests/5362cd43-f155-4137-b2a5-e6e2a2ecaa3f/callback",
              "progress": false,
              "resource": "https://api.engineyard.com/servers/1/snapshots/5362cd43-f155-4137-b2a5-e6e2a2ecaa3f"
            }
          }
            
          








Get a snapshot

GET /snapshots/:snapshot

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "snapshot": {
              "id": 3,
              "created_at": "2017-02-22T17:03:18+00:00",
              "updated_at": "2017-02-22T17:03:18+00:00",
              "deleted_at": null,
              "state": "starting",
              "progress": 0,
              "size": 15,
              "region": {
                "id": "us-east-1",
                "name": "US East (N. Virginia)"
              },
              "snaplocked": false,
              "mount": null,
              "grade": "unknown",
              "arch": 64,
              "environment": "https://api.engineyard.com/environments/2",
              "server": "https://api.engineyard.com/servers/2",
              "volume": "https://api.engineyard.com/volumes/3",
              "provider": "https://api.engineyard.com/providers/3",
              "account": "https://api.engineyard.com/accounts/78bc4b6f-0e8f-435d-9c3c-fa0e94f5815d",
              "snapshot_server_request": "https://api.engineyard.com/requests/5fa23ec8-b58d-4ed4-a4d0-8d6f9ead584d"
            }
          }
            
          








Get a environment's snapshots

GET /environments/:environment/snapshots

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "snapshots": [
              {
                "id": 11,
                "created_at": "2017-02-22T17:04:17+00:00",
                "updated_at": "2017-02-22T17:04:17+00:00",
                "deleted_at": null,
                "state": "starting",
                "progress": 0,
                "size": 15,
                "region": {
                  "id": "us-east-1",
                  "name": "US East (N. Virginia)"
                },
                "snaplocked": false,
                "mount": null,
                "grade": "unknown",
                "arch": 64,
                "environment": "https://api.engineyard.com/environments/5",
                "server": "https://api.engineyard.com/servers/5",
                "volume": "https://api.engineyard.com/volumes/9",
                "provider": "https://api.engineyard.com/providers/9",
                "account": "https://api.engineyard.com/accounts/29a2f8c8-005c-4949-8d7a-cec4c8bf589c",
                "snapshot_server_request": "https://api.engineyard.com/requests/762a1087-7730-4338-a11b-d35081be4bec"
              },
              {
                "id": 12,
                "created_at": "2017-02-22T17:04:17+00:00",
                "updated_at": "2017-02-22T17:04:17+00:00",
                "deleted_at": null,
                "state": "starting",
                "progress": 0,
                "size": 15,
                "region": {
                  "id": "us-east-1",
                  "name": "US East (N. Virginia)"
                },
                "snaplocked": false,
                "mount": null,
                "grade": "unknown",
                "arch": 64,
                "environment": "https://api.engineyard.com/environments/5",
                "server": "https://api.engineyard.com/servers/5",
                "volume": "https://api.engineyard.com/volumes/10",
                "provider": "https://api.engineyard.com/providers/9",
                "account": "https://api.engineyard.com/accounts/29a2f8c8-005c-4949-8d7a-cec4c8bf589c",
                "snapshot_server_request": "https://api.engineyard.com/requests/762a1087-7730-4338-a11b-d35081be4bec"
              }
            ]
          }
            
          








Get a server's snapshots

GET /servers/:server/snapshots

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "snapshots": [
              {
                "id": 5,
                "created_at": "2017-02-22T17:03:38+00:00",
                "updated_at": "2017-02-22T17:03:38+00:00",
                "deleted_at": null,
                "state": "starting",
                "progress": 0,
                "size": 15,
                "region": {
                  "id": "us-east-1",
                  "name": "US East (N. Virginia)"
                },
                "snaplocked": false,
                "mount": null,
                "grade": "unknown",
                "arch": 64,
                "environment": "https://api.engineyard.com/environments/3",
                "server": "https://api.engineyard.com/servers/3",
                "volume": "https://api.engineyard.com/volumes/5",
                "provider": "https://api.engineyard.com/providers/5",
                "account": "https://api.engineyard.com/accounts/67dbe88b-e75e-47d8-9c6f-3e6a67f03dab",
                "snapshot_server_request": "https://api.engineyard.com/requests/a345a17e-c67f-4c95-9831-5a5fb2e97e74"
              },
              {
                "id": 6,
                "created_at": "2017-02-22T17:03:38+00:00",
                "updated_at": "2017-02-22T17:03:38+00:00",
                "deleted_at": null,
                "state": "starting",
                "progress": 0,
                "size": 15,
                "region": {
                  "id": "us-east-1",
                  "name": "US East (N. Virginia)"
                },
                "snaplocked": false,
                "mount": null,
                "grade": "unknown",
                "arch": 64,
                "environment": "https://api.engineyard.com/environments/3",
                "server": "https://api.engineyard.com/servers/3",
                "volume": "https://api.engineyard.com/volumes/6",
                "provider": "https://api.engineyard.com/providers/5",
                "account": "https://api.engineyard.com/accounts/67dbe88b-e75e-47d8-9c6f-3e6a67f03dab",
                "snapshot_server_request": "https://api.engineyard.com/requests/a345a17e-c67f-4c95-9831-5a5fb2e97e74"
              }
            ]
          }
            
          








Get a server's snapshot request's snapshots

GET /servers/:server/snapshots/:request

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "snapshots": [
              {
                "id": 7,
                "created_at": "2017-02-22T17:03:57+00:00",
                "updated_at": "2017-02-22T17:03:57+00:00",
                "deleted_at": null,
                "state": "starting",
                "progress": 0,
                "size": 15,
                "region": {
                  "id": "us-east-1",
                  "name": "US East (N. Virginia)"
                },
                "snaplocked": false,
                "mount": null,
                "grade": "unknown",
                "arch": 64,
                "environment": "https://api.engineyard.com/environments/4",
                "server": "https://api.engineyard.com/servers/4",
                "volume": "https://api.engineyard.com/volumes/7",
                "provider": "https://api.engineyard.com/providers/7",
                "account": "https://api.engineyard.com/accounts/bfc5630a-6a4e-4b7d-9588-6a7c255bfaeb",
                "snapshot_server_request": "https://api.engineyard.com/requests/c1bbc33d-6387-42aa-830c-8f41c68a3318"
              },
              {
                "id": 8,
                "created_at": "2017-02-22T17:03:57+00:00",
                "updated_at": "2017-02-22T17:03:57+00:00",
                "deleted_at": null,
                "state": "starting",
                "progress": 0,
                "size": 15,
                "region": {
                  "id": "us-east-1",
                  "name": "US East (N. Virginia)"
                },
                "snaplocked": false,
                "mount": null,
                "grade": "unknown",
                "arch": 64,
                "environment": "https://api.engineyard.com/environments/4",
                "server": "https://api.engineyard.com/servers/4",
                "volume": "https://api.engineyard.com/volumes/8",
                "provider": "https://api.engineyard.com/providers/7",
                "account": "https://api.engineyard.com/accounts/bfc5630a-6a4e-4b7d-9588-6a7c255bfaeb",
                "snapshot_server_request": "https://api.engineyard.com/requests/c1bbc33d-6387-42aa-830c-8f41c68a3318"
              }
            ]
          }