profitbricks 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +1 -1
  3. data/CHANGELOG.md +0 -0
  4. data/Gemfile +23 -23
  5. data/Gemfile.lock +24 -11
  6. data/Manifest.txt +0 -0
  7. data/README.md +1 -1
  8. data/Rakefile +0 -0
  9. data/examples/create_datacenter.rb +0 -0
  10. data/lib/profitbricks/cli.rb +0 -0
  11. data/lib/profitbricks/config.rb +0 -0
  12. data/lib/profitbricks/data_center.rb +0 -0
  13. data/lib/profitbricks/extensions.rb +0 -0
  14. data/lib/profitbricks/firewall.rb +0 -0
  15. data/lib/profitbricks/image.rb +0 -0
  16. data/lib/profitbricks/ip_block.rb +0 -0
  17. data/lib/profitbricks/load_balancer.rb +0 -0
  18. data/lib/profitbricks/model.rb +0 -0
  19. data/lib/profitbricks/nic.rb +0 -0
  20. data/lib/profitbricks/profitbricks.rb +0 -0
  21. data/lib/profitbricks/rule.rb +0 -0
  22. data/lib/profitbricks/server.rb +7 -3
  23. data/lib/profitbricks/storage.rb +0 -0
  24. data/lib/profitbricks.rb +1 -1
  25. data/spec/fixtures/activate_firewalls/success.json +0 -0
  26. data/spec/fixtures/activate_firewalls/success.xml +0 -0
  27. data/spec/fixtures/activate_load_balancing_on_servers/success.json +0 -0
  28. data/spec/fixtures/activate_load_balancing_on_servers/success.xml +0 -0
  29. data/spec/fixtures/add_firewall_rules_to_load_balancer/success.json +0 -0
  30. data/spec/fixtures/add_firewall_rules_to_load_balancer/success.xml +0 -0
  31. data/spec/fixtures/add_firewall_rules_to_nic/success.json +0 -0
  32. data/spec/fixtures/add_firewall_rules_to_nic/success.xml +0 -0
  33. data/spec/fixtures/add_public_ip_to_nic/success.json +0 -0
  34. data/spec/fixtures/add_public_ip_to_nic/success.xml +0 -0
  35. data/spec/fixtures/clear_data_center/success.json +9 -9
  36. data/spec/fixtures/clear_data_center/success.xml +0 -0
  37. data/spec/fixtures/connect_storage_to_server/success.json +9 -9
  38. data/spec/fixtures/connect_storage_to_server/success.xml +0 -0
  39. data/spec/fixtures/create_data_center/success.json +9 -9
  40. data/spec/fixtures/create_data_center/success.xml +0 -0
  41. data/spec/fixtures/create_load_balancer/success.json +0 -0
  42. data/spec/fixtures/create_load_balancer/success.xml +0 -0
  43. data/spec/fixtures/create_nic/success.json +0 -0
  44. data/spec/fixtures/create_nic/success.xml +0 -0
  45. data/spec/fixtures/create_server/minimal.json +10 -10
  46. data/spec/fixtures/create_server/minimal.xml +0 -0
  47. data/spec/fixtures/create_storage/success.json +10 -10
  48. data/spec/fixtures/create_storage/success.xml +0 -0
  49. data/spec/fixtures/deactivate_firewalls/success.json +0 -0
  50. data/spec/fixtures/deactivate_firewalls/success.xml +0 -0
  51. data/spec/fixtures/deactivate_load_balancing_on_servers/success.json +0 -0
  52. data/spec/fixtures/deactivate_load_balancing_on_servers/success.xml +0 -0
  53. data/spec/fixtures/delete_data_center/success.json +7 -7
  54. data/spec/fixtures/delete_data_center/success.xml +0 -0
  55. data/spec/fixtures/delete_firewalls/success.json +0 -0
  56. data/spec/fixtures/delete_firewalls/success.xml +0 -0
  57. data/spec/fixtures/delete_load_balancer/success.json +0 -0
  58. data/spec/fixtures/delete_load_balancer/success.xml +0 -0
  59. data/spec/fixtures/delete_nic/success.json +0 -0
  60. data/spec/fixtures/delete_nic/success.xml +0 -0
  61. data/spec/fixtures/delete_server/success.json +9 -9
  62. data/spec/fixtures/delete_server/success.xml +0 -0
  63. data/spec/fixtures/delete_storage/failture.json +15 -15
  64. data/spec/fixtures/delete_storage/failture.xml +0 -0
  65. data/spec/fixtures/delete_storage/success.json +9 -9
  66. data/spec/fixtures/delete_storage/success.xml +0 -0
  67. data/spec/fixtures/deregister_servers_on_load_balancer/success.json +0 -0
  68. data/spec/fixtures/deregister_servers_on_load_balancer/success.xml +0 -0
  69. data/spec/fixtures/disconnect_storage_from_server/failture.json +15 -15
  70. data/spec/fixtures/disconnect_storage_from_server/failture.xml +0 -0
  71. data/spec/fixtures/disconnect_storage_from_server/success.json +9 -9
  72. data/spec/fixtures/disconnect_storage_from_server/success.xml +0 -0
  73. data/spec/fixtures/get_all_data_centers/empty.json +0 -0
  74. data/spec/fixtures/get_all_data_centers/empty.xml +0 -0
  75. data/spec/fixtures/get_all_data_centers/test_datacenter.json +9 -9
  76. data/spec/fixtures/get_all_data_centers/test_datacenter.xml +0 -0
  77. data/spec/fixtures/get_all_images/success.json +0 -0
  78. data/spec/fixtures/get_all_images/success.xml +0 -0
  79. data/spec/fixtures/get_all_public_ip_blocks/success.json +0 -0
  80. data/spec/fixtures/get_all_public_ip_blocks/success.xml +0 -0
  81. data/spec/fixtures/get_data_center/create.json +146 -146
  82. data/spec/fixtures/get_data_center/create.xml +0 -0
  83. data/spec/fixtures/get_data_center/firewall.json +0 -0
  84. data/spec/fixtures/get_data_center/firewall.xml +0 -0
  85. data/spec/fixtures/get_data_center/two_servers_with_storage.json +146 -146
  86. data/spec/fixtures/get_data_center/two_servers_with_storage.xml +0 -0
  87. data/spec/fixtures/get_data_center_state/in_process.json +0 -0
  88. data/spec/fixtures/get_data_center_state/in_process.xml +0 -0
  89. data/spec/fixtures/get_data_center_state/success.json +0 -0
  90. data/spec/fixtures/get_data_center_state/success.xml +0 -0
  91. data/spec/fixtures/get_firewall/success.json +0 -0
  92. data/spec/fixtures/get_firewall/success.xml +0 -0
  93. data/spec/fixtures/get_image/success.json +0 -0
  94. data/spec/fixtures/get_image/success.xml +0 -0
  95. data/spec/fixtures/get_load_balancer/success.json +0 -0
  96. data/spec/fixtures/get_load_balancer/success.xml +0 -0
  97. data/spec/fixtures/get_nic/success.json +0 -0
  98. data/spec/fixtures/get_nic/success.xml +0 -0
  99. data/spec/fixtures/get_nic/two_ips.json +0 -0
  100. data/spec/fixtures/get_nic/two_ips.xml +0 -0
  101. data/spec/fixtures/get_server/after_create.json +18 -17
  102. data/spec/fixtures/get_server/after_create.xml +1 -1
  103. data/spec/fixtures/get_server/connected_storage.json +27 -26
  104. data/spec/fixtures/get_server/connected_storage.xml +1 -1
  105. data/spec/fixtures/get_storage/success.json +13 -13
  106. data/spec/fixtures/get_storage/success.xml +0 -0
  107. data/spec/fixtures/reboot_server/success.json +0 -0
  108. data/spec/fixtures/reboot_server/success.xml +0 -0
  109. data/spec/fixtures/register_servers_on_load_balancer/success.json +0 -0
  110. data/spec/fixtures/register_servers_on_load_balancer/success.xml +0 -0
  111. data/spec/fixtures/release_public_ip_block/success.json +0 -0
  112. data/spec/fixtures/release_public_ip_block/success.xml +0 -0
  113. data/spec/fixtures/remove_firewall_rules/success.json +0 -0
  114. data/spec/fixtures/remove_firewall_rules/success.xml +0 -0
  115. data/spec/fixtures/remove_public_ip_from_nic/success.json +0 -0
  116. data/spec/fixtures/remove_public_ip_from_nic/success.xml +0 -0
  117. data/spec/fixtures/reserve_public_ip_block/success.json +0 -0
  118. data/spec/fixtures/reserve_public_ip_block/success.xml +0 -0
  119. data/spec/fixtures/set_image_os_type/success.json +0 -0
  120. data/spec/fixtures/set_image_os_type/success.xml +0 -0
  121. data/spec/fixtures/set_internet_access/success.json +0 -0
  122. data/spec/fixtures/set_internet_access/success.xml +0 -0
  123. data/spec/fixtures/update_data_center/success.json +9 -9
  124. data/spec/fixtures/update_data_center/success.xml +0 -0
  125. data/spec/fixtures/update_load_balancer/success.json +0 -0
  126. data/spec/fixtures/update_load_balancer/success.xml +0 -0
  127. data/spec/fixtures/update_nic/success.json +0 -0
  128. data/spec/fixtures/update_nic/success.xml +0 -0
  129. data/spec/fixtures/update_server/basic.json +9 -9
  130. data/spec/fixtures/update_server/basic.xml +0 -0
  131. data/spec/fixtures/update_storage/success.json +9 -9
  132. data/spec/fixtures/update_storage/success.xml +0 -0
  133. data/spec/profitbricks/cli_spec.rb +0 -0
  134. data/spec/profitbricks/data_center_spec.rb +0 -0
  135. data/spec/profitbricks/firewall_spec.rb +0 -0
  136. data/spec/profitbricks/image_spec.rb +0 -0
  137. data/spec/profitbricks/ip_block_spec.rb +0 -0
  138. data/spec/profitbricks/load_balancer_spec.rb +0 -0
  139. data/spec/profitbricks/model_spec.rb +0 -0
  140. data/spec/profitbricks/nic_spec.rb +0 -0
  141. data/spec/profitbricks/server_spec.rb +0 -0
  142. data/spec/profitbricks/storage_spec.rb +0 -0
  143. data/spec/spec_helper.rb +0 -0
  144. metadata +13 -24
File without changes
File without changes
File without changes
File without changes
@@ -1,147 +1,147 @@
1
- {
2
- "get_data_center_response": {
3
- "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
- "return": {
5
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
- "data_center_name": "Test",
7
- "data_center_version": "9",
8
- "provisioning_state": "AVAILABLE",
9
- "servers": [
10
- {
11
- "connected_storages": {
12
- "bus_type": "VIRTIO",
13
- "device_number": "1",
14
- "size": "5",
15
- "storage_id": "b6fdfa5b-fadf-5621-1be3-0882822abb88",
16
- "storage_name": "Debian"
17
- },
18
- "cores": "1",
19
- "creation_time": "2012-03-03T23:28:44+01:00",
20
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
21
- "data_center_version": "9",
22
- "internet_access": false,
23
- "ips": "10.7.232.12",
24
- "last_modification_time": "2012-03-03T23:28:44+01:00",
25
- "nics": {
26
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
27
- "data_center_version": "9",
28
- "firewall": {
29
- "active": false,
30
- "firewall_id": "374da20a-e7a4-151a-0be8-04c5b82409a0",
31
- "nic_id": "8c5758c1-29b7-8a23-ffc8-4c54dac405c2",
32
- "provisioning_state": "AVAILABLE"
33
- },
34
- "internet_access": false,
35
- "ips": "10.7.232.12",
36
- "lan_id": "1",
37
- "mac_address": "02:01:eb:58:b1:63",
38
- "nic_id": "8c5758c1-29b7-8a23-ffc8-4c54dac405c2",
39
- "nic_name": "eth0",
40
- "server_id": "7e132ddb-b2c8-a109-7f99-7b4a32955006"
41
- },
42
- "os_type": "OTHER",
43
- "provisioning_state": "AVAILABLE",
44
- "ram": "256",
45
- "server_id": "7e132ddb-b2c8-a109-7f99-7b4a32955006",
46
- "server_name": "Test Server 2",
47
- "virtual_machine_state": "RUNNING"
48
- },
49
- {
50
- "connected_storages": {
51
- "bus_type": "VIRTIO",
52
- "device_number": "1",
53
- "size": "1",
54
- "storage_id": "68f1badb-edbf-bb49-00cd-b5481ac91f7f",
55
- "storage_name": "Empty"
56
- },
57
- "cores": "1",
58
- "creation_time": "2012-03-02T15:40:24+01:00",
59
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
60
- "data_center_version": "9",
61
- "internet_access": true,
62
- "ips": [
63
- "10.7.232.11",
64
- "46.16.73.186"
65
- ],
66
- "last_modification_time": "2012-03-02T15:57:31+01:00",
67
- "nics": [
68
- {
69
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
70
- "data_center_version": "9",
71
- "firewall": {
72
- "active": false,
73
- "firewall_id": "dac45569-b53a-c270-20c8-aa69aa071d28",
74
- "nic_id": "30790131-39f1-dd1c-c457-3e8ed77e74f6",
75
- "provisioning_state": "AVAILABLE"
76
- },
77
- "internet_access": true,
78
- "ips": "46.16.73.186",
79
- "lan_id": "2",
80
- "mac_address": "02:01:17:75:f9:cb",
81
- "nic_id": "30790131-39f1-dd1c-c457-3e8ed77e74f6",
82
- "nic_name": "eth0",
83
- "server_id": "51d54771-7566-4d9d-a560-1f2a3b61a4d5"
84
- },
85
- {
86
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
87
- "data_center_version": "9",
88
- "firewall": {
89
- "active": false,
90
- "firewall_id": "3ccc6dd6-ddac-42e7-fb00-13f1853ee466",
91
- "nic_id": "7c2cec85-435e-ddee-9a1c-ff88659ff9be",
92
- "provisioning_state": "AVAILABLE"
93
- },
94
- "internet_access": false,
95
- "ips": "10.7.232.11",
96
- "lan_id": "1",
97
- "mac_address": "02:01:8c:9c:50:3f",
98
- "nic_id": "7c2cec85-435e-ddee-9a1c-ff88659ff9be",
99
- "nic_name": "eth1",
100
- "server_id": "51d54771-7566-4d9d-a560-1f2a3b61a4d5"
101
- }
102
- ],
103
- "os_type": "UNKNOWN",
104
- "provisioning_state": "AVAILABLE",
105
- "ram": "256",
106
- "rom_drives": {
107
- "image_id": "9de62e6e-ff1c-11e0-a1a7-0025901dfe2a",
108
- "image_name": "grml64_2011.05.iso"
109
- },
110
- "server_id": "51d54771-7566-4d9d-a560-1f2a3b61a4d5",
111
- "server_name": "Test Server",
112
- "virtual_machine_state": "RUNNING"
113
- }
114
- ],
115
- "storages": [
116
- {
117
- "creation_time": "2012-03-03T23:28:44+01:00",
118
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
119
- "data_center_version": "9",
120
- "last_modification_time": "2012-03-03T23:28:44+01:00",
121
- "os_type": "UNKNOWN",
122
- "provisioning_state": "AVAILABLE",
123
- "server_ids": "51d54771-7566-4d9d-a560-1f2a3b61a4d5",
124
- "size": "1",
125
- "storage_id": "68f1badb-edbf-bb49-00cd-b5481ac91f7f",
126
- "storage_name": "Empty"
127
- },
128
- {
129
- "creation_time": "2012-03-03T23:28:44+01:00",
130
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
131
- "data_center_version": "9",
132
- "last_modification_time": "2012-03-03T23:28:44+01:00",
133
- "mount_image": {
134
- "image_id": "d1d8747f-fa56-11e0-a1a7-0025901dfe2a",
135
- "image_name": "profitbricks-debian-squeeze-EN-6.0.1a-amd64.img"
136
- },
137
- "os_type": "UNKNOWN",
138
- "provisioning_state": "AVAILABLE",
139
- "server_ids": "7e132ddb-b2c8-a109-7f99-7b4a32955006",
140
- "size": "5",
141
- "storage_id": "b6fdfa5b-fadf-5621-1be3-0882822abb88",
142
- "storage_name": "Debian"
143
- }
144
- ]
145
- }
146
- }
1
+ {
2
+ "get_data_center_response": {
3
+ "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
+ "return": {
5
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
+ "data_center_name": "Test",
7
+ "data_center_version": "9",
8
+ "provisioning_state": "AVAILABLE",
9
+ "servers": [
10
+ {
11
+ "connected_storages": {
12
+ "bus_type": "VIRTIO",
13
+ "device_number": "1",
14
+ "size": "5",
15
+ "storage_id": "b6fdfa5b-fadf-5621-1be3-0882822abb88",
16
+ "storage_name": "Debian"
17
+ },
18
+ "cores": "1",
19
+ "creation_time": "2012-03-03T23:28:44+01:00",
20
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
21
+ "data_center_version": "9",
22
+ "internet_access": false,
23
+ "ips": "10.7.232.12",
24
+ "last_modification_time": "2012-03-03T23:28:44+01:00",
25
+ "nics": {
26
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
27
+ "data_center_version": "9",
28
+ "firewall": {
29
+ "active": false,
30
+ "firewall_id": "374da20a-e7a4-151a-0be8-04c5b82409a0",
31
+ "nic_id": "8c5758c1-29b7-8a23-ffc8-4c54dac405c2",
32
+ "provisioning_state": "AVAILABLE"
33
+ },
34
+ "internet_access": false,
35
+ "ips": "10.7.232.12",
36
+ "lan_id": "1",
37
+ "mac_address": "02:01:eb:58:b1:63",
38
+ "nic_id": "8c5758c1-29b7-8a23-ffc8-4c54dac405c2",
39
+ "nic_name": "eth0",
40
+ "server_id": "7e132ddb-b2c8-a109-7f99-7b4a32955006"
41
+ },
42
+ "os_type": "OTHER",
43
+ "provisioning_state": "AVAILABLE",
44
+ "ram": "256",
45
+ "server_id": "7e132ddb-b2c8-a109-7f99-7b4a32955006",
46
+ "server_name": "Test Server 2",
47
+ "virtual_machine_state": "RUNNING"
48
+ },
49
+ {
50
+ "connected_storages": {
51
+ "bus_type": "VIRTIO",
52
+ "device_number": "1",
53
+ "size": "1",
54
+ "storage_id": "68f1badb-edbf-bb49-00cd-b5481ac91f7f",
55
+ "storage_name": "Empty"
56
+ },
57
+ "cores": "1",
58
+ "creation_time": "2012-03-02T15:40:24+01:00",
59
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
60
+ "data_center_version": "9",
61
+ "internet_access": true,
62
+ "ips": [
63
+ "10.7.232.11",
64
+ "46.16.73.186"
65
+ ],
66
+ "last_modification_time": "2012-03-02T15:57:31+01:00",
67
+ "nics": [
68
+ {
69
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
70
+ "data_center_version": "9",
71
+ "firewall": {
72
+ "active": false,
73
+ "firewall_id": "dac45569-b53a-c270-20c8-aa69aa071d28",
74
+ "nic_id": "30790131-39f1-dd1c-c457-3e8ed77e74f6",
75
+ "provisioning_state": "AVAILABLE"
76
+ },
77
+ "internet_access": true,
78
+ "ips": "46.16.73.186",
79
+ "lan_id": "2",
80
+ "mac_address": "02:01:17:75:f9:cb",
81
+ "nic_id": "30790131-39f1-dd1c-c457-3e8ed77e74f6",
82
+ "nic_name": "eth0",
83
+ "server_id": "51d54771-7566-4d9d-a560-1f2a3b61a4d5"
84
+ },
85
+ {
86
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
87
+ "data_center_version": "9",
88
+ "firewall": {
89
+ "active": false,
90
+ "firewall_id": "3ccc6dd6-ddac-42e7-fb00-13f1853ee466",
91
+ "nic_id": "7c2cec85-435e-ddee-9a1c-ff88659ff9be",
92
+ "provisioning_state": "AVAILABLE"
93
+ },
94
+ "internet_access": false,
95
+ "ips": "10.7.232.11",
96
+ "lan_id": "1",
97
+ "mac_address": "02:01:8c:9c:50:3f",
98
+ "nic_id": "7c2cec85-435e-ddee-9a1c-ff88659ff9be",
99
+ "nic_name": "eth1",
100
+ "server_id": "51d54771-7566-4d9d-a560-1f2a3b61a4d5"
101
+ }
102
+ ],
103
+ "os_type": "UNKNOWN",
104
+ "provisioning_state": "AVAILABLE",
105
+ "ram": "256",
106
+ "rom_drives": {
107
+ "image_id": "9de62e6e-ff1c-11e0-a1a7-0025901dfe2a",
108
+ "image_name": "grml64_2011.05.iso"
109
+ },
110
+ "server_id": "51d54771-7566-4d9d-a560-1f2a3b61a4d5",
111
+ "server_name": "Test Server",
112
+ "virtual_machine_state": "RUNNING"
113
+ }
114
+ ],
115
+ "storages": [
116
+ {
117
+ "creation_time": "2012-03-03T23:28:44+01:00",
118
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
119
+ "data_center_version": "9",
120
+ "last_modification_time": "2012-03-03T23:28:44+01:00",
121
+ "os_type": "UNKNOWN",
122
+ "provisioning_state": "AVAILABLE",
123
+ "server_ids": "51d54771-7566-4d9d-a560-1f2a3b61a4d5",
124
+ "size": "1",
125
+ "storage_id": "68f1badb-edbf-bb49-00cd-b5481ac91f7f",
126
+ "storage_name": "Empty"
127
+ },
128
+ {
129
+ "creation_time": "2012-03-03T23:28:44+01:00",
130
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
131
+ "data_center_version": "9",
132
+ "last_modification_time": "2012-03-03T23:28:44+01:00",
133
+ "mount_image": {
134
+ "image_id": "d1d8747f-fa56-11e0-a1a7-0025901dfe2a",
135
+ "image_name": "profitbricks-debian-squeeze-EN-6.0.1a-amd64.img"
136
+ },
137
+ "os_type": "UNKNOWN",
138
+ "provisioning_state": "AVAILABLE",
139
+ "server_ids": "7e132ddb-b2c8-a109-7f99-7b4a32955006",
140
+ "size": "5",
141
+ "storage_id": "b6fdfa5b-fadf-5621-1be3-0882822abb88",
142
+ "storage_name": "Debian"
143
+ }
144
+ ]
145
+ }
146
+ }
147
147
  }
File without changes
File without changes
File without changes
@@ -1,147 +1,147 @@
1
- {
2
- "get_data_center_response": {
3
- "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
- "return": {
5
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
- "data_center_name": "Test",
7
- "data_center_version": "9",
8
- "provisioning_state": "AVAILABLE",
9
- "servers": [
10
- {
11
- "connected_storages": {
12
- "bus_type": "VIRTIO",
13
- "device_number": "1",
14
- "size": "5",
15
- "storage_id": "b6fdfa5b-fadf-5621-1be3-0882822abb88",
16
- "storage_name": "Debian"
17
- },
18
- "cores": "1",
19
- "creation_time": "2012-03-03T23:28:44+01:00",
20
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
21
- "data_center_version": "9",
22
- "internet_access": false,
23
- "ips": "10.7.232.12",
24
- "last_modification_time": "2012-03-03T23:28:44+01:00",
25
- "nics": {
26
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
27
- "data_center_version": "9",
28
- "firewall": {
29
- "active": false,
30
- "firewall_id": "374da20a-e7a4-151a-0be8-04c5b82409a0",
31
- "nic_id": "8c5758c1-29b7-8a23-ffc8-4c54dac405c2",
32
- "provisioning_state": "AVAILABLE"
33
- },
34
- "internet_access": false,
35
- "ips": "10.7.232.12",
36
- "lan_id": "1",
37
- "mac_address": "02:01:eb:58:b1:63",
38
- "nic_id": "8c5758c1-29b7-8a23-ffc8-4c54dac405c2",
39
- "nic_name": "eth0",
40
- "server_id": "7e132ddb-b2c8-a109-7f99-7b4a32955006"
41
- },
42
- "os_type": "OTHER",
43
- "provisioning_state": "AVAILABLE",
44
- "ram": "256",
45
- "server_id": "7e132ddb-b2c8-a109-7f99-7b4a32955006",
46
- "server_name": "Test Server 2",
47
- "virtual_machine_state": "RUNNING"
48
- },
49
- {
50
- "connected_storages": {
51
- "bus_type": "VIRTIO",
52
- "device_number": "1",
53
- "size": "1",
54
- "storage_id": "68f1badb-edbf-bb49-00cd-b5481ac91f7f",
55
- "storage_name": "Empty"
56
- },
57
- "cores": "1",
58
- "creation_time": "2012-03-02T15:40:24+01:00",
59
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
60
- "data_center_version": "9",
61
- "internet_access": true,
62
- "ips": [
63
- "10.7.232.11",
64
- "46.16.73.186"
65
- ],
66
- "last_modification_time": "2012-03-02T15:57:31+01:00",
67
- "nics": [
68
- {
69
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
70
- "data_center_version": "9",
71
- "firewall": {
72
- "active": false,
73
- "firewall_id": "dac45569-b53a-c270-20c8-aa69aa071d28",
74
- "nic_id": "30790131-39f1-dd1c-c457-3e8ed77e74f6",
75
- "provisioning_state": "AVAILABLE"
76
- },
77
- "internet_access": true,
78
- "ips": "46.16.73.186",
79
- "lan_id": "2",
80
- "mac_address": "02:01:17:75:f9:cb",
81
- "nic_id": "30790131-39f1-dd1c-c457-3e8ed77e74f6",
82
- "nic_name": "eth0",
83
- "server_id": "51d54771-7566-4d9d-a560-1f2a3b61a4d5"
84
- },
85
- {
86
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
87
- "data_center_version": "9",
88
- "firewall": {
89
- "active": false,
90
- "firewall_id": "3ccc6dd6-ddac-42e7-fb00-13f1853ee466",
91
- "nic_id": "7c2cec85-435e-ddee-9a1c-ff88659ff9be",
92
- "provisioning_state": "AVAILABLE"
93
- },
94
- "internet_access": false,
95
- "ips": "10.7.232.11",
96
- "lan_id": "1",
97
- "mac_address": "02:01:8c:9c:50:3f",
98
- "nic_id": "7c2cec85-435e-ddee-9a1c-ff88659ff9be",
99
- "nic_name": "eth1",
100
- "server_id": "51d54771-7566-4d9d-a560-1f2a3b61a4d5"
101
- }
102
- ],
103
- "os_type": "UNKNOWN",
104
- "provisioning_state": "AVAILABLE",
105
- "ram": "256",
106
- "rom_drives": {
107
- "image_id": "9de62e6e-ff1c-11e0-a1a7-0025901dfe2a",
108
- "image_name": "grml64_2011.05.iso"
109
- },
110
- "server_id": "51d54771-7566-4d9d-a560-1f2a3b61a4d5",
111
- "server_name": "Test Server",
112
- "virtual_machine_state": "RUNNING"
113
- }
114
- ],
115
- "storages": [
116
- {
117
- "creation_time": "2012-03-03T23:28:44+01:00",
118
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
119
- "data_center_version": "9",
120
- "last_modification_time": "2012-03-03T23:28:44+01:00",
121
- "os_type": "UNKNOWN",
122
- "provisioning_state": "AVAILABLE",
123
- "server_ids": "51d54771-7566-4d9d-a560-1f2a3b61a4d5",
124
- "size": "1",
125
- "storage_id": "68f1badb-edbf-bb49-00cd-b5481ac91f7f",
126
- "storage_name": "Empty"
127
- },
128
- {
129
- "creation_time": "2012-03-03T23:28:44+01:00",
130
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
131
- "data_center_version": "9",
132
- "last_modification_time": "2012-03-03T23:28:44+01:00",
133
- "mount_image": {
134
- "image_id": "d1d8747f-fa56-11e0-a1a7-0025901dfe2a",
135
- "image_name": "profitbricks-debian-squeeze-EN-6.0.1a-amd64.img"
136
- },
137
- "os_type": "UNKNOWN",
138
- "provisioning_state": "AVAILABLE",
139
- "server_ids": "7e132ddb-b2c8-a109-7f99-7b4a32955006",
140
- "size": "5",
141
- "storage_id": "b6fdfa5b-fadf-5621-1be3-0882822abb88",
142
- "storage_name": "Debian"
143
- }
144
- ]
145
- }
146
- }
1
+ {
2
+ "get_data_center_response": {
3
+ "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
+ "return": {
5
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
+ "data_center_name": "Test",
7
+ "data_center_version": "9",
8
+ "provisioning_state": "AVAILABLE",
9
+ "servers": [
10
+ {
11
+ "connected_storages": {
12
+ "bus_type": "VIRTIO",
13
+ "device_number": "1",
14
+ "size": "5",
15
+ "storage_id": "b6fdfa5b-fadf-5621-1be3-0882822abb88",
16
+ "storage_name": "Debian"
17
+ },
18
+ "cores": "1",
19
+ "creation_time": "2012-03-03T23:28:44+01:00",
20
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
21
+ "data_center_version": "9",
22
+ "internet_access": false,
23
+ "ips": "10.7.232.12",
24
+ "last_modification_time": "2012-03-03T23:28:44+01:00",
25
+ "nics": {
26
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
27
+ "data_center_version": "9",
28
+ "firewall": {
29
+ "active": false,
30
+ "firewall_id": "374da20a-e7a4-151a-0be8-04c5b82409a0",
31
+ "nic_id": "8c5758c1-29b7-8a23-ffc8-4c54dac405c2",
32
+ "provisioning_state": "AVAILABLE"
33
+ },
34
+ "internet_access": false,
35
+ "ips": "10.7.232.12",
36
+ "lan_id": "1",
37
+ "mac_address": "02:01:eb:58:b1:63",
38
+ "nic_id": "8c5758c1-29b7-8a23-ffc8-4c54dac405c2",
39
+ "nic_name": "eth0",
40
+ "server_id": "7e132ddb-b2c8-a109-7f99-7b4a32955006"
41
+ },
42
+ "os_type": "OTHER",
43
+ "provisioning_state": "AVAILABLE",
44
+ "ram": "256",
45
+ "server_id": "7e132ddb-b2c8-a109-7f99-7b4a32955006",
46
+ "server_name": "Test Server 2",
47
+ "virtual_machine_state": "RUNNING"
48
+ },
49
+ {
50
+ "connected_storages": {
51
+ "bus_type": "VIRTIO",
52
+ "device_number": "1",
53
+ "size": "1",
54
+ "storage_id": "68f1badb-edbf-bb49-00cd-b5481ac91f7f",
55
+ "storage_name": "Empty"
56
+ },
57
+ "cores": "1",
58
+ "creation_time": "2012-03-02T15:40:24+01:00",
59
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
60
+ "data_center_version": "9",
61
+ "internet_access": true,
62
+ "ips": [
63
+ "10.7.232.11",
64
+ "46.16.73.186"
65
+ ],
66
+ "last_modification_time": "2012-03-02T15:57:31+01:00",
67
+ "nics": [
68
+ {
69
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
70
+ "data_center_version": "9",
71
+ "firewall": {
72
+ "active": false,
73
+ "firewall_id": "dac45569-b53a-c270-20c8-aa69aa071d28",
74
+ "nic_id": "30790131-39f1-dd1c-c457-3e8ed77e74f6",
75
+ "provisioning_state": "AVAILABLE"
76
+ },
77
+ "internet_access": true,
78
+ "ips": "46.16.73.186",
79
+ "lan_id": "2",
80
+ "mac_address": "02:01:17:75:f9:cb",
81
+ "nic_id": "30790131-39f1-dd1c-c457-3e8ed77e74f6",
82
+ "nic_name": "eth0",
83
+ "server_id": "51d54771-7566-4d9d-a560-1f2a3b61a4d5"
84
+ },
85
+ {
86
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
87
+ "data_center_version": "9",
88
+ "firewall": {
89
+ "active": false,
90
+ "firewall_id": "3ccc6dd6-ddac-42e7-fb00-13f1853ee466",
91
+ "nic_id": "7c2cec85-435e-ddee-9a1c-ff88659ff9be",
92
+ "provisioning_state": "AVAILABLE"
93
+ },
94
+ "internet_access": false,
95
+ "ips": "10.7.232.11",
96
+ "lan_id": "1",
97
+ "mac_address": "02:01:8c:9c:50:3f",
98
+ "nic_id": "7c2cec85-435e-ddee-9a1c-ff88659ff9be",
99
+ "nic_name": "eth1",
100
+ "server_id": "51d54771-7566-4d9d-a560-1f2a3b61a4d5"
101
+ }
102
+ ],
103
+ "os_type": "UNKNOWN",
104
+ "provisioning_state": "AVAILABLE",
105
+ "ram": "256",
106
+ "rom_drives": {
107
+ "image_id": "9de62e6e-ff1c-11e0-a1a7-0025901dfe2a",
108
+ "image_name": "grml64_2011.05.iso"
109
+ },
110
+ "server_id": "51d54771-7566-4d9d-a560-1f2a3b61a4d5",
111
+ "server_name": "Test Server",
112
+ "virtual_machine_state": "RUNNING"
113
+ }
114
+ ],
115
+ "storages": [
116
+ {
117
+ "creation_time": "2012-03-03T23:28:44+01:00",
118
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
119
+ "data_center_version": "9",
120
+ "last_modification_time": "2012-03-03T23:28:44+01:00",
121
+ "os_type": "UNKNOWN",
122
+ "provisioning_state": "AVAILABLE",
123
+ "server_ids": "51d54771-7566-4d9d-a560-1f2a3b61a4d5",
124
+ "size": "1",
125
+ "storage_id": "68f1badb-edbf-bb49-00cd-b5481ac91f7f",
126
+ "storage_name": "Empty"
127
+ },
128
+ {
129
+ "creation_time": "2012-03-03T23:28:44+01:00",
130
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
131
+ "data_center_version": "9",
132
+ "last_modification_time": "2012-03-03T23:28:44+01:00",
133
+ "mount_image": {
134
+ "image_id": "d1d8747f-fa56-11e0-a1a7-0025901dfe2a",
135
+ "image_name": "profitbricks-debian-squeeze-EN-6.0.1a-amd64.img"
136
+ },
137
+ "os_type": "UNKNOWN",
138
+ "provisioning_state": "AVAILABLE",
139
+ "server_ids": "7e132ddb-b2c8-a109-7f99-7b4a32955006",
140
+ "size": "5",
141
+ "storage_id": "b6fdfa5b-fadf-5621-1be3-0882822abb88",
142
+ "storage_name": "Debian"
143
+ }
144
+ ]
145
+ }
146
+ }
147
147
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes