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,63 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://us-east-1.api.joyentcloud.com/my/images/f953e97e-4991-11e1-9ea4-27c6e7e8afda
|
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
|
+
- tXjajRbWvNPoqo25ry2Cpg==
|
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
|
+
- GET, HEAD, POST, DELETE
|
53
|
+
Api-Version:
|
54
|
+
- 7.2.0
|
55
|
+
Content-Length:
|
56
|
+
- '321'
|
57
|
+
body:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: '{"id":"f953e97e-4991-11e1-9ea4-27c6e7e8afda","name":"nodejs","version":"1.3.3","os":"smartos","requirements":{},"type":"smartmachine","description":"Node.js
|
60
|
+
git-deploy PaaS dataset","files":[{"compression":"bzip2","sha1":"9eb5a49bd9f7fa6baa74905c2db4f649f7501ccd","size":285688305}],"published_at":"2012-02-14T03:54:01Z"}'
|
61
|
+
http_version:
|
62
|
+
recorded_at: Sun, 15 Feb 2015 09:39:08 GMT
|
63
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,65 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://us-east-1.api.joyentcloud.com/my/keys
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"example","key":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFgraK6s3SXvn8cIFkCYOlOnWrYI0LwI+FPvtmp6oRRJL4aXbGu0LLId2mXqwZgWNGC5za3q0g+pbtpYyJKms/eXhvQGhOGMFCrONjc23hbUkSGRezBZuld2uYgjvm4egMTEhb1VvWjN+FXMXlV262FR5pqvw7k54+uKH6vjv893qEBQ4cDaLSrYPmbnsjWOthhGYYT5hZPOj7e5/F02VuNzi9BbPEBVEzrESJo6177vWX2g0g2oZoG4SZwH1S+AaRTXL9vPvVJSxkLdZ5Pp5QUren7L21soczP7fk0nqe7DPzqLnnaoxd5TAF5Mp+OdmyPTjwTFlKRTOxeS2N3Cot\n"}'
|
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
|
+
Location:
|
41
|
+
- "/<USERNAME>/keys/4c%3A02%3Af3%3Ab2%3A09%3Afb%3A29%3Add%3A41%3A97%3Ada%3A80%3Abc%3A69%3A6c%3Af8"
|
42
|
+
Content-Md5:
|
43
|
+
- vrBhUJwAFSsybKZjRZ29/A==
|
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
|
55
|
+
Api-Version:
|
56
|
+
- 7.2.0
|
57
|
+
Content-Length:
|
58
|
+
- '471'
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: '{"name":"example","fingerprint":"4c:02:f3:b2:09:fb:29:dd:41:97:da:80:bc:69:6c:f8","key":"ssh-rsa
|
62
|
+
AAAAB3NzaC1yc2EAAAADAQABAAABAQDFgraK6s3SXvn8cIFkCYOlOnWrYI0LwI+FPvtmp6oRRJL4aXbGu0LLId2mXqwZgWNGC5za3q0g+pbtpYyJKms/eXhvQGhOGMFCrONjc23hbUkSGRezBZuld2uYgjvm4egMTEhb1VvWjN+FXMXlV262FR5pqvw7k54+uKH6vjv893qEBQ4cDaLSrYPmbnsjWOthhGYYT5hZPOj7e5/F02VuNzi9BbPEBVEzrESJo6177vWX2g0g2oZoG4SZwH1S+AaRTXL9vPvVJSxkLdZ5Pp5QUren7L21soczP7fk0nqe7DPzqLnnaoxd5TAF5Mp+OdmyPTjwTFlKRTOxeS2N3Cot"}'
|
63
|
+
http_version:
|
64
|
+
recorded_at: Sun, 15 Feb 2015 08:04:38 GMT
|
65
|
+
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/keys/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
|
+
- 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:56:28 GMT
|
56
|
+
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/keys
|
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
|
+
- EP2beOKe8pd7LKxtenlcHg==
|
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
|
+
- '473'
|
57
|
+
body:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: '[{"name":"example","fingerprint":"4c:02:f3:b2:09:fb:29:dd:41:97:da:80:bc:69:6c:f8","key":"ssh-rsa
|
60
|
+
AAAAB3NzaC1yc2EAAAADAQABAAABAQDFgraK6s3SXvn8cIFkCYOlOnWrYI0LwI+FPvtmp6oRRJL4aXbGu0LLId2mXqwZgWNGC5za3q0g+pbtpYyJKms/eXhvQGhOGMFCrONjc23hbUkSGRezBZuld2uYgjvm4egMTEhb1VvWjN+FXMXlV262FR5pqvw7k54+uKH6vjv893qEBQ4cDaLSrYPmbnsjWOthhGYYT5hZPOj7e5/F02VuNzi9BbPEBVEzrESJo6177vWX2g0g2oZoG4SZwH1S+AaRTXL9vPvVJSxkLdZ5Pp5QUren7L21soczP7fk0nqe7DPzqLnnaoxd5TAF5Mp+OdmyPTjwTFlKRTOxeS2N3Cot"}]'
|
61
|
+
http_version:
|
62
|
+
recorded_at: Sun, 15 Feb 2015 08:17:00 GMT
|
63
|
+
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/keys/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: 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
|
+
- vrBhUJwAFSsybKZjRZ29/A==
|
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
|
+
- GET, HEAD, DELETE
|
53
|
+
Api-Version:
|
54
|
+
- 7.2.0
|
55
|
+
Content-Length:
|
56
|
+
- '471'
|
57
|
+
body:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: '{"name":"example","fingerprint":"4c:02:f3:b2:09:fb:29:dd:41:97:da:80:bc:69:6c:f8","key":"ssh-rsa
|
60
|
+
AAAAB3NzaC1yc2EAAAADAQABAAABAQDFgraK6s3SXvn8cIFkCYOlOnWrYI0LwI+FPvtmp6oRRJL4aXbGu0LLId2mXqwZgWNGC5za3q0g+pbtpYyJKms/eXhvQGhOGMFCrONjc23hbUkSGRezBZuld2uYgjvm4egMTEhb1VvWjN+FXMXlV262FR5pqvw7k54+uKH6vjv893qEBQ4cDaLSrYPmbnsjWOthhGYYT5hZPOj7e5/F02VuNzi9BbPEBVEzrESJo6177vWX2g0g2oZoG4SZwH1S+AaRTXL9vPvVJSxkLdZ5Pp5QUren7L21soczP7fk0nqe7DPzqLnnaoxd5TAF5Mp+OdmyPTjwTFlKRTOxeS2N3Cot"}'
|
61
|
+
http_version:
|
62
|
+
recorded_at: Sun, 15 Feb 2015 08:18:09 GMT
|
63
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,65 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://us-east-1.api.joyentcloud.com/my/machines
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"example","image":"62f148f8-6e84-11e4-82c5-efca60348b9f","package":"d71da280-92da-489f-9c4c-c91891fa202f"}'
|
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
|
+
Location:
|
41
|
+
- "/<USERNAME>/machines/4d17c91d-6b94-6f81-cbea-acfb3a8473b4"
|
42
|
+
Content-Md5:
|
43
|
+
- ZnUArVZqHMAGpQaVZ2B47w==
|
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
|
55
|
+
Api-Version:
|
56
|
+
- 7.2.0
|
57
|
+
Content-Length:
|
58
|
+
- '810'
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: '{"id":"4d17c91d-6b94-6f81-cbea-acfb3a8473b4","name":"example","type":"smartmachine","state":"provisioning","image":"62f148f8-6e84-11e4-82c5-efca60348b9f","ips":[],"memory":256,"disk":16384,"metadata":{"root_authorized_keys":"ssh-rsa
|
62
|
+
AAAAB3NzaC1yc2EAAAADAQABAAABAQDFgraK6s3SXvn8cIFkCYOlOnWrYI0LwI+FPvtmp6oRRJL4aXbGu0LLId2mXqwZgWNGC5za3q0g+pbtpYyJKms/eXhvQGhOGMFCrONjc23hbUkSGRezBZuld2uYgjvm4egMTEhb1VvWjN+FXMXlV262FR5pqvw7k54+uKH6vjv893qEBQ4cDaLSrYPmbnsjWOthhGYYT5hZPOj7e5/F02VuNzi9BbPEBVEzrESJo6177vWX2g0g2oZoG4SZwH1S+AaRTXL9vPvVJSxkLdZ5Pp5QUren7L21soczP7fk0nqe7DPzqLnnaoxd5TAF5Mp+OdmyPTjwTFlKRTOxeS2N3Cot\n"},"tags":{},"created":"2015-02-15T10:21:48.877Z","updated":"2015-02-15T10:21:48.877Z","dataset":"sdc:sdc:base64:14.3.0","firewall_enabled":false,"compute_node":null,"package":"g3-standard-0.25-smartos"}'
|
63
|
+
http_version:
|
64
|
+
recorded_at: Sun, 15 Feb 2015 10:21:49 GMT
|
65
|
+
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
|
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, PUT
|
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:51:10 GMT
|
56
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,67 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://us-east-1.api.joyentcloud.com/my/machines
|
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
|
+
X-Query-Limit:
|
33
|
+
- '1000'
|
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
|
+
- 9n+SQXqJZLyEYUgAdY1U9A==
|
44
|
+
Access-Control-Allow-Origin:
|
45
|
+
- "*"
|
46
|
+
Response-Time: ''
|
47
|
+
X-Response-Time: ''
|
48
|
+
Connection:
|
49
|
+
- Keep-Alive
|
50
|
+
X-Resource-Count:
|
51
|
+
- '1'
|
52
|
+
Access-Control-Allow-Headers:
|
53
|
+
- Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, Api-Version,
|
54
|
+
Response-Time
|
55
|
+
Access-Control-Allow-Methods:
|
56
|
+
- POST, GET, HEAD
|
57
|
+
Api-Version:
|
58
|
+
- 7.2.0
|
59
|
+
Content-Length:
|
60
|
+
- '897'
|
61
|
+
body:
|
62
|
+
encoding: UTF-8
|
63
|
+
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
|
64
|
+
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"}]'
|
65
|
+
http_version:
|
66
|
+
recorded_at: Sun, 15 Feb 2015 10:25:11 GMT
|
67
|
+
recorded_with: VCR 2.9.3
|