digital_ocean 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -1
- data/CHANGELOG.md +40 -0
- data/LICENSE.txt +1 -1
- data/README.md +114 -2
- data/digital_ocean.gemspec +1 -0
- data/doc/DigitalOcean/API.html +844 -0
- data/doc/DigitalOcean/AuthenticationMiddleware.html +342 -0
- data/doc/DigitalOcean/Resource/Base.html +206 -0
- data/doc/DigitalOcean/Resource/Droplet.html +1016 -0
- data/doc/DigitalOcean/Resource/Image.html +312 -0
- data/doc/DigitalOcean/Resource/Region.html +247 -0
- data/doc/DigitalOcean/Resource/SSHKey.html +312 -0
- data/doc/DigitalOcean/Resource/Size.html +208 -0
- data/doc/DigitalOcean/Resource.html +117 -0
- data/doc/DigitalOcean.html +131 -0
- data/doc/_index.html +213 -0
- data/doc/class_list.html +53 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +328 -0
- data/doc/file.README.html +402 -0
- data/doc/file_list.html +55 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +402 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +332 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/digital_ocean/api.rb +28 -0
- data/lib/digital_ocean/resource/droplet.rb +2 -2
- data/lib/digital_ocean/resource/region.rb +3 -0
- data/lib/digital_ocean/version.rb +1 -1
- data/spec/api_spec.rb +8 -4
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_create/should_be_successful.yml +7 -5
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_create/should_return_droplet_id.yml +50 -0
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_delete/should_be_successful.yml +8 -6
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_disable_backups/should_be_successful.yml +8 -6
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_enable_backups/should_be_successful.yml +8 -6
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_list/should_be_successful.yml +7 -5
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_list/should_return_a_list_of_all_droplets.yml +7 -5
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/{_reset_root_password → _password_reset}/should_be_successful.yml +10 -9
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_power_cycle/should_be_successful.yml +8 -6
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_power_off/should_be_successful.yml +8 -6
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_power_on/should_be_successful.yml +8 -6
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_reboot/should_be_successful.yml +8 -6
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_rebuild/should_be_successful.yml +8 -6
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_resize/should_be_successful.yml +8 -6
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_restore/should_be_successful.yml +1 -1
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_show/should_be_successful.yml +6 -4
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_shutdown/should_be_successful.yml +8 -6
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_snapshot/should_be_successful.yml +8 -6
- metadata +34 -7
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: delete
|
5
|
-
uri: https://api.digitalocean.com/droplets/
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/destroy?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -15,7 +15,7 @@ http_interactions:
|
|
15
15
|
server:
|
16
16
|
- nginx
|
17
17
|
date:
|
18
|
-
-
|
18
|
+
- Wed, 20 Feb 2013 11:05:27 GMT
|
19
19
|
content-type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
transfer-encoding:
|
@@ -26,6 +26,8 @@ http_interactions:
|
|
26
26
|
- '200'
|
27
27
|
x-powered-by:
|
28
28
|
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=31536000
|
29
31
|
x-ua-compatible:
|
30
32
|
- IE=Edge,chrome=1
|
31
33
|
etag:
|
@@ -35,14 +37,14 @@ http_interactions:
|
|
35
37
|
set-cookie:
|
36
38
|
- _digitalocean2_session=wtf
|
37
39
|
x-request-id:
|
38
|
-
-
|
40
|
+
- 20345a52b5d3b10d9e1547566f95177b
|
39
41
|
x-runtime:
|
40
|
-
- '0.
|
42
|
+
- '0.247308'
|
41
43
|
x-rack-cache:
|
42
44
|
- invalidate, pass
|
43
45
|
body:
|
44
46
|
encoding: US-ASCII
|
45
|
-
string: ! '{"status":"OK","event_id":
|
47
|
+
string: ! '{"status":"OK","event_id":765555}'
|
46
48
|
http_version:
|
47
|
-
recorded_at:
|
49
|
+
recorded_at: Wed, 20 Feb 2013 11:05:27 GMT
|
48
50
|
recorded_with: VCR 2.4.0
|
data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_disable_backups/should_be_successful.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api.digitalocean.com/droplets/
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/disable_backups?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -15,7 +15,7 @@ http_interactions:
|
|
15
15
|
server:
|
16
16
|
- nginx
|
17
17
|
date:
|
18
|
-
-
|
18
|
+
- Wed, 20 Feb 2013 11:05:26 GMT
|
19
19
|
content-type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
transfer-encoding:
|
@@ -26,6 +26,8 @@ http_interactions:
|
|
26
26
|
- '200'
|
27
27
|
x-powered-by:
|
28
28
|
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=31536000
|
29
31
|
x-ua-compatible:
|
30
32
|
- IE=Edge,chrome=1
|
31
33
|
etag:
|
@@ -35,14 +37,14 @@ http_interactions:
|
|
35
37
|
set-cookie:
|
36
38
|
- _digitalocean2_session=wtf
|
37
39
|
x-request-id:
|
38
|
-
-
|
40
|
+
- 794340237e702fa5851c0e86961796d2
|
39
41
|
x-runtime:
|
40
|
-
- '0.
|
42
|
+
- '0.281499'
|
41
43
|
x-rack-cache:
|
42
44
|
- invalidate, pass
|
43
45
|
body:
|
44
46
|
encoding: US-ASCII
|
45
|
-
string: ! '{"status":"OK","event_id":
|
47
|
+
string: ! '{"status":"OK","event_id":765554}'
|
46
48
|
http_version:
|
47
|
-
recorded_at:
|
49
|
+
recorded_at: Wed, 20 Feb 2013 11:05:26 GMT
|
48
50
|
recorded_with: VCR 2.4.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api.digitalocean.com/droplets/
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/enable_backups?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -15,7 +15,7 @@ http_interactions:
|
|
15
15
|
server:
|
16
16
|
- nginx
|
17
17
|
date:
|
18
|
-
-
|
18
|
+
- Wed, 20 Feb 2013 11:05:25 GMT
|
19
19
|
content-type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
transfer-encoding:
|
@@ -26,6 +26,8 @@ http_interactions:
|
|
26
26
|
- '200'
|
27
27
|
x-powered-by:
|
28
28
|
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=31536000
|
29
31
|
x-ua-compatible:
|
30
32
|
- IE=Edge,chrome=1
|
31
33
|
etag:
|
@@ -35,14 +37,14 @@ http_interactions:
|
|
35
37
|
set-cookie:
|
36
38
|
- _digitalocean2_session=wtf
|
37
39
|
x-request-id:
|
38
|
-
-
|
40
|
+
- fbd656affa26e05f2c2f84bd8d86ff6d
|
39
41
|
x-runtime:
|
40
|
-
- '0.
|
42
|
+
- '0.123263'
|
41
43
|
x-rack-cache:
|
42
44
|
- invalidate, pass
|
43
45
|
body:
|
44
46
|
encoding: US-ASCII
|
45
|
-
string: ! '{"status":"OK","event_id":
|
47
|
+
string: ! '{"status":"OK","event_id":765553}'
|
46
48
|
http_version:
|
47
|
-
recorded_at:
|
49
|
+
recorded_at: Wed, 20 Feb 2013 11:05:25 GMT
|
48
50
|
recorded_with: VCR 2.4.0
|
@@ -15,7 +15,7 @@ http_interactions:
|
|
15
15
|
server:
|
16
16
|
- nginx
|
17
17
|
date:
|
18
|
-
- Wed,
|
18
|
+
- Wed, 20 Feb 2013 11:05:14 GMT
|
19
19
|
content-type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
transfer-encoding:
|
@@ -26,6 +26,8 @@ http_interactions:
|
|
26
26
|
- '200'
|
27
27
|
x-powered-by:
|
28
28
|
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=31536000
|
29
31
|
x-ua-compatible:
|
30
32
|
- IE=Edge,chrome=1
|
31
33
|
etag:
|
@@ -35,14 +37,14 @@ http_interactions:
|
|
35
37
|
set-cookie:
|
36
38
|
- _digitalocean2_session=wtf
|
37
39
|
x-request-id:
|
38
|
-
-
|
40
|
+
- d53e8b9c2b96e35211e9ecd5cfb7e060
|
39
41
|
x-runtime:
|
40
|
-
- '0.
|
42
|
+
- '0.815706'
|
41
43
|
x-rack-cache:
|
42
44
|
- miss
|
43
45
|
body:
|
44
46
|
encoding: US-ASCII
|
45
|
-
string: ! '{"status":"OK","droplets":[{"id":83102,"name":"app200.ams.nl.moriz.net","image_id":25306,"size_id":63,"region_id":2,"backups_active":true,"ip_address":"185.14.185.158","status":"active"}]}'
|
47
|
+
string: ! '{"status":"OK","droplets":[{"id":83102,"name":"app200.ams.nl.moriz.net","image_id":25306,"size_id":63,"region_id":2,"backups_active":true,"ip_address":"185.14.185.158","status":"active"},{"id":106265,"name":"test","image_id":25306,"size_id":66,"region_id":2,"backups_active":null,"ip_address":"192.81.220.107","status":"active"}]}'
|
46
48
|
http_version:
|
47
|
-
recorded_at: Wed,
|
49
|
+
recorded_at: Wed, 20 Feb 2013 11:05:14 GMT
|
48
50
|
recorded_with: VCR 2.4.0
|
data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_list/should_return_a_list_of_all_droplets.yml
CHANGED
@@ -15,7 +15,7 @@ http_interactions:
|
|
15
15
|
server:
|
16
16
|
- nginx
|
17
17
|
date:
|
18
|
-
- Wed,
|
18
|
+
- Wed, 20 Feb 2013 11:05:15 GMT
|
19
19
|
content-type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
transfer-encoding:
|
@@ -26,6 +26,8 @@ http_interactions:
|
|
26
26
|
- '200'
|
27
27
|
x-powered-by:
|
28
28
|
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=31536000
|
29
31
|
x-ua-compatible:
|
30
32
|
- IE=Edge,chrome=1
|
31
33
|
etag:
|
@@ -35,14 +37,14 @@ http_interactions:
|
|
35
37
|
set-cookie:
|
36
38
|
- _digitalocean2_session=wtf
|
37
39
|
x-request-id:
|
38
|
-
-
|
40
|
+
- 852a8597b1159f1f98966cc47d7378b1
|
39
41
|
x-runtime:
|
40
|
-
- '0.
|
42
|
+
- '0.137092'
|
41
43
|
x-rack-cache:
|
42
44
|
- miss
|
43
45
|
body:
|
44
46
|
encoding: US-ASCII
|
45
|
-
string: ! '{"status":"OK","droplets":[{"id":83102,"name":"app200.ams.nl.moriz.net","image_id":25306,"size_id":63,"region_id":2,"backups_active":true,"ip_address":"185.14.185.158","status":"active"}]}'
|
47
|
+
string: ! '{"status":"OK","droplets":[{"id":83102,"name":"app200.ams.nl.moriz.net","image_id":25306,"size_id":63,"region_id":2,"backups_active":true,"ip_address":"185.14.185.158","status":"active"},{"id":106265,"name":"test","image_id":25306,"size_id":66,"region_id":2,"backups_active":null,"ip_address":"192.81.220.107","status":"active"}]}'
|
46
48
|
http_version:
|
47
|
-
recorded_at: Wed,
|
49
|
+
recorded_at: Wed, 20 Feb 2013 11:05:15 GMT
|
48
50
|
recorded_with: VCR 2.4.0
|
@@ -1,8 +1,8 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
|
-
method:
|
5
|
-
uri: https://api.digitalocean.com/droplets/
|
4
|
+
method: post
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/password_reset?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -15,7 +15,7 @@ http_interactions:
|
|
15
15
|
server:
|
16
16
|
- nginx
|
17
17
|
date:
|
18
|
-
-
|
18
|
+
- Wed, 20 Feb 2013 11:05:22 GMT
|
19
19
|
content-type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
transfer-encoding:
|
@@ -26,6 +26,8 @@ http_interactions:
|
|
26
26
|
- '200'
|
27
27
|
x-powered-by:
|
28
28
|
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=31536000
|
29
31
|
x-ua-compatible:
|
30
32
|
- IE=Edge,chrome=1
|
31
33
|
etag:
|
@@ -35,15 +37,14 @@ http_interactions:
|
|
35
37
|
set-cookie:
|
36
38
|
- _digitalocean2_session=wtf
|
37
39
|
x-request-id:
|
38
|
-
-
|
40
|
+
- 9f4b75f0120eaddc22201a9127261e0f
|
39
41
|
x-runtime:
|
40
|
-
- '0.
|
42
|
+
- '0.117888'
|
41
43
|
x-rack-cache:
|
42
|
-
-
|
44
|
+
- invalidate, pass
|
43
45
|
body:
|
44
46
|
encoding: US-ASCII
|
45
|
-
string: ! '{"status":"
|
46
|
-
action you specified cannot be found"]}}'
|
47
|
+
string: ! '{"status":"OK","event_id":765549}'
|
47
48
|
http_version:
|
48
|
-
recorded_at:
|
49
|
+
recorded_at: Wed, 20 Feb 2013 11:05:22 GMT
|
49
50
|
recorded_with: VCR 2.4.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://api.digitalocean.com/droplets/
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/power_cycle?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -15,7 +15,7 @@ http_interactions:
|
|
15
15
|
server:
|
16
16
|
- nginx
|
17
17
|
date:
|
18
|
-
-
|
18
|
+
- Wed, 20 Feb 2013 11:05:19 GMT
|
19
19
|
content-type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
transfer-encoding:
|
@@ -26,6 +26,8 @@ http_interactions:
|
|
26
26
|
- '200'
|
27
27
|
x-powered-by:
|
28
28
|
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=31536000
|
29
31
|
x-ua-compatible:
|
30
32
|
- IE=Edge,chrome=1
|
31
33
|
etag:
|
@@ -35,14 +37,14 @@ http_interactions:
|
|
35
37
|
set-cookie:
|
36
38
|
- _digitalocean2_session=wtf
|
37
39
|
x-request-id:
|
38
|
-
-
|
40
|
+
- e0ee59bdcd3e5e3d18a07797a7d502c1
|
39
41
|
x-runtime:
|
40
|
-
- '0.
|
42
|
+
- '0.133398'
|
41
43
|
x-rack-cache:
|
42
44
|
- invalidate, pass
|
43
45
|
body:
|
44
46
|
encoding: US-ASCII
|
45
|
-
string: ! '{"status":"OK","event_id":
|
47
|
+
string: ! '{"status":"OK","event_id":765545}'
|
46
48
|
http_version:
|
47
|
-
recorded_at:
|
49
|
+
recorded_at: Wed, 20 Feb 2013 11:05:19 GMT
|
48
50
|
recorded_with: VCR 2.4.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://api.digitalocean.com/droplets/
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/power_off?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -15,7 +15,7 @@ http_interactions:
|
|
15
15
|
server:
|
16
16
|
- nginx
|
17
17
|
date:
|
18
|
-
-
|
18
|
+
- Wed, 20 Feb 2013 11:05:21 GMT
|
19
19
|
content-type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
transfer-encoding:
|
@@ -26,6 +26,8 @@ http_interactions:
|
|
26
26
|
- '200'
|
27
27
|
x-powered-by:
|
28
28
|
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=31536000
|
29
31
|
x-ua-compatible:
|
30
32
|
- IE=Edge,chrome=1
|
31
33
|
etag:
|
@@ -35,14 +37,14 @@ http_interactions:
|
|
35
37
|
set-cookie:
|
36
38
|
- _digitalocean2_session=wtf
|
37
39
|
x-request-id:
|
38
|
-
-
|
40
|
+
- c3b09014afd97f98bbbbc0f62890a331
|
39
41
|
x-runtime:
|
40
|
-
- '0.
|
42
|
+
- '0.109020'
|
41
43
|
x-rack-cache:
|
42
44
|
- invalidate, pass
|
43
45
|
body:
|
44
46
|
encoding: US-ASCII
|
45
|
-
string: ! '{"status":"OK","event_id":
|
47
|
+
string: ! '{"status":"OK","event_id":765548}'
|
46
48
|
http_version:
|
47
|
-
recorded_at:
|
49
|
+
recorded_at: Wed, 20 Feb 2013 11:05:21 GMT
|
48
50
|
recorded_with: VCR 2.4.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://api.digitalocean.com/droplets/
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/power_on?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -15,7 +15,7 @@ http_interactions:
|
|
15
15
|
server:
|
16
16
|
- nginx
|
17
17
|
date:
|
18
|
-
-
|
18
|
+
- Wed, 20 Feb 2013 11:05:20 GMT
|
19
19
|
content-type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
transfer-encoding:
|
@@ -26,6 +26,8 @@ http_interactions:
|
|
26
26
|
- '200'
|
27
27
|
x-powered-by:
|
28
28
|
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=31536000
|
29
31
|
x-ua-compatible:
|
30
32
|
- IE=Edge,chrome=1
|
31
33
|
etag:
|
@@ -35,14 +37,14 @@ http_interactions:
|
|
35
37
|
set-cookie:
|
36
38
|
- _digitalocean2_session=wtf
|
37
39
|
x-request-id:
|
38
|
-
-
|
40
|
+
- 2a389641ede008225a41cc034f6cb534
|
39
41
|
x-runtime:
|
40
|
-
- '0.
|
42
|
+
- '0.184894'
|
41
43
|
x-rack-cache:
|
42
44
|
- invalidate, pass
|
43
45
|
body:
|
44
46
|
encoding: US-ASCII
|
45
|
-
string: ! '{"status":"OK","event_id":
|
47
|
+
string: ! '{"status":"OK","event_id":765547}'
|
46
48
|
http_version:
|
47
|
-
recorded_at:
|
49
|
+
recorded_at: Wed, 20 Feb 2013 11:05:20 GMT
|
48
50
|
recorded_with: VCR 2.4.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://api.digitalocean.com/droplets/
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/reboot?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -15,7 +15,7 @@ http_interactions:
|
|
15
15
|
server:
|
16
16
|
- nginx
|
17
17
|
date:
|
18
|
-
-
|
18
|
+
- Wed, 20 Feb 2013 11:05:18 GMT
|
19
19
|
content-type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
transfer-encoding:
|
@@ -26,6 +26,8 @@ http_interactions:
|
|
26
26
|
- '200'
|
27
27
|
x-powered-by:
|
28
28
|
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=31536000
|
29
31
|
x-ua-compatible:
|
30
32
|
- IE=Edge,chrome=1
|
31
33
|
etag:
|
@@ -35,14 +37,14 @@ http_interactions:
|
|
35
37
|
set-cookie:
|
36
38
|
- _digitalocean2_session=wtf
|
37
39
|
x-request-id:
|
38
|
-
-
|
40
|
+
- 541149e37d5a577d4ae52a66e509a653
|
39
41
|
x-runtime:
|
40
|
-
- '0.
|
42
|
+
- '0.115826'
|
41
43
|
x-rack-cache:
|
42
44
|
- invalidate, pass
|
43
45
|
body:
|
44
46
|
encoding: US-ASCII
|
45
|
-
string: ! '{"status":"OK","event_id":
|
47
|
+
string: ! '{"status":"OK","event_id":765544}'
|
46
48
|
http_version:
|
47
|
-
recorded_at:
|
49
|
+
recorded_at: Wed, 20 Feb 2013 11:05:18 GMT
|
48
50
|
recorded_with: VCR 2.4.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api.digitalocean.com/droplets/
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/rebuild?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&image_id=57658
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -15,7 +15,7 @@ http_interactions:
|
|
15
15
|
server:
|
16
16
|
- nginx
|
17
17
|
date:
|
18
|
-
-
|
18
|
+
- Wed, 20 Feb 2013 11:05:25 GMT
|
19
19
|
content-type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
transfer-encoding:
|
@@ -26,6 +26,8 @@ http_interactions:
|
|
26
26
|
- '200'
|
27
27
|
x-powered-by:
|
28
28
|
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=31536000
|
29
31
|
x-ua-compatible:
|
30
32
|
- IE=Edge,chrome=1
|
31
33
|
etag:
|
@@ -35,14 +37,14 @@ http_interactions:
|
|
35
37
|
set-cookie:
|
36
38
|
- _digitalocean2_session=wtf
|
37
39
|
x-request-id:
|
38
|
-
-
|
40
|
+
- 15f3afcddb362237e3553f8f2fc4fac7
|
39
41
|
x-runtime:
|
40
|
-
- '0.
|
42
|
+
- '0.133005'
|
41
43
|
x-rack-cache:
|
42
44
|
- invalidate, pass
|
43
45
|
body:
|
44
46
|
encoding: US-ASCII
|
45
|
-
string: ! '{"status":"OK","event_id":
|
47
|
+
string: ! '{"status":"OK","event_id":765552}'
|
46
48
|
http_version:
|
47
|
-
recorded_at:
|
49
|
+
recorded_at: Wed, 20 Feb 2013 11:05:25 GMT
|
48
50
|
recorded_with: VCR 2.4.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/droplets/
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/resize?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&size_id=63
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -15,7 +15,7 @@ http_interactions:
|
|
15
15
|
server:
|
16
16
|
- nginx
|
17
17
|
date:
|
18
|
-
-
|
18
|
+
- Wed, 20 Feb 2013 11:05:22 GMT
|
19
19
|
content-type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
transfer-encoding:
|
@@ -26,6 +26,8 @@ http_interactions:
|
|
26
26
|
- '200'
|
27
27
|
x-powered-by:
|
28
28
|
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=31536000
|
29
31
|
x-ua-compatible:
|
30
32
|
- IE=Edge,chrome=1
|
31
33
|
etag:
|
@@ -35,14 +37,14 @@ http_interactions:
|
|
35
37
|
set-cookie:
|
36
38
|
- _digitalocean2_session=wtf
|
37
39
|
x-request-id:
|
38
|
-
-
|
40
|
+
- 1327538e89481b99b2c323d0d018d96f
|
39
41
|
x-runtime:
|
40
|
-
- '0.
|
42
|
+
- '0.113362'
|
41
43
|
x-rack-cache:
|
42
44
|
- miss
|
43
45
|
body:
|
44
46
|
encoding: US-ASCII
|
45
|
-
string: ! '{"status":"OK","event_id":
|
47
|
+
string: ! '{"status":"OK","event_id":765550}'
|
46
48
|
http_version:
|
47
|
-
recorded_at:
|
49
|
+
recorded_at: Wed, 20 Feb 2013 11:05:22 GMT
|
48
50
|
recorded_with: VCR 2.4.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api.digitalocean.com/droplets/
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/restore?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&image_id=57658
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -15,7 +15,7 @@ http_interactions:
|
|
15
15
|
server:
|
16
16
|
- nginx
|
17
17
|
date:
|
18
|
-
- Wed,
|
18
|
+
- Wed, 20 Feb 2013 11:05:15 GMT
|
19
19
|
content-type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
transfer-encoding:
|
@@ -26,6 +26,8 @@ http_interactions:
|
|
26
26
|
- '200'
|
27
27
|
x-powered-by:
|
28
28
|
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=31536000
|
29
31
|
x-ua-compatible:
|
30
32
|
- IE=Edge,chrome=1
|
31
33
|
etag:
|
@@ -35,14 +37,14 @@ http_interactions:
|
|
35
37
|
set-cookie:
|
36
38
|
- _digitalocean2_session=wtf
|
37
39
|
x-request-id:
|
38
|
-
-
|
40
|
+
- 8e99f39d46a4134fc443335647d4b221
|
39
41
|
x-runtime:
|
40
|
-
- '0.
|
42
|
+
- '0.146290'
|
41
43
|
x-rack-cache:
|
42
44
|
- miss
|
43
45
|
body:
|
44
46
|
encoding: US-ASCII
|
45
47
|
string: ! '{"status":"OK","droplet":{"id":83102,"name":"app200.ams.nl.moriz.net","image_id":25306,"size_id":63,"region_id":2,"backups_active":true,"ip_address":"185.14.185.158","status":"active"}}'
|
46
48
|
http_version:
|
47
|
-
recorded_at: Wed,
|
49
|
+
recorded_at: Wed, 20 Feb 2013 11:05:15 GMT
|
48
50
|
recorded_with: VCR 2.4.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://api.digitalocean.com/droplets/
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/shutdown?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -15,7 +15,7 @@ http_interactions:
|
|
15
15
|
server:
|
16
16
|
- nginx
|
17
17
|
date:
|
18
|
-
-
|
18
|
+
- Wed, 20 Feb 2013 11:05:19 GMT
|
19
19
|
content-type:
|
20
20
|
- application/json; charset=utf-8
|
21
21
|
transfer-encoding:
|
@@ -26,6 +26,8 @@ http_interactions:
|
|
26
26
|
- '200'
|
27
27
|
x-powered-by:
|
28
28
|
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=31536000
|
29
31
|
x-ua-compatible:
|
30
32
|
- IE=Edge,chrome=1
|
31
33
|
etag:
|
@@ -35,14 +37,14 @@ http_interactions:
|
|
35
37
|
set-cookie:
|
36
38
|
- _digitalocean2_session=wtf
|
37
39
|
x-request-id:
|
38
|
-
-
|
40
|
+
- 903282a88afbdf0a4882cc17918e9b5b
|
39
41
|
x-runtime:
|
40
|
-
- '0.
|
42
|
+
- '0.186379'
|
41
43
|
x-rack-cache:
|
42
44
|
- invalidate, pass
|
43
45
|
body:
|
44
46
|
encoding: US-ASCII
|
45
|
-
string: ! '{"status":"OK","event_id":
|
47
|
+
string: ! '{"status":"OK","event_id":765546}'
|
46
48
|
http_version:
|
47
|
-
recorded_at:
|
49
|
+
recorded_at: Wed, 20 Feb 2013 11:05:20 GMT
|
48
50
|
recorded_with: VCR 2.4.0
|