code42 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -0
- data/code42.gemspec +3 -0
- data/lib/code42.rb +66 -27
- data/lib/code42/api/destination.rb +18 -0
- data/lib/code42/api/diagnostic.rb +9 -0
- data/lib/code42/api/org.rb +5 -2
- data/lib/code42/api/product_license.rb +21 -0
- data/lib/code42/api/server.rb +21 -0
- data/lib/code42/api/server_connection_string.rb +9 -0
- data/lib/code42/api/server_settings.rb +13 -0
- data/lib/code42/api/store_point.rb +22 -0
- data/lib/code42/api/token.rb +7 -0
- data/lib/code42/client.rb +23 -31
- data/lib/code42/computer.rb +0 -2
- data/lib/code42/connection.rb +14 -26
- data/lib/code42/destination.rb +52 -0
- data/lib/code42/product_license.rb +12 -0
- data/lib/code42/server.rb +54 -0
- data/lib/code42/server_connection_string.rb +10 -0
- data/lib/code42/server_settings.rb +4 -0
- data/lib/code42/settings.rb +1 -1
- data/lib/code42/store_point.rb +63 -0
- data/lib/code42/version.rb +1 -1
- data/spec/cassettes/Code42_Client/_add_product_license/adds_a_product_license.yml +39 -0
- data/spec/cassettes/Code42_Client/_apply_mlk/applies_the_mlk.yml +77 -0
- data/spec/cassettes/Code42_Client/_create_destination/creates_a_destination.yml +40 -0
- data/spec/cassettes/Code42_Client/_create_server/creates_a_server.yml +38 -0
- data/spec/cassettes/Code42_Client/_destination/returns_a_destination.yml +37 -0
- data/spec/cassettes/Code42_Client/_destinations/returns_an_array_of_desinations.yml +37 -0
- data/spec/cassettes/Code42_Client/_org_share_destinations/returns_a_provider_key.yml +36 -0
- data/spec/cassettes/Code42_Client/_product_licenses/returns_an_array_of_product_licenses.yml +81 -0
- data/spec/cassettes/Code42_Client/_remove_product_license/removes_a_product_license.yml +104 -0
- data/spec/cassettes/Code42_Client/_server/returns_a_server.yml +37 -0
- data/spec/cassettes/Code42_Client/_server_connection_string/returns_a_connection_string.yml +36 -0
- data/spec/cassettes/Code42_Client/_server_settings/returns_a_server_settings_object.yml +37 -0
- data/spec/cassettes/Code42_Client/_servers/returns_an_array_of_servers.yml +37 -0
- data/spec/cassettes/Code42_Client/_update_product_license/updates_a_product_license.yml +76 -0
- data/spec/cassettes/Code42_Client/_update_server_settings/updates_server_settings.yml +70 -0
- data/spec/cassettes/Code42_StorePoint/_accept_new_devices/should_return_store_point_with_accept_new_devices_enabled.yml +75 -0
- data/spec/cassettes/Code42_StorePoint/_disable_balancing/should_return_store_point_with_balancing_enabled.yml +75 -0
- data/spec/cassettes/Code42_StorePoint/_disable_inbound_backup/should_return_store_point_with_inbound_backup_disabled.yml +75 -0
- data/spec/cassettes/Code42_StorePoint/_enable_balancing/should_return_store_point_with_balancing_enabled.yml +75 -0
- data/spec/cassettes/Code42_StorePoint/_enable_inbound_backup/should_return_store_point_with_inbound_backup_disabled.yml +75 -0
- data/spec/cassettes/Code42_StorePoint/_find_store_point_by_id/should_return_correct_store_point.yml +38 -0
- data/spec/cassettes/Code42_StorePoint/_find_store_point_by_name/should_return_correct_store_point.yml +38 -0
- data/spec/cassettes/Code42_StorePoint/_find_store_point_by_server_name/should_return_correct_store_point.yml +38 -0
- data/spec/cassettes/Code42_StorePoint/_reject_new_devices/should_return_store_point_with_accept_new_devices_disabled.yml +75 -0
- data/spec/code42/client_spec.rb +161 -57
- data/spec/code42/connection_spec.rb +10 -12
- data/spec/code42/extension_spec.rb +0 -2
- data/spec/code42/org_spec.rb +20 -22
- data/spec/code42/ping_spec.rb +1 -3
- data/spec/code42/product_license_spec.rb +34 -0
- data/spec/code42/resource_spec.rb +0 -2
- data/spec/code42/role_spec.rb +2 -4
- data/spec/code42/server_connection_string_spec.rb +34 -0
- data/spec/code42/server_spec.rb +66 -0
- data/spec/code42/settings_spec.rb +25 -27
- data/spec/code42/store_point_spec.rb +90 -0
- data/spec/code42/token_spec.rb +10 -15
- data/spec/code42/user_spec.rb +4 -6
- data/spec/spec_helper.rb +1 -1
- metadata +74 -4
@@ -0,0 +1,52 @@
|
|
1
|
+
module Code42
|
2
|
+
class Destination < Resource
|
3
|
+
|
4
|
+
attribute :destination_id
|
5
|
+
attribute :computer_id
|
6
|
+
attribute :guid
|
7
|
+
attribute :destination_name
|
8
|
+
attribute :type
|
9
|
+
|
10
|
+
attribute :accepting_inbound_backup
|
11
|
+
attribute :accepting_new_computers
|
12
|
+
attribute :server_online_status
|
13
|
+
|
14
|
+
attribute :cluster_server_id
|
15
|
+
|
16
|
+
attribute :org_count
|
17
|
+
attribute :user_count
|
18
|
+
attribute :computer_count
|
19
|
+
attribute :online_computer_count
|
20
|
+
|
21
|
+
attribute :used_bytes
|
22
|
+
|
23
|
+
attribute :archive_bytes
|
24
|
+
|
25
|
+
attribute :backup_session_count
|
26
|
+
attribute :inbound_bandwidth
|
27
|
+
attribute :outbound_bandwidth
|
28
|
+
attribute :selected_bytes
|
29
|
+
attribute :remaining_bytes
|
30
|
+
|
31
|
+
attribute :destination_name
|
32
|
+
attribute :original_destination_name
|
33
|
+
|
34
|
+
attribute :balancing_data
|
35
|
+
attribute :balanced_store_point_count
|
36
|
+
|
37
|
+
attribute :server_count
|
38
|
+
attribute :offline_server_count
|
39
|
+
attribute :store_point_count
|
40
|
+
|
41
|
+
attribute :total_bytes
|
42
|
+
attribute :used_percentage
|
43
|
+
attribute :free_bytes
|
44
|
+
attribute :free_percentage
|
45
|
+
|
46
|
+
attribute :cold_bytes
|
47
|
+
attribute :cold_percentage_of_used
|
48
|
+
attribute :cold_percentage_of_total
|
49
|
+
|
50
|
+
attribute :settings
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module Code42
|
2
|
+
class ProductLicense < Resource
|
3
|
+
attribute :id, from: 'productLicenseId'
|
4
|
+
attribute :creation_date, as: DateTime
|
5
|
+
attribute :expiration_date, as: DateTime
|
6
|
+
attribute :product_license
|
7
|
+
|
8
|
+
def remove
|
9
|
+
client.remove_product_license(id)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
module Code42
|
2
|
+
class Server < Resource
|
3
|
+
attribute :id, from: 'serverId'
|
4
|
+
|
5
|
+
attribute :guid
|
6
|
+
attribute :name, from: 'serverName'
|
7
|
+
attribute :type
|
8
|
+
attribute :version
|
9
|
+
|
10
|
+
attribute :online
|
11
|
+
attribute :out_of_date
|
12
|
+
attribute :accepting_inbound_backup
|
13
|
+
attribute :balancing_data
|
14
|
+
attribute :accepting_new_computers
|
15
|
+
attribute :db_empty
|
16
|
+
|
17
|
+
attribute :cluster_server_id
|
18
|
+
attribute :destination_id
|
19
|
+
attribute :destination_name
|
20
|
+
attribute :provider_destination_name
|
21
|
+
attribute :primary_address
|
22
|
+
attribute :secondary_address
|
23
|
+
attribute :website_host
|
24
|
+
attribute :store_point_count
|
25
|
+
|
26
|
+
attribute :total_bytes
|
27
|
+
attribute :used_bytes
|
28
|
+
attribute :used_percentage
|
29
|
+
attribute :free_bytes
|
30
|
+
attribute :free_percentage
|
31
|
+
attribute :cold_bytes
|
32
|
+
attribute :cold_percentage_of_used
|
33
|
+
attribute :cold_percentage_of_total
|
34
|
+
|
35
|
+
attribute :archive_bytes
|
36
|
+
attribute :selected_bytes
|
37
|
+
attribute :remaining_bytes
|
38
|
+
|
39
|
+
attribute :inbound_bandwidth
|
40
|
+
attribute :outbound_bandwidth
|
41
|
+
attribute :org_count
|
42
|
+
attribute :user_count
|
43
|
+
attribute :licensed_user_count
|
44
|
+
attribute :computer_count
|
45
|
+
attribute :backup_computer_count
|
46
|
+
attribute :online_computer_count
|
47
|
+
|
48
|
+
attribute :backup_session_count
|
49
|
+
|
50
|
+
def connection_string
|
51
|
+
client.server_connection_string(id)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
data/lib/code42/settings.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Code42
|
2
2
|
class Settings
|
3
|
-
attr_accessor :host, :port, :https, :api_root, :username, :password, :token, :verify_https, :debug
|
3
|
+
attr_accessor :host, :port, :https, :api_root, :username, :password, :token, :verify_https, :debug, :mlk
|
4
4
|
|
5
5
|
def initialize(options = {})
|
6
6
|
options.symbolize_keys!
|
@@ -0,0 +1,63 @@
|
|
1
|
+
module Code42
|
2
|
+
class StorePoint < Resource
|
3
|
+
|
4
|
+
attribute :id, :from => 'storePointId'
|
5
|
+
attribute :name, :from => 'storePointName'
|
6
|
+
attribute :note
|
7
|
+
attribute :path
|
8
|
+
attribute :directory
|
9
|
+
attribute :absolute_path
|
10
|
+
attribute :server_id
|
11
|
+
attribute :server_name
|
12
|
+
attribute :destination_id
|
13
|
+
attribute :destination_name
|
14
|
+
attribute :backup_session_count
|
15
|
+
attribute :computer_count
|
16
|
+
attribute :backup_computer_count
|
17
|
+
attribute :user_count
|
18
|
+
attribute :licensed_user_count
|
19
|
+
attribute :org_count
|
20
|
+
attribute :used_bytes
|
21
|
+
attribute :used_percentage
|
22
|
+
attribute :free_bytes
|
23
|
+
attribute :free_bytes_alert
|
24
|
+
attribute :free_percentage
|
25
|
+
attribute :cold_bytes
|
26
|
+
attribute :cold_percentage_of_used
|
27
|
+
attribute :cold_percentage_of_total
|
28
|
+
attribute :total_bytes
|
29
|
+
attribute :accepting_inbound_backup
|
30
|
+
attribute :balancing_data
|
31
|
+
attribute :accepting_new_computers
|
32
|
+
attribute :write_speed
|
33
|
+
attribute :online
|
34
|
+
attribute :server_online
|
35
|
+
attribute :archive_bytes
|
36
|
+
attribute :selected_bytes
|
37
|
+
attribute :todo_bytes
|
38
|
+
|
39
|
+
def enable_balancing
|
40
|
+
client.update_store_point id, balancing_data: true
|
41
|
+
end
|
42
|
+
|
43
|
+
def disable_balancing
|
44
|
+
client.update_store_point id, balancing_data: false
|
45
|
+
end
|
46
|
+
|
47
|
+
def enable_inbound_backup
|
48
|
+
client.update_store_point id, accepting_inbound_backup: true
|
49
|
+
end
|
50
|
+
|
51
|
+
def disable_inbound_backup
|
52
|
+
client.update_store_point id, accepting_inbound_backup: false
|
53
|
+
end
|
54
|
+
|
55
|
+
def accept_new_devices
|
56
|
+
client.update_store_point id, accepting_new_computers: true
|
57
|
+
end
|
58
|
+
|
59
|
+
def reject_new_devices
|
60
|
+
client.update_store_point id, accepting_new_computers: false
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
data/lib/code42/version.rb
CHANGED
@@ -0,0 +1,39 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://10.10.46.137:4280/api/productLicense
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"productLicense":"ZP5Pbz8wx1dBHKjhkkQjGDZ+tTtkvuD5e5d2TC9/uHoODR9NvyaHfbypRUHR15hbeHdf7ExfnVpmwPiIcgYxCQ=="}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.8
|
12
|
+
Authorization:
|
13
|
+
- Basic YWRtaW46YWRtaW4=
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: ''
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- no-store
|
23
|
+
Pragma:
|
24
|
+
- no-cache
|
25
|
+
Content-Location:
|
26
|
+
- http://10.10.46.137:4280/api/v1/productLicense
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Server:
|
32
|
+
- Jetty(7.6.3.v20120416)
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"metadata":{"timestamp":"2013-09-10T13:21:21.501-05:00","params":{}},"data":{"products":[{"productLicenseId":3,"name":"PROe
|
36
|
+
Server Unlimited-Pack","quantity":2147483647,"creationDate":"2013-01-16T00:00:00.000-06:00","expirationDate":"2013-01-16T00:00:00.000-06:00","productType":"B42_PRO_LICENSE","licenseKey":"ZP5Pbz8wx1dBHKjhkkQjGDZ+tTtkvuD5e5d2TC9/uHoODR9NvyaHfbypRUHR15hbeHdf7ExfnVpmwPiIcgYxCQ\u003d\u003d"}]}}'
|
37
|
+
http_version:
|
38
|
+
recorded_at: Tue, 10 Sep 2013 18:21:18 GMT
|
39
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,77 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://admin:admin@10.10.47.107:7280/api/ping
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- no-store
|
23
|
+
Pragma:
|
24
|
+
- no-cache
|
25
|
+
Content-Location:
|
26
|
+
- http://10.10.47.107:7280/api/v1/ping
|
27
|
+
Content-Type:
|
28
|
+
- application/json;charset=UTF-8
|
29
|
+
Content-Length:
|
30
|
+
- '94'
|
31
|
+
Server:
|
32
|
+
- Jetty(7.6.15.v20140411)
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"metadata":{"timestamp":"2014-09-19T10:28:14.535-05:00","params":{}},"data":{"success":true}}'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Fri, 19 Sep 2014 15:28:14 GMT
|
38
|
+
- request:
|
39
|
+
method: post
|
40
|
+
uri: http://admin:admin@10.10.47.107:7280/api/authToken
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{}'
|
44
|
+
headers:
|
45
|
+
User-Agent:
|
46
|
+
- Faraday v0.9.0
|
47
|
+
C42-Masterlicensekey:
|
48
|
+
- BASIC BdYS3i2U+1J/d/sU+IeZ/sTP0mac3k3FyXHxL69MPps3JOUIjb6PUc2UUw5jrD01CnLsJLhnanwJUTCRyjtwn+b7BkI/5kjosUo5RETbLKlc4PToufLu6cELvTUdwi/tMdLJFtx51jtoVdnZu4CfkBbcgcXR9yafkKas8XuOSd0=
|
49
|
+
Content-Type:
|
50
|
+
- application/json
|
51
|
+
Accept-Encoding:
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
|
+
Accept:
|
54
|
+
- '*/*'
|
55
|
+
response:
|
56
|
+
status:
|
57
|
+
code: 200
|
58
|
+
message: OK
|
59
|
+
headers:
|
60
|
+
Cache-Control:
|
61
|
+
- no-store
|
62
|
+
Pragma:
|
63
|
+
- no-cache
|
64
|
+
Content-Location:
|
65
|
+
- http://10.10.47.107:7280/api/v1/authToken
|
66
|
+
Content-Type:
|
67
|
+
- application/json;charset=UTF-8
|
68
|
+
Content-Length:
|
69
|
+
- '137'
|
70
|
+
Server:
|
71
|
+
- Jetty(7.6.15.v20140411)
|
72
|
+
body:
|
73
|
+
encoding: UTF-8
|
74
|
+
string: '{"metadata":{"timestamp":"2014-09-19T10:28:17.328-05:00","params":{}},"data":["1ix3k2701jn5l0kixl1xa05giw","136jc2w1tym050fdkky855t7en"]}'
|
75
|
+
http_version:
|
76
|
+
recorded_at: Fri, 19 Sep 2014 15:28:17 GMT
|
77
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.10.47.201:4280/api/Destination
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"provider":true,"destinationName":"aaa","providerKey":"rO0ABXQCnSI2MDA3ODIyNTE5MDIzNzAwNDkifHwiNjAwNzgyMTgzNjg2MjA5NzkzInx8IkNyYXNoUGxhbiBQUk9lIFNlcnZlciJ8fCJ1cms4Mm1tMjRtdzc4amNjInx8IjEwLjEwLjQ2LjEzNzo0MjgyInx8Im51bGwifHwiMTAuMTAuNDYuMTM3OjQyODYifHwiMTAuMTAuNDYuMTM3OjQyODMifHwiaHR0cDovLzEwLjEwLjQ2LjEzNzo0MjgwInx8Ik1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBb2hoeXdmYUpTWDh2RzZmK2JvR3ZDeGJPUzJrdk8yRlRIQUdJUGJtb0kwUUphd2gxZ3ZPQVFUQk5WeHY2Y1k4R1hKckphelI4dUl0UGQ3ZFNHNFNTbFYyR2FsT09WVUJuRitpUGQ2T1E2cDBhaVgvR1JIcjNqaTU2ZVNNNW1yYlUvTmQybGVKMSttV1Z2UkhOQ2ErTXFWbWQ3K3dNYkJvZk5aeGRSbzhZRk1SSVVMVFJEZk1MRFJLbnZUWUgzRk5vMCt6STZkb1RUeHpueXdTWXlqN0hEbkRDbW4yZGs4WnJwbnNpRkZHU3NDRUxPWXUraDZEUVppTkhlVDdwNWMzYnhSSW1tU2VxOUtPRmxkSlhZYk9ZSXB4TVE0QUtnYXYyWk9RWlBKZkIxOTJNek8rK25TY1B4Z1R6SVR4Nmw1N0xIY3Fzc1RPaFV3Z29JSm9ncTJDZzl3SURBUUFCInx8IlBST1ZJREVSInx8IjRtOWhqNDJrd3BwY21yc20ifHwiNjAwNzgyMjUyMDE5ODEwNTYxInx8IkNyYXNoUGxhbiBQUk9lIFNlcnZlciJ8fCJudWxsIg=="}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.8
|
12
|
+
Authorization:
|
13
|
+
- TOKEN 19wlw7w98g0z20nirujkowyb9x-0q7f3bggxz3wd0lfucr48fi1yh
|
14
|
+
Authorization-Challenge:
|
15
|
+
- 'false'
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: ''
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- no-store
|
25
|
+
Pragma:
|
26
|
+
- no-cache
|
27
|
+
Content-Location:
|
28
|
+
- http://10.10.47.201:4280/api/v1/Destination
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Server:
|
34
|
+
- Jetty(7.6.3.v20120416)
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"metadata":{"timestamp":"2013-09-10T17:56:29.338-05:00","params":{}},"data":[45]}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Tue, 10 Sep 2013 22:56:26 GMT
|
40
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.10.47.201:4280/api/server
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"connectionString":"rO0ABXQCmCI2MDA2MjQyNjI0MDI4MDE5MjEifHwiNjAwNjI0MTc0ODU5Mjg4ODMzInx8Im1vcmUtMDIifHwibWh3aGNza3I4bThocHcycyJ8fCIxMC4xMC40Ni45NDo0MjgyInx8Im51bGwifHwiMTAuMTAuNDYuOTQ6NDI4NiJ8fCIxMC4xMC40Ni45NDo0MjgzInx8Imh0dHA6Ly8xMC4xMC40Ni45NDo0MjgwInx8Ik1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBcFcxTVd0bnUyWEd0aXkzQjFWMXJlV1dXR204ak5OV3V1SHVDTGVNcHdqRGVHMUFUQm5aaTV5aEIxSTBBREhCekZYYkwrbHgvTTBMUDJuQkplek9nRVRXQ0R5ZCtncXV1K3pBdlF4K3RrdTZHcmo2cDZhaHgxYnQ2Y0tZd28zcW9jaTMxY3pZOElRWll5V0JVZUducDlEOTd3ZWxmaGgxakkwdEE3MlBUSEt0NzAvcUdDeXZaaVRqK3VSRDhIVTJsL3hDaVh2a2F6Wmc0dzBBQXhmL0VwNUlmNFJBYlNPTzZrTzNjVkFmcWxxcjdxS2dqc04ydGFhVlgvbXM0YnBmQ05ubXhHZWI3bnI1WXMrcUpuT0Q3bytTb1R5dmVJWm5SMUtkeEkwcDBIdmpLd3JSeEpIamdrS0Z6RU1lTFFhVmJlRmhrTm5RM3laVlVydkdOeDZXSHN3SURBUUFCInx8IlNUT1JBR0VfTk9ERSJ8fCJEZWZhdWx0Inx8Ii92YXIvb3B0L3Byb3NlcnZlci9iYWNrdXBBcmNoaXZlcyJ8fCJDcmFzaFBsYW5BcmNoaXZlX0RlZmF1bHQifHwibnVsbCI=","destinationId":4}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.8
|
12
|
+
Authorization:
|
13
|
+
- Basic YWRtaW46YWRtaW4=
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: ''
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- no-store
|
23
|
+
Pragma:
|
24
|
+
- no-cache
|
25
|
+
Content-Location:
|
26
|
+
- http://10.10.47.201:4280/api/v1/server
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Server:
|
32
|
+
- Jetty(7.6.3.v20120416)
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"metadata":{"timestamp":"2013-09-11T12:15:57.715-05:00","params":{}},"data":{"serverId":47,"guid":"600624174859288833","serverName":"more-02","type":"STORAGE","version":null,"online":false,"outOfDate":false,"acceptingInboundBackup":"ALL","balancingData":"NONE","acceptingNewComputers":"NONE","dbEmpty":false,"clusterServerId":1,"destinationId":4,"destinationName":"more-01-storage","providerDestinationName":null,"primaryAddress":"10.10.46.94:4282","secondaryAddress":null,"websiteHost":"http://10.10.46.94:4280","storePointCount":1,"totalBytes":0,"usedBytes":0,"usedPercentage":0.0,"freeBytes":0,"freePercentage":0.0,"coldBytes":0,"coldPercentageOfUsed":0.0,"coldPercentageOfTotal":0.0,"archiveBytes":0,"selectedBytes":0,"remainingBytes":0,"inboundBandwidth":0,"outboundBandwidth":0,"orgCount":0,"userCount":0,"licensedUserCount":0,"computerCount":0,"backupComputerCount":0,"onlineComputerCount":0,"backupSessionCount":0}}'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Wed, 11 Sep 2013 17:35:02 GMT
|
38
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,37 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://10.10.47.201:4280/api/destination/45
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.8
|
12
|
+
Authorization:
|
13
|
+
- Basic YWRtaW46YWRtaW4=
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: ''
|
18
|
+
headers:
|
19
|
+
Cache-Control:
|
20
|
+
- no-store
|
21
|
+
Pragma:
|
22
|
+
- no-cache
|
23
|
+
Content-Location:
|
24
|
+
- http://10.10.47.201:4280/api/v1/destination/45
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Server:
|
30
|
+
- Jetty(7.6.3.v20120416)
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: '{"metadata":{"timestamp":"2013-09-11T10:19:24.846-05:00","params":{}},"data":{"destinationId":45,"computerId":51,"guid":"600782252019810561","destinationName":"aaa1","type":"PROVIDER","acceptingInboundBackup":"ALL","acceptingNewComputers":"NONE","serverOnlineStatus":"ALL","clusterServerId":1,"orgCount":0,"userCount":0,"computerCount":0,"onlineComputerCount":0,"usedBytes":0,"archiveBytes":0,"backupSessionCount":0,"inboundBandwidth":0,"outboundBandwidth":0,"selectedBytes":0,"remainingBytes":0,"originalDestinationName":"CrashPlan
|
34
|
+
PROe Server","balancingData":"","serverCount":"","offlineServerCount":"","storePointCount":"","totalBytes":"","usedPercentage":"","freeBytes":"","freePercentage":"","coldBytes":"","coldPercentageOfUsed":"","coldPercentageOfTotal":"","settings":{"balancerEnabled":"","allowedDiskVariance":"","localPriority":"","remotePriority":""}}}'
|
35
|
+
http_version:
|
36
|
+
recorded_at: Wed, 11 Sep 2013 15:19:19 GMT
|
37
|
+
recorded_with: VCR 2.5.0
|