smartdc 1.3.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -19
- data/.travis.yml +1 -1
- data/Gemfile +5 -11
- data/README.md +25 -40
- data/Rakefile +5 -5
- data/bin/sdc +4 -380
- data/config.ru +2 -0
- data/lib/smartdc.rb +23 -15
- data/lib/smartdc/api/analytics.rb +19 -36
- data/lib/smartdc/api/analytics/heatmap.rb +6 -15
- data/lib/smartdc/api/datacenters.rb +7 -16
- data/lib/smartdc/api/images.rb +11 -0
- data/lib/smartdc/api/keys.rb +13 -23
- data/lib/smartdc/api/machines.rb +26 -60
- data/lib/smartdc/api/machines/metadata.rb +15 -0
- data/lib/smartdc/api/machines/snapshots.rb +23 -0
- data/lib/smartdc/api/machines/tags.rb +19 -0
- data/lib/smartdc/api/packages.rb +7 -17
- data/lib/smartdc/auth.rb +39 -5
- data/lib/smartdc/cli.rb +65 -0
- data/lib/smartdc/cli/analytic.rb +52 -0
- data/lib/smartdc/cli/datacenter.rb +15 -0
- data/lib/smartdc/cli/image.rb +19 -0
- data/lib/smartdc/cli/key.rb +26 -0
- data/lib/smartdc/cli/machine.rb +79 -0
- data/lib/smartdc/cli/machine/metadata.rb +30 -0
- data/lib/smartdc/cli/machine/snapshot.rb +38 -0
- data/lib/smartdc/cli/machine/tag.rb +33 -0
- data/lib/smartdc/cli/package.rb +17 -0
- data/lib/smartdc/cli_configure.rb +81 -0
- data/lib/smartdc/cli_helper.rb +111 -0
- data/lib/smartdc/client.rb +33 -28
- data/lib/smartdc/configure.rb +30 -0
- data/lib/smartdc/default.rb +35 -0
- data/lib/smartdc/version.rb +1 -1
- data/smartdc.gemspec +20 -16
- data/spec/cassettes/analytics/create.yml +64 -0
- data/spec/cassettes/analytics/describe.yml +123 -0
- data/spec/cassettes/analytics/destroy.yml +56 -0
- data/spec/cassettes/analytics/index.yml +62 -0
- data/spec/cassettes/analytics/show.yml +62 -0
- data/spec/cassettes/analytics/value.yml +62 -0
- data/spec/cassettes/datacenters/index.yml +62 -0
- data/spec/cassettes/datacenters/show.yml +64 -0
- data/spec/cassettes/images/index.yml +519 -0
- data/spec/cassettes/images/show.yml +63 -0
- data/spec/cassettes/keys/create.yml +65 -0
- data/spec/cassettes/keys/destroy.yml +56 -0
- data/spec/cassettes/keys/index.yml +63 -0
- data/spec/cassettes/keys/show.yml +63 -0
- data/spec/cassettes/machines/create.yml +65 -0
- data/spec/cassettes/machines/destroy.yml +56 -0
- data/spec/cassettes/machines/index.yml +67 -0
- data/spec/cassettes/machines/metadata/destroy.yml +56 -0
- data/spec/cassettes/machines/metadata/index.yml +62 -0
- data/spec/cassettes/machines/metadata/update.yml +64 -0
- data/spec/cassettes/machines/reboot.yml +58 -0
- data/spec/cassettes/machines/show.yml +63 -0
- data/spec/cassettes/machines/snapshots/create.yml +62 -0
- data/spec/cassettes/machines/snapshots/destroy.yml +56 -0
- data/spec/cassettes/machines/snapshots/index.yml +62 -0
- data/spec/cassettes/machines/snapshots/show.yml +62 -0
- data/spec/cassettes/machines/snapshots/start.yml +58 -0
- data/spec/cassettes/machines/start.yml +58 -0
- data/spec/cassettes/machines/stop.yml +58 -0
- data/spec/cassettes/machines/tags/create.yml +64 -0
- data/spec/cassettes/machines/tags/destroy.yml +56 -0
- data/spec/cassettes/machines/tags/index.yml +62 -0
- data/spec/cassettes/machines/tags/show.yml +62 -0
- data/spec/cassettes/packages/index.yml +123 -0
- data/spec/cassettes/packages/show.yml +63 -0
- data/spec/fixtures/config/sdccfg +4 -0
- data/spec/fixtures/ssh/id_rsa +27 -0
- data/spec/fixtures/ssh/id_rsa.pub +1 -0
- data/spec/smartdc/api/analytics_spec.rb +47 -0
- data/spec/smartdc/api/datacenters_spec.rb +19 -0
- data/spec/smartdc/api/images_spec.rb +19 -0
- data/spec/smartdc/api/keys_spec.rb +34 -0
- data/spec/smartdc/api/machines/metadata_spec.rb +27 -0
- data/spec/smartdc/api/machines/snapshots_spec.rb +38 -0
- data/spec/smartdc/api/machines/tags_spec.rb +33 -0
- data/spec/smartdc/api/machines_spec.rb +59 -0
- data/spec/smartdc/api/packages_spec.rb +19 -0
- data/spec/smartdc/auth_spec.rb +25 -0
- data/spec/smartdc/cli_configure_spec.rb +32 -0
- data/spec/smartdc/client_spec.rb +11 -0
- data/spec/smartdc_spec.rb +44 -0
- data/spec/spec_helper.rb +25 -8
- metadata +176 -83
- data/lib/cli_helper.rb +0 -126
- data/lib/configure.rb +0 -125
- data/lib/smartdc/api/datasets.rb +0 -20
- data/lib/smartdc/api/machine/metadata.rb +0 -24
- data/lib/smartdc/api/machine/snapshots.rb +0 -35
- data/lib/smartdc/api/machine/tags.rb +0 -29
- data/lib/smartdc/error.rb +0 -35
- data/lib/smartdc/request.rb +0 -83
- data/lib/smartdc/response.rb +0 -25
- data/lib/smartdc/response/raise_error.rb +0 -38
- data/spec/fixtures/analytics.json +0 -26
- data/spec/fixtures/datacenter.json +0 -4
- data/spec/fixtures/datacenters.json +0 -3
- data/spec/fixtures/datasets.json +0 -38
- data/spec/fixtures/keys.json +0 -14
- data/spec/fixtures/machines.json +0 -36
- data/spec/fixtures/packages.json +0 -18
- data/spec/fixtures/snapshots.json +0 -8
- data/spec/fixtures/tag.json +0 -3
- data/spec/unit/smartdc/api/analytics_spec.rb +0 -48
- data/spec/unit/smartdc/api/datacenters_spec.rb +0 -28
- data/spec/unit/smartdc/api/datasets_spec.rb +0 -28
- data/spec/unit/smartdc/api/keys_spec.rb +0 -48
- data/spec/unit/smartdc/api/machine/metadata_spec.rb +0 -38
- data/spec/unit/smartdc/api/machine/snapshots_spec.rb +0 -48
- data/spec/unit/smartdc/api/machine/tags_spec.rb +0 -48
- data/spec/unit/smartdc/api/machines_spec.rb +0 -48
- data/spec/unit/smartdc/api/packages_spec.rb +0 -28
- data/spec/unit/smartdc/client_spec.rb +0 -40
- data/spec/unit/smartdc_spec.rb +0 -9
@@ -0,0 +1,56 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: https://us-east-1.api.joyentcloud.com/my/machines/4d17c91d-6b94-6f81-cbea-acfb3a8473b4/metadata/key
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Date: ''
|
11
|
+
Authorization: ''
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
X-Api-Version:
|
17
|
+
- "~7.0"
|
18
|
+
User-Agent:
|
19
|
+
- Faraday v0.9.1
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 204
|
25
|
+
message: No Content
|
26
|
+
headers:
|
27
|
+
X-Api-Version:
|
28
|
+
- 7.2.0
|
29
|
+
Server:
|
30
|
+
- Joyent SmartDataCenter 7.2.0
|
31
|
+
Request-Id: ''
|
32
|
+
Access-Control-Expose-Headers:
|
33
|
+
- Api-Version, Request-Id, Response-Time
|
34
|
+
Strict-Transport-Security:
|
35
|
+
- max-age=6570000
|
36
|
+
Date: ''
|
37
|
+
X-Request-Id: ''
|
38
|
+
Access-Control-Allow-Origin:
|
39
|
+
- "*"
|
40
|
+
Response-Time: ''
|
41
|
+
X-Response-Time: ''
|
42
|
+
Connection:
|
43
|
+
- Keep-Alive
|
44
|
+
Access-Control-Allow-Headers:
|
45
|
+
- Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, Api-Version,
|
46
|
+
Response-Time
|
47
|
+
Access-Control-Allow-Methods:
|
48
|
+
- GET, DELETE
|
49
|
+
Api-Version:
|
50
|
+
- 7.2.0
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: ''
|
54
|
+
http_version:
|
55
|
+
recorded_at: Sun, 15 Feb 2015 11:15:22 GMT
|
56
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://us-east-1.api.joyentcloud.com/my/machines/4d17c91d-6b94-6f81-cbea-acfb3a8473b4/metadata
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Date: ''
|
11
|
+
Authorization: ''
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
X-Api-Version:
|
17
|
+
- "~7.0"
|
18
|
+
User-Agent:
|
19
|
+
- Faraday v0.9.1
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
X-Api-Version:
|
28
|
+
- 7.2.0
|
29
|
+
Server:
|
30
|
+
- Joyent SmartDataCenter 7.2.0
|
31
|
+
Request-Id: ''
|
32
|
+
Content-Type:
|
33
|
+
- application/json
|
34
|
+
Access-Control-Expose-Headers:
|
35
|
+
- Api-Version, Request-Id, Response-Time
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=6570000
|
38
|
+
Date: ''
|
39
|
+
X-Request-Id: ''
|
40
|
+
Content-Md5:
|
41
|
+
- EcyTNqdE7CdBok7HcX5T+w==
|
42
|
+
Access-Control-Allow-Origin:
|
43
|
+
- "*"
|
44
|
+
Response-Time: ''
|
45
|
+
X-Response-Time: ''
|
46
|
+
Connection:
|
47
|
+
- Keep-Alive
|
48
|
+
Access-Control-Allow-Headers:
|
49
|
+
- Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, Api-Version,
|
50
|
+
Response-Time
|
51
|
+
Access-Control-Allow-Methods:
|
52
|
+
- POST, GET, HEAD, DELETE
|
53
|
+
Api-Version:
|
54
|
+
- 7.2.0
|
55
|
+
Content-Length:
|
56
|
+
- '423'
|
57
|
+
body:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: '{"root_authorized_keys":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFgraK6s3SXvn8cIFkCYOlOnWrYI0LwI+FPvtmp6oRRJL4aXbGu0LLId2mXqwZgWNGC5za3q0g+pbtpYyJKms/eXhvQGhOGMFCrONjc23hbUkSGRezBZuld2uYgjvm4egMTEhb1VvWjN+FXMXlV262FR5pqvw7k54+uKH6vjv893qEBQ4cDaLSrYPmbnsjWOthhGYYT5hZPOj7e5/F02VuNzi9BbPEBVEzrESJo6177vWX2g0g2oZoG4SZwH1S+AaRTXL9vPvVJSxkLdZ5Pp5QUren7L21soczP7fk0nqe7DPzqLnnaoxd5TAF5Mp+OdmyPTjwTFlKRTOxeS2N3Cot\n","key":"value"}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Sun, 15 Feb 2015 11:14:50 GMT
|
62
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,64 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://us-east-1.api.joyentcloud.com/my/machines/4d17c91d-6b94-6f81-cbea-acfb3a8473b4/metadata
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"key":"value"}'
|
9
|
+
headers:
|
10
|
+
Date: ''
|
11
|
+
Authorization: ''
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
X-Api-Version:
|
17
|
+
- "~7.0"
|
18
|
+
User-Agent:
|
19
|
+
- Faraday v0.9.1
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
X-Api-Version:
|
28
|
+
- 7.2.0
|
29
|
+
Server:
|
30
|
+
- Joyent SmartDataCenter 7.2.0
|
31
|
+
Request-Id: ''
|
32
|
+
X-Job-Uuid:
|
33
|
+
- 9ce0708a-cc30-4d5f-9668-9f0dd14e490d
|
34
|
+
Content-Type:
|
35
|
+
- application/json
|
36
|
+
Access-Control-Expose-Headers:
|
37
|
+
- Api-Version, Request-Id, Response-Time
|
38
|
+
Strict-Transport-Security:
|
39
|
+
- max-age=6570000
|
40
|
+
Date: ''
|
41
|
+
X-Request-Id: ''
|
42
|
+
Content-Md5:
|
43
|
+
- EcyTNqdE7CdBok7HcX5T+w==
|
44
|
+
Access-Control-Allow-Origin:
|
45
|
+
- "*"
|
46
|
+
Response-Time: ''
|
47
|
+
X-Response-Time: ''
|
48
|
+
Connection:
|
49
|
+
- Keep-Alive
|
50
|
+
Access-Control-Allow-Headers:
|
51
|
+
- Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, Api-Version,
|
52
|
+
Response-Time
|
53
|
+
Access-Control-Allow-Methods:
|
54
|
+
- POST, GET, HEAD, DELETE
|
55
|
+
Api-Version:
|
56
|
+
- 7.2.0
|
57
|
+
Content-Length:
|
58
|
+
- '423'
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: '{"root_authorized_keys":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFgraK6s3SXvn8cIFkCYOlOnWrYI0LwI+FPvtmp6oRRJL4aXbGu0LLId2mXqwZgWNGC5za3q0g+pbtpYyJKms/eXhvQGhOGMFCrONjc23hbUkSGRezBZuld2uYgjvm4egMTEhb1VvWjN+FXMXlV262FR5pqvw7k54+uKH6vjv893qEBQ4cDaLSrYPmbnsjWOthhGYYT5hZPOj7e5/F02VuNzi9BbPEBVEzrESJo6177vWX2g0g2oZoG4SZwH1S+AaRTXL9vPvVJSxkLdZ5Pp5QUren7L21soczP7fk0nqe7DPzqLnnaoxd5TAF5Mp+OdmyPTjwTFlKRTOxeS2N3Cot\n","key":"value"}'
|
62
|
+
http_version:
|
63
|
+
recorded_at: Sun, 15 Feb 2015 11:13:59 GMT
|
64
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,58 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://us-east-1.api.joyentcloud.com/my/machines/4d17c91d-6b94-6f81-cbea-acfb3a8473b4
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"action":"reboot"}'
|
9
|
+
headers:
|
10
|
+
Date: ''
|
11
|
+
Authorization: ''
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
X-Api-Version:
|
17
|
+
- "~7.0"
|
18
|
+
User-Agent:
|
19
|
+
- Faraday v0.9.1
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 202
|
25
|
+
message: Accepted
|
26
|
+
headers:
|
27
|
+
X-Api-Version:
|
28
|
+
- 7.2.0
|
29
|
+
Server:
|
30
|
+
- Joyent SmartDataCenter 7.2.0
|
31
|
+
Request-Id: ''
|
32
|
+
Access-Control-Expose-Headers:
|
33
|
+
- Api-Version, Request-Id, Response-Time
|
34
|
+
Strict-Transport-Security:
|
35
|
+
- max-age=6570000
|
36
|
+
Date: ''
|
37
|
+
X-Request-Id: ''
|
38
|
+
Transfer-Encoding:
|
39
|
+
- chunked
|
40
|
+
Access-Control-Allow-Origin:
|
41
|
+
- "*"
|
42
|
+
Response-Time: ''
|
43
|
+
X-Response-Time: ''
|
44
|
+
Connection:
|
45
|
+
- Keep-Alive
|
46
|
+
Access-Control-Allow-Headers:
|
47
|
+
- Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, Api-Version,
|
48
|
+
Response-Time
|
49
|
+
Access-Control-Allow-Methods:
|
50
|
+
- POST, GET, HEAD, DELETE, PUT
|
51
|
+
Api-Version:
|
52
|
+
- 7.2.0
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: ''
|
56
|
+
http_version:
|
57
|
+
recorded_at: Sun, 15 Feb 2015 10:43:52 GMT
|
58
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://us-east-1.api.joyentcloud.com/my/machines/4d17c91d-6b94-6f81-cbea-acfb3a8473b4
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Date: ''
|
11
|
+
Authorization: ''
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
X-Api-Version:
|
17
|
+
- "~7.0"
|
18
|
+
User-Agent:
|
19
|
+
- Faraday v0.9.1
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
X-Api-Version:
|
28
|
+
- 7.2.0
|
29
|
+
Server:
|
30
|
+
- Joyent SmartDataCenter 7.2.0
|
31
|
+
Request-Id: ''
|
32
|
+
Content-Type:
|
33
|
+
- application/json
|
34
|
+
Access-Control-Expose-Headers:
|
35
|
+
- Api-Version, Request-Id, Response-Time
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=6570000
|
38
|
+
Date: ''
|
39
|
+
X-Request-Id: ''
|
40
|
+
Content-Md5:
|
41
|
+
- I0q7tQa78K1N8phdODtSVw==
|
42
|
+
Access-Control-Allow-Origin:
|
43
|
+
- "*"
|
44
|
+
Response-Time: ''
|
45
|
+
X-Response-Time: ''
|
46
|
+
Connection:
|
47
|
+
- Keep-Alive
|
48
|
+
Access-Control-Allow-Headers:
|
49
|
+
- Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, Api-Version,
|
50
|
+
Response-Time
|
51
|
+
Access-Control-Allow-Methods:
|
52
|
+
- POST, GET, HEAD, DELETE, PUT
|
53
|
+
Api-Version:
|
54
|
+
- 7.2.0
|
55
|
+
Content-Length:
|
56
|
+
- '895'
|
57
|
+
body:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: '{"id":"4d17c91d-6b94-6f81-cbea-acfb3a8473b4","name":"example","type":"smartmachine","state":"running","image":"62f148f8-6e84-11e4-82c5-efca60348b9f","ips":["72.2.113.126","10.112.2.243"],"memory":256,"disk":16384,"metadata":{"root_authorized_keys":"ssh-rsa
|
60
|
+
AAAAB3NzaC1yc2EAAAADAQABAAABAQDFgraK6s3SXvn8cIFkCYOlOnWrYI0LwI+FPvtmp6oRRJL4aXbGu0LLId2mXqwZgWNGC5za3q0g+pbtpYyJKms/eXhvQGhOGMFCrONjc23hbUkSGRezBZuld2uYgjvm4egMTEhb1VvWjN+FXMXlV262FR5pqvw7k54+uKH6vjv893qEBQ4cDaLSrYPmbnsjWOthhGYYT5hZPOj7e5/F02VuNzi9BbPEBVEzrESJo6177vWX2g0g2oZoG4SZwH1S+AaRTXL9vPvVJSxkLdZ5Pp5QUren7L21soczP7fk0nqe7DPzqLnnaoxd5TAF5Mp+OdmyPTjwTFlKRTOxeS2N3Cot\n"},"tags":{},"created":"2015-02-15T10:21:57.827Z","updated":"2015-02-15T10:23:56.000Z","dataset":"sdc:sdc:base64:14.3.0","primaryIp":"72.2.113.126","firewall_enabled":false,"compute_node":"44454c4c-4e00-1047-8059-c2c04f4d5331","package":"g3-standard-0.25-smartos"}'
|
61
|
+
http_version:
|
62
|
+
recorded_at: Sun, 15 Feb 2015 10:29:02 GMT
|
63
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://us-east-1.api.joyentcloud.com/my/machines/4d17c91d-6b94-6f81-cbea-acfb3a8473b4/snapshots
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"example"}'
|
9
|
+
headers:
|
10
|
+
Date: ''
|
11
|
+
Authorization: ''
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
X-Api-Version:
|
17
|
+
- "~7.0"
|
18
|
+
User-Agent:
|
19
|
+
- Faraday v0.9.1
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 201
|
25
|
+
message: Created
|
26
|
+
headers:
|
27
|
+
X-Api-Version:
|
28
|
+
- 7.2.0
|
29
|
+
Server:
|
30
|
+
- Joyent SmartDataCenter 7.2.0
|
31
|
+
Request-Id: ''
|
32
|
+
Content-Type:
|
33
|
+
- application/json
|
34
|
+
Access-Control-Expose-Headers:
|
35
|
+
- Api-Version, Request-Id, Response-Time
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=6570000
|
38
|
+
Date: ''
|
39
|
+
X-Request-Id: ''
|
40
|
+
Content-Md5:
|
41
|
+
- w7rH4pPC5fTSs/Fy9EfDeQ==
|
42
|
+
Access-Control-Allow-Origin:
|
43
|
+
- "*"
|
44
|
+
Response-Time: ''
|
45
|
+
X-Response-Time: ''
|
46
|
+
Connection:
|
47
|
+
- Keep-Alive
|
48
|
+
Access-Control-Allow-Headers:
|
49
|
+
- Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, Api-Version,
|
50
|
+
Response-Time
|
51
|
+
Access-Control-Allow-Methods:
|
52
|
+
- POST, GET, HEAD
|
53
|
+
Api-Version:
|
54
|
+
- 7.2.0
|
55
|
+
Content-Length:
|
56
|
+
- '35'
|
57
|
+
body:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: '{"name":"example","state":"queued"}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Sun, 15 Feb 2015 11:27:14 GMT
|
62
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,56 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: https://us-east-1.api.joyentcloud.com/my/machines/4d17c91d-6b94-6f81-cbea-acfb3a8473b4/snapshots/example
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Date: ''
|
11
|
+
Authorization: ''
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
X-Api-Version:
|
17
|
+
- "~7.0"
|
18
|
+
User-Agent:
|
19
|
+
- Faraday v0.9.1
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 204
|
25
|
+
message: No Content
|
26
|
+
headers:
|
27
|
+
X-Api-Version:
|
28
|
+
- 7.2.0
|
29
|
+
Server:
|
30
|
+
- Joyent SmartDataCenter 7.2.0
|
31
|
+
Request-Id: ''
|
32
|
+
Access-Control-Expose-Headers:
|
33
|
+
- Api-Version, Request-Id, Response-Time
|
34
|
+
Strict-Transport-Security:
|
35
|
+
- max-age=6570000
|
36
|
+
Date: ''
|
37
|
+
X-Request-Id: ''
|
38
|
+
Access-Control-Allow-Origin:
|
39
|
+
- "*"
|
40
|
+
Response-Time: ''
|
41
|
+
X-Response-Time: ''
|
42
|
+
Connection:
|
43
|
+
- Keep-Alive
|
44
|
+
Access-Control-Allow-Headers:
|
45
|
+
- Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, Api-Version,
|
46
|
+
Response-Time
|
47
|
+
Access-Control-Allow-Methods:
|
48
|
+
- POST, GET, HEAD, DELETE
|
49
|
+
Api-Version:
|
50
|
+
- 7.2.0
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: ''
|
54
|
+
http_version:
|
55
|
+
recorded_at: Sun, 15 Feb 2015 11:29:41 GMT
|
56
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://us-east-1.api.joyentcloud.com/my/machines/4d17c91d-6b94-6f81-cbea-acfb3a8473b4/snapshots
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Date: ''
|
11
|
+
Authorization: ''
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
X-Api-Version:
|
17
|
+
- "~7.0"
|
18
|
+
User-Agent:
|
19
|
+
- Faraday v0.9.1
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
X-Api-Version:
|
28
|
+
- 7.2.0
|
29
|
+
Server:
|
30
|
+
- Joyent SmartDataCenter 7.2.0
|
31
|
+
Request-Id: ''
|
32
|
+
Content-Type:
|
33
|
+
- application/json
|
34
|
+
Access-Control-Expose-Headers:
|
35
|
+
- Api-Version, Request-Id, Response-Time
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=6570000
|
38
|
+
Date: ''
|
39
|
+
X-Request-Id: ''
|
40
|
+
Content-Md5:
|
41
|
+
- J6tVJmPgZyVX18TQCbWrKg==
|
42
|
+
Access-Control-Allow-Origin:
|
43
|
+
- "*"
|
44
|
+
Response-Time: ''
|
45
|
+
X-Response-Time: ''
|
46
|
+
Connection:
|
47
|
+
- Keep-Alive
|
48
|
+
Access-Control-Allow-Headers:
|
49
|
+
- Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, Api-Version,
|
50
|
+
Response-Time
|
51
|
+
Access-Control-Allow-Methods:
|
52
|
+
- POST, GET, HEAD
|
53
|
+
Api-Version:
|
54
|
+
- 7.2.0
|
55
|
+
Content-Length:
|
56
|
+
- '112'
|
57
|
+
body:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: '[{"name":"example","state":"created","created":"2015-02-15T11:27:13.000Z","updated":"2015-02-15T11:27:13.000Z"}]'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Sun, 15 Feb 2015 11:28:00 GMT
|
62
|
+
recorded_with: VCR 2.9.3
|