1and1 1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/1and1-1.0.gem +0 -0
- data/1and1.gemspec +20 -0
- data/Gemfile +4 -0
- data/LICENSE +201 -0
- data/README.md +499 -0
- data/docs/reference.md +2447 -0
- data/examples/dvd_examples.rb +15 -0
- data/examples/example_app.rb +100 -0
- data/examples/firewall_examples.rb +137 -0
- data/examples/image_examples.rb +48 -0
- data/examples/load_balancer_examples.rb +145 -0
- data/examples/log_examples.rb +15 -0
- data/examples/monitoring_center_examples.rb +15 -0
- data/examples/monitoring_policy_examples.rb +343 -0
- data/examples/private_network_examples.rb +86 -0
- data/examples/public_ip_examples.rb +42 -0
- data/examples/role_examples.rb +113 -0
- data/examples/server_appliance_examples.rb +15 -0
- data/examples/server_examples.rb +438 -0
- data/examples/shared_storage_examples.rb +108 -0
- data/examples/usage_examples.rb +6 -0
- data/examples/user_examples.rb +113 -0
- data/examples/vpn_examples.rb +56 -0
- data/lib/1and1/datacenter.rb +73 -0
- data/lib/1and1/dvd.rb +73 -0
- data/lib/1and1/firewall.rb +427 -0
- data/lib/1and1/image.rb +231 -0
- data/lib/1and1/load_balancer.rb +448 -0
- data/lib/1and1/log.rb +77 -0
- data/lib/1and1/monitoring_center.rb +84 -0
- data/lib/1and1/monitoring_policy.rb +598 -0
- data/lib/1and1/oneandone.rb +57 -0
- data/lib/1and1/ping.rb +41 -0
- data/lib/1and1/ping_auth.rb +41 -0
- data/lib/1and1/pricing.rb +41 -0
- data/lib/1and1/private_network.rb +333 -0
- data/lib/1and1/public_ip.rb +192 -0
- data/lib/1and1/role.rb +381 -0
- data/lib/1and1/server.rb +1208 -0
- data/lib/1and1/server_appliance.rb +73 -0
- data/lib/1and1/shared_storage.rb +379 -0
- data/lib/1and1/usage.rb +58 -0
- data/lib/1and1/user.rb +374 -0
- data/lib/1and1/vpn.rb +249 -0
- data/lib/oneandone.rb +27 -0
- data/sphinx/Makefile +192 -0
- data/sphinx/_build/doctrees/dvds.doctree +0 -0
- data/sphinx/_build/doctrees/environment.pickle +0 -0
- data/sphinx/_build/doctrees/firewalls.doctree +0 -0
- data/sphinx/_build/doctrees/images.doctree +0 -0
- data/sphinx/_build/doctrees/index.doctree +0 -0
- data/sphinx/_build/doctrees/load_balancers.doctree +0 -0
- data/sphinx/_build/doctrees/logs.doctree +0 -0
- data/sphinx/_build/doctrees/monitoring_center.doctree +0 -0
- data/sphinx/_build/doctrees/monitoring_policies.doctree +0 -0
- data/sphinx/_build/doctrees/private_networks.doctree +0 -0
- data/sphinx/_build/doctrees/public_ips.doctree +0 -0
- data/sphinx/_build/doctrees/server_appliances.doctree +0 -0
- data/sphinx/_build/doctrees/servers.doctree +0 -0
- data/sphinx/_build/doctrees/shared_storages.doctree +0 -0
- data/sphinx/_build/doctrees/usages.doctree +0 -0
- data/sphinx/_build/doctrees/users.doctree +0 -0
- data/sphinx/_build/html/.buildinfo +4 -0
- data/sphinx/_build/html/_sources/dvds.txt +42 -0
- data/sphinx/_build/html/_sources/firewalls.txt +189 -0
- data/sphinx/_build/html/_sources/images.txt +101 -0
- data/sphinx/_build/html/_sources/index.txt +499 -0
- data/sphinx/_build/html/_sources/load_balancers.txt +231 -0
- data/sphinx/_build/html/_sources/logs.txt +55 -0
- data/sphinx/_build/html/_sources/monitoring_center.txt +55 -0
- data/sphinx/_build/html/_sources/monitoring_policies.txt +288 -0
- data/sphinx/_build/html/_sources/private_networks.txt +146 -0
- data/sphinx/_build/html/_sources/public_ips.txt +78 -0
- data/sphinx/_build/html/_sources/server_appliances.txt +42 -0
- data/sphinx/_build/html/_sources/servers.txt +630 -0
- data/sphinx/_build/html/_sources/shared_storages.txt +160 -0
- data/sphinx/_build/html/_sources/usages.txt +45 -0
- data/sphinx/_build/html/_sources/users.txt +172 -0
- data/sphinx/_build/html/_static/ajax-loader.gif +0 -0
- data/sphinx/_build/html/_static/alabaster.css +585 -0
- data/sphinx/_build/html/_static/basic.css +599 -0
- data/sphinx/_build/html/_static/comment-bright.png +0 -0
- data/sphinx/_build/html/_static/comment-close.png +0 -0
- data/sphinx/_build/html/_static/comment.png +0 -0
- data/sphinx/_build/html/_static/doctools.js +263 -0
- data/sphinx/_build/html/_static/down-pressed.png +0 -0
- data/sphinx/_build/html/_static/down.png +0 -0
- data/sphinx/_build/html/_static/file.png +0 -0
- data/sphinx/_build/html/_static/jquery-1.11.1.js +10308 -0
- data/sphinx/_build/html/_static/jquery.js +4 -0
- data/sphinx/_build/html/_static/minus.png +0 -0
- data/sphinx/_build/html/_static/plus.png +0 -0
- data/sphinx/_build/html/_static/pygments.css +63 -0
- data/sphinx/_build/html/_static/searchtools.js +651 -0
- data/sphinx/_build/html/_static/underscore-1.3.1.js +999 -0
- data/sphinx/_build/html/_static/underscore.js +31 -0
- data/sphinx/_build/html/_static/up-pressed.png +0 -0
- data/sphinx/_build/html/_static/up.png +0 -0
- data/sphinx/_build/html/_static/websupport.js +808 -0
- data/sphinx/_build/html/dvds.html +151 -0
- data/sphinx/_build/html/firewalls.html +397 -0
- data/sphinx/_build/html/genindex.html +114 -0
- data/sphinx/_build/html/images.html +236 -0
- data/sphinx/_build/html/index.html +571 -0
- data/sphinx/_build/html/load_balancers.html +409 -0
- data/sphinx/_build/html/logs.html +160 -0
- data/sphinx/_build/html/monitoring_center.html +160 -0
- data/sphinx/_build/html/monitoring_policies.html +530 -0
- data/sphinx/_build/html/objects.inv +0 -0
- data/sphinx/_build/html/private_networks.html +316 -0
- data/sphinx/_build/html/public_ips.html +215 -0
- data/sphinx/_build/html/rb-modindex.html +106 -0
- data/sphinx/_build/html/search.html +99 -0
- data/sphinx/_build/html/searchindex.js +1 -0
- data/sphinx/_build/html/server_appliances.html +153 -0
- data/sphinx/_build/html/servers.html +994 -0
- data/sphinx/_build/html/shared_storages.html +349 -0
- data/sphinx/_build/html/usages.html +140 -0
- data/sphinx/_build/html/users.html +363 -0
- data/sphinx/conf.py +287 -0
- data/sphinx/dvds.rst +42 -0
- data/sphinx/firewalls.rst +189 -0
- data/sphinx/images.rst +101 -0
- data/sphinx/index.rst +499 -0
- data/sphinx/load_balancers.rst +231 -0
- data/sphinx/logs.rst +55 -0
- data/sphinx/make.bat +263 -0
- data/sphinx/monitoring_center.rst +55 -0
- data/sphinx/monitoring_policies.rst +288 -0
- data/sphinx/private_networks.rst +146 -0
- data/sphinx/public_ips.rst +78 -0
- data/sphinx/server_appliances.rst +42 -0
- data/sphinx/servers.rst +630 -0
- data/sphinx/shared_storages.rst +160 -0
- data/sphinx/usages.rst +45 -0
- data/sphinx/users.rst +172 -0
- data/test/mock-api/add-firewall.json +66 -0
- data/test/mock-api/add-hdd.json +49 -0
- data/test/mock-api/add-lb.json +71 -0
- data/test/mock-api/add-new-ip.json +18 -0
- data/test/mock-api/add-pn.json +66 -0
- data/test/mock-api/add-port-mp.json +81 -0
- data/test/mock-api/add-process-mp.json +20 -0
- data/test/mock-api/add-rule-fp.json +33 -0
- data/test/mock-api/add-rule-lb.json +40 -0
- data/test/mock-api/add-server-ip.json +66 -0
- data/test/mock-api/add-server-mp.json +66 -0
- data/test/mock-api/assign-ip-fp.json +32 -0
- data/test/mock-api/assign-server-lb.json +39 -0
- data/test/mock-api/attach-server-pn.json +14 -0
- data/test/mock-api/attach-server-storage.json +24 -0
- data/test/mock-api/change-api-key.json +15 -0
- data/test/mock-api/change-password.json +5 -0
- data/test/mock-api/change-server-status.json +70 -0
- data/test/mock-api/clone-server.json +29 -0
- data/test/mock-api/create-fp.json +26 -0
- data/test/mock-api/create-image.json +30 -0
- data/test/mock-api/create-lb.json +33 -0
- data/test/mock-api/create-mp.json +81 -0
- data/test/mock-api/create-pn.json +11 -0
- data/test/mock-api/create-public-ip.json +10 -0
- data/test/mock-api/create-server.json +34 -0
- data/test/mock-api/create-snapshot.json +74 -0
- data/test/mock-api/create-storage.json +13 -0
- data/test/mock-api/create-user.json +14 -0
- data/test/mock-api/delete-fp.json +26 -0
- data/test/mock-api/delete-image.json +26 -0
- data/test/mock-api/delete-ip.json +15 -0
- data/test/mock-api/delete-lb.json +33 -0
- data/test/mock-api/delete-mp.json +71 -0
- data/test/mock-api/delete-pn.json +11 -0
- data/test/mock-api/delete-public-ip.json +10 -0
- data/test/mock-api/delete-rule-fp.json +26 -0
- data/test/mock-api/delete-server.json +50 -0
- data/test/mock-api/delete-snapshot.json +74 -0
- data/test/mock-api/delete-storage.json +24 -0
- data/test/mock-api/delete-user.json +15 -0
- data/test/mock-api/detach-server-lb.json +33 -0
- data/test/mock-api/detach-server-mp.json +65 -0
- data/test/mock-api/detach-server-storage.json +19 -0
- data/test/mock-api/edit-image.json +26 -0
- data/test/mock-api/eject-dvd.json +66 -0
- data/test/mock-api/fixed-server-flavors.json +70 -0
- data/test/mock-api/get-appliance.json +16 -0
- data/test/mock-api/get-dvd.json +9 -0
- data/test/mock-api/get-firewall.json +26 -0
- data/test/mock-api/get-fixed-server.json +17 -0
- data/test/mock-api/get-fp-rule.json +7 -0
- data/test/mock-api/get-hardware.json +13 -0
- data/test/mock-api/get-hdd.json +5 -0
- data/test/mock-api/get-image.json +26 -0
- data/test/mock-api/get-lb-rule.json +7 -0
- data/test/mock-api/get-lb-server.json +5 -0
- data/test/mock-api/get-load-balancer.json +33 -0
- data/test/mock-api/get-log.json +23 -0
- data/test/mock-api/get-monitoring-center.json +161 -0
- data/test/mock-api/get-mp-port.json +7 -0
- data/test/mock-api/get-mp-process.json +6 -0
- data/test/mock-api/get-mp-server.json +4 -0
- data/test/mock-api/get-mp.json +65 -0
- data/test/mock-api/get-pn-server.json +4 -0
- data/test/mock-api/get-private-network.json +20 -0
- data/test/mock-api/get-public-ip.json +10 -0
- data/test/mock-api/get-server-dvd.json +4 -0
- data/test/mock-api/get-server-image.json +4 -0
- data/test/mock-api/get-server-ip-fp.json +4 -0
- data/test/mock-api/get-server-ip.json +8 -0
- data/test/mock-api/get-server-pn.json +16 -0
- data/test/mock-api/get-server-status.json +4 -0
- data/test/mock-api/get-server-storage.json +5 -0
- data/test/mock-api/get-server.json +44 -0
- data/test/mock-api/get-storage.json +19 -0
- data/test/mock-api/get-usage.json +161 -0
- data/test/mock-api/get-user-api-key.json +3 -0
- data/test/mock-api/get-user-api.json +7 -0
- data/test/mock-api/get-user.json +15 -0
- data/test/mock-api/list-appliances.json +66 -0
- data/test/mock-api/list-credentials.json +5 -0
- data/test/mock-api/list-dvds.json +128 -0
- data/test/mock-api/list-firewalls.json +54 -0
- data/test/mock-api/list-fp-rules.json +16 -0
- data/test/mock-api/list-hdds.json +7 -0
- data/test/mock-api/list-images.json +54 -0
- data/test/mock-api/list-lb-rules.json +16 -0
- data/test/mock-api/list-lb-servers.json +12 -0
- data/test/mock-api/list-load-balancers.json +68 -0
- data/test/mock-api/list-logs.json +49 -0
- data/test/mock-api/list-monitoring-center-usages.json +90 -0
- data/test/mock-api/list-mp-ports.json +16 -0
- data/test/mock-api/list-mp-processes.json +14 -0
- data/test/mock-api/list-mp-servers.json +10 -0
- data/test/mock-api/list-mps.json +152 -0
- data/test/mock-api/list-pn-servers.json +10 -0
- data/test/mock-api/list-private-networks.json +24 -0
- data/test/mock-api/list-public-ips.json +44 -0
- data/test/mock-api/list-server-fps.json +4 -0
- data/test/mock-api/list-server-ips-fp.json +7 -0
- data/test/mock-api/list-server-ips.json +10 -0
- data/test/mock-api/list-server-lbs.json +6 -0
- data/test/mock-api/list-server-pns.json +6 -0
- data/test/mock-api/list-servers.json +66 -0
- data/test/mock-api/list-snapshots.json +7 -0
- data/test/mock-api/list-storages.json +47 -0
- data/test/mock-api/list-usages.json +144 -0
- data/test/mock-api/list-user-ips.json +5 -0
- data/test/mock-api/list-users.json +31 -0
- data/test/mock-api/load-dvd.json +63 -0
- data/test/mock-api/modify-fp.json +26 -0
- data/test/mock-api/modify-lb.json +33 -0
- data/test/mock-api/modify-mp.json +81 -0
- data/test/mock-api/modify-pn.json +20 -0
- data/test/mock-api/modify-port-mp.json +81 -0
- data/test/mock-api/modify-process-mp.json +73 -0
- data/test/mock-api/modify-public-ip.json +10 -0
- data/test/mock-api/modify-server-hardware.json +44 -0
- data/test/mock-api/modify-server-hdd.json +54 -0
- data/test/mock-api/modify-server.json +44 -0
- data/test/mock-api/modify-storage.json +19 -0
- data/test/mock-api/modify-user-api.json +15 -0
- data/test/mock-api/modify-user.json +15 -0
- data/test/mock-api/reinstall-image.json +52 -0
- data/test/mock-api/remove-firewall-policy.json +26 -0
- data/test/mock-api/remove-hdd.json +54 -0
- data/test/mock-api/remove-ip-fp.json +26 -0
- data/test/mock-api/remove-lb.json +66 -0
- data/test/mock-api/remove-pn.json +71 -0
- data/test/mock-api/remove-port-mp.json +73 -0
- data/test/mock-api/remove-process-mp.json +66 -0
- data/test/mock-api/remove-rule-lb.json +33 -0
- data/test/mock-api/remove-server-ip.json +58 -0
- data/test/mock-api/remove-server-pn.json +16 -0
- data/test/mock-api/restore-snapshot.json +55 -0
- data/test/mock-api/storage-servers.json +12 -0
- data/test/test_mock_dvd.rb +55 -0
- data/test/test_mock_firewall.rb +309 -0
- data/test/test_mock_image.rb +123 -0
- data/test/test_mock_load_balancer.rb +312 -0
- data/test/test_mock_log.rb +55 -0
- data/test/test_mock_monitoring_center.rb +55 -0
- data/test/test_mock_monitoring_policy.rb +587 -0
- data/test/test_mock_private_network.rb +206 -0
- data/test/test_mock_public_ip.rb +118 -0
- data/test/test_mock_server.rb +929 -0
- data/test/test_mock_server_appliance.rb +55 -0
- data/test/test_mock_shared_storage.rb +256 -0
- data/test/test_mock_usage.rb +34 -0
- data/test/test_mock_user.rb +270 -0
- metadata +360 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "DA5CC179ED00079AE7DE595F0073D86E",
|
4
|
+
"protocol": "TCP",
|
5
|
+
"port_from": 80,
|
6
|
+
"port_to": 80,
|
7
|
+
"source": "0.0.0.0"
|
8
|
+
},
|
9
|
+
{
|
10
|
+
"id": "0766EC674A0CD9D4EC0FA0B07978A649",
|
11
|
+
"protocol": "TCP",
|
12
|
+
"port_from": 443,
|
13
|
+
"port_to": 443,
|
14
|
+
"source": "0.0.0.0"
|
15
|
+
}
|
16
|
+
]
|
@@ -0,0 +1,54 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "A0FAA4587A7CB6BBAA1EA877C844977E",
|
4
|
+
"name": "New image name",
|
5
|
+
"os_family": "Linux",
|
6
|
+
"os": "Centos",
|
7
|
+
"os_version": "Centos7",
|
8
|
+
"architecture": 64,
|
9
|
+
"os_image_type": "Personal",
|
10
|
+
"type": "MY_IMAGE",
|
11
|
+
"min_hdd_size": 40,
|
12
|
+
"licenses": [],
|
13
|
+
"cloudpanel_id": "ap99AA4_1",
|
14
|
+
"state": "DEPLOYING",
|
15
|
+
"description": "New image description",
|
16
|
+
"hdds": [
|
17
|
+
{
|
18
|
+
"id": "200FC47388A30470A376913E73B9C32C",
|
19
|
+
"size": 40,
|
20
|
+
"is_main": true
|
21
|
+
}
|
22
|
+
],
|
23
|
+
"server_id": "E83777750130E1111AA89623B9557CAF",
|
24
|
+
"frequency": "DAILY",
|
25
|
+
"num_images": 5,
|
26
|
+
"creation_date": "2015-04-29T07:46:40+00:00"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"id": "A0FAA4587A7CB6BBAA1EA877C844977F",
|
30
|
+
"name": "New image name 2",
|
31
|
+
"os_family": "Linux",
|
32
|
+
"os": "Centos",
|
33
|
+
"os_version": "Centos7",
|
34
|
+
"architecture": 64,
|
35
|
+
"os_image_type": "Personal",
|
36
|
+
"type": "MY_IMAGE",
|
37
|
+
"min_hdd_size": 40,
|
38
|
+
"licenses": [],
|
39
|
+
"cloudpanel_id": "ap99AA4_1",
|
40
|
+
"state": "DEPLOYING",
|
41
|
+
"description": "New image description",
|
42
|
+
"hdds": [
|
43
|
+
{
|
44
|
+
"id": "200FC47388A30470A376913E73B9C32D",
|
45
|
+
"size": 40,
|
46
|
+
"is_main": true
|
47
|
+
}
|
48
|
+
],
|
49
|
+
"server_id": "E83777750130E1111AA89623B9557CAF",
|
50
|
+
"frequency": "DAILY",
|
51
|
+
"num_images": 5,
|
52
|
+
"creation_date": "2015-04-29T07:46:40+00:00"
|
53
|
+
}
|
54
|
+
]
|
@@ -0,0 +1,16 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "BCFAF421227674B2B324F779C1163ECB",
|
4
|
+
"protocol": "TCP",
|
5
|
+
"port_balancer": 80,
|
6
|
+
"port_server": 80,
|
7
|
+
"source": "0.0.0.0"
|
8
|
+
},
|
9
|
+
{
|
10
|
+
"id": "7390C04142800E006FF1B0132FFD8F9A",
|
11
|
+
"protocol": "TCP",
|
12
|
+
"port_balancer": 9999,
|
13
|
+
"port_server": 8888,
|
14
|
+
"source": "0.0.0.0"
|
15
|
+
}
|
16
|
+
]
|
@@ -0,0 +1,68 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "B23F1B4F84E983B4FEDD5459E877058A",
|
4
|
+
"name": "My load balancer",
|
5
|
+
"state": "CONFIGURING",
|
6
|
+
"creation_date": "2015-03-03T11:12:00+00:00",
|
7
|
+
"description": "My load balancer description",
|
8
|
+
"ip": "10.5.138.52",
|
9
|
+
"health_check_test": "TCP",
|
10
|
+
"health_check_interval": 40,
|
11
|
+
"health_check_path": null,
|
12
|
+
"health_check_path_parser": null,
|
13
|
+
"persistence": true,
|
14
|
+
"persistence_time": 1200,
|
15
|
+
"method": "ROUND_ROBIN",
|
16
|
+
"rules": [
|
17
|
+
{
|
18
|
+
"id": "D7A0A7C445D844848EBB439C28B46183",
|
19
|
+
"protocol": "TCP",
|
20
|
+
"port_balancer": 22,
|
21
|
+
"port_server": 22,
|
22
|
+
"source": "0.0.0.0"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"id": "9AE836CDE379EEB361287F07B3300F84",
|
26
|
+
"protocol": "TCP",
|
27
|
+
"port_balancer": 85,
|
28
|
+
"port_server": 85,
|
29
|
+
"source": "0.0.0.0"
|
30
|
+
}
|
31
|
+
],
|
32
|
+
"server_ips": [],
|
33
|
+
"cloudpanel_id": "LB99AA4_1"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"id": "B23F1B4F84E983B4FEDD5459E877058B",
|
37
|
+
"name": "My Load Balancer II",
|
38
|
+
"state": "CONFIGURING",
|
39
|
+
"creation_date": "2015-03-03T11:12:00+00:00",
|
40
|
+
"description": "My load balancer II description",
|
41
|
+
"ip": "10.5.138.53",
|
42
|
+
"health_check_test": "TCP",
|
43
|
+
"health_check_interval": 40,
|
44
|
+
"health_check_path": null,
|
45
|
+
"health_check_path_parser": null,
|
46
|
+
"persistence": true,
|
47
|
+
"persistence_time": 1200,
|
48
|
+
"method": "ROUND_ROBIN",
|
49
|
+
"rules": [
|
50
|
+
{
|
51
|
+
"id": "D7A0A7C445D844848EBB439C28B46184",
|
52
|
+
"protocol": "TCP",
|
53
|
+
"port_balancer": 22,
|
54
|
+
"port_server": 22,
|
55
|
+
"source": "0.0.0.0"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"id": "9AE836CDE379EEB361287F07B3300F85",
|
59
|
+
"protocol": "TCP",
|
60
|
+
"port_balancer": 9999,
|
61
|
+
"port_server": 9999,
|
62
|
+
"source": "0.0.0.0"
|
63
|
+
}
|
64
|
+
],
|
65
|
+
"server_ips": [],
|
66
|
+
"cloudpanel_id": "LB99AA4_1"
|
67
|
+
}
|
68
|
+
]
|
@@ -0,0 +1,49 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "E485755233541090E369E957EA2499D7",
|
4
|
+
"start_date": "2015-04-06T23:46:38Z",
|
5
|
+
"end_date": "2015-04-06T23:48:52Z",
|
6
|
+
"duration": 72,
|
7
|
+
"status": {
|
8
|
+
"state": "COMPLETED",
|
9
|
+
"percent": 100
|
10
|
+
},
|
11
|
+
"action": "DELETE",
|
12
|
+
"type": "MONITORINGPOLICY",
|
13
|
+
"resource": {
|
14
|
+
"id": "E485755233541090E6546957EA2499D7",
|
15
|
+
"name": "My Monitoring Policy 1"
|
16
|
+
},
|
17
|
+
"details": {
|
18
|
+
|
19
|
+
},
|
20
|
+
"user": {
|
21
|
+
"id": "7C88E50FBC500A3D9D7F94E414255D6B",
|
22
|
+
"name": "034b011e.user"
|
23
|
+
},
|
24
|
+
"cloudpanel_id": "ap99AA4_1"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"id": "E485755233541090E369E957EA2499D8",
|
28
|
+
"start_date": "2015-04-06T23:51:00Z",
|
29
|
+
"end_date": "2015-04-06T23:51:29Z",
|
30
|
+
"duration": 29,
|
31
|
+
"status": {
|
32
|
+
"state": "COMPLETED",
|
33
|
+
"percent": 100
|
34
|
+
},
|
35
|
+
"action": "CREATE",
|
36
|
+
"type": "MONITORINGPOLICY",
|
37
|
+
"resource": {
|
38
|
+
"id": "E485755233541090E6546957EA2499D7",
|
39
|
+
"name": "My Monitoring Policy test"
|
40
|
+
},
|
41
|
+
"details": {
|
42
|
+
|
43
|
+
},
|
44
|
+
"user": {
|
45
|
+
"id": "7C88E50FBC500A3D9D7F94E414255D6B",
|
46
|
+
"name": "034b011e.user"
|
47
|
+
}
|
48
|
+
}
|
49
|
+
]
|
@@ -0,0 +1,90 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "ABA6F4C16FE9893B09B354A4CF6321DF",
|
4
|
+
"name": "My Server remame",
|
5
|
+
"status": {
|
6
|
+
"state": "POWERED_ON",
|
7
|
+
"cpu": {
|
8
|
+
"state": "CPU usage: OK - CPU_Total 0% used: CPU0 0% used"
|
9
|
+
},
|
10
|
+
"ram": {
|
11
|
+
"state": "RAM usage: OK 789MB (39%) used"
|
12
|
+
},
|
13
|
+
"disk": {
|
14
|
+
"state": "Disk usage: OK C: 12.04GB (30%) used"
|
15
|
+
},
|
16
|
+
"transfer": {
|
17
|
+
"state": "Network traffic: OK - 0 Kbps received: 0 Kbps transmitted:"
|
18
|
+
},
|
19
|
+
"internal_ping": {
|
20
|
+
"state": "OK - 10.4.141.242: rta 0.671ms, lost 0%"
|
21
|
+
}
|
22
|
+
},
|
23
|
+
"alerts": {
|
24
|
+
"resources": {
|
25
|
+
"critical": 1,
|
26
|
+
"warning": 0,
|
27
|
+
"ok": 3
|
28
|
+
},
|
29
|
+
"ports": {
|
30
|
+
"critical": 0,
|
31
|
+
"warning": 0,
|
32
|
+
"ok": 0
|
33
|
+
},
|
34
|
+
"process": {
|
35
|
+
"critical": 0,
|
36
|
+
"warning": 0,
|
37
|
+
"ok": 0
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"agent": {
|
41
|
+
"agent_installed": false,
|
42
|
+
"monitoring_needs_agent": false,
|
43
|
+
"missing_agent_alert": false
|
44
|
+
}
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"id": "BDAF0EC6A36E9E554B80B7E7365821F5",
|
48
|
+
"name": "My Server 1",
|
49
|
+
"status": {
|
50
|
+
"state": "POWERED_ON",
|
51
|
+
"cpu": {
|
52
|
+
"state": "CPU usage: OK - CPU_Total 0% used: CPU0 0% used"
|
53
|
+
},
|
54
|
+
"ram": {
|
55
|
+
"state": "RAM usage: OK 789MB (39%) used"
|
56
|
+
},
|
57
|
+
"disk": {
|
58
|
+
"state": "Disk usage: OK C: 12.04GB (30%) used"
|
59
|
+
},
|
60
|
+
"transfer": {
|
61
|
+
"state": "Network traffic: OK - 0 Kbps received: 0 Kbps transmitted:"
|
62
|
+
},
|
63
|
+
"internal_ping": {
|
64
|
+
"state": "OK - 10.4.141.242: rta 0.671ms, lost 0%"
|
65
|
+
}
|
66
|
+
},
|
67
|
+
"alerts_count": {
|
68
|
+
"resources": {
|
69
|
+
"critical": 0,
|
70
|
+
"warning": 0,
|
71
|
+
"ok": 4
|
72
|
+
},
|
73
|
+
"ports": {
|
74
|
+
"critical": 0,
|
75
|
+
"warning": 0,
|
76
|
+
"ok": 0
|
77
|
+
},
|
78
|
+
"process": {
|
79
|
+
"critical": 0,
|
80
|
+
"warning": 0,
|
81
|
+
"ok": 0
|
82
|
+
}
|
83
|
+
},
|
84
|
+
"agent": {
|
85
|
+
"agent_installed": false,
|
86
|
+
"monitoring_needs_agent": false,
|
87
|
+
"missing_agent_alert": false
|
88
|
+
}
|
89
|
+
}
|
90
|
+
]
|
@@ -0,0 +1,16 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "663D21E232530D79E4E584104C400EE4",
|
4
|
+
"protocol": "TCP",
|
5
|
+
"port": 22,
|
6
|
+
"alert_if": "RESPONDING",
|
7
|
+
"email_notifications": true
|
8
|
+
},
|
9
|
+
{
|
10
|
+
"id": "663D21E232530D79E4E584104C400AAA",
|
11
|
+
"protocol": "TCP",
|
12
|
+
"port": 80,
|
13
|
+
"alert_if": "NOT_RESPONDING",
|
14
|
+
"email_notifications": true
|
15
|
+
}
|
16
|
+
]
|
@@ -0,0 +1,14 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "663D21E232530D79E4E584104C400EE4",
|
4
|
+
"process": "iexplorer",
|
5
|
+
"alert_if": "NOT_RUNNING",
|
6
|
+
"email_notifications": true
|
7
|
+
},
|
8
|
+
{
|
9
|
+
"id": "663D21E232530D79E4E584104C400EE4",
|
10
|
+
"process": "winword",
|
11
|
+
"alert_if": "NOT_RUNNING",
|
12
|
+
"email_notifications": true
|
13
|
+
}
|
14
|
+
]
|
@@ -0,0 +1,152 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "0F9A1604FC80EB625FC6AEE7394893BE",
|
4
|
+
"name": "Default Policy",
|
5
|
+
"description": "Default Policy Description",
|
6
|
+
"default": 1,
|
7
|
+
"state": "ACTIVE",
|
8
|
+
"creation_date": "2014-10-29T07:52:46+00:00",
|
9
|
+
"email": "",
|
10
|
+
"agent": false,
|
11
|
+
"servers": [
|
12
|
+
{
|
13
|
+
"id": "E83777750130E1111AA89623B9557CAF",
|
14
|
+
"name": "My Server 1"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"id": "CB22C6E0428239348A6B70BAE0D67E66",
|
18
|
+
"name": "My Server 2"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"id": "6AAA2BD60813F419DEC8D69C6E4F6477",
|
22
|
+
"name": "My Server 3"
|
23
|
+
}
|
24
|
+
],
|
25
|
+
"thresholds": {
|
26
|
+
"cpu": {
|
27
|
+
"warning": {
|
28
|
+
"value": 90,
|
29
|
+
"alert": false
|
30
|
+
},
|
31
|
+
"critical": {
|
32
|
+
"value": 95,
|
33
|
+
"alert": false
|
34
|
+
}
|
35
|
+
},
|
36
|
+
"ram": {
|
37
|
+
"warning": {
|
38
|
+
"value": 90,
|
39
|
+
"alert": false
|
40
|
+
},
|
41
|
+
"critical": {
|
42
|
+
"value": 95,
|
43
|
+
"alert": false
|
44
|
+
}
|
45
|
+
},
|
46
|
+
"transfer": {
|
47
|
+
"warning": {
|
48
|
+
"value": 1000,
|
49
|
+
"alert": false
|
50
|
+
},
|
51
|
+
"critical": {
|
52
|
+
"value": 2000,
|
53
|
+
"alert": false
|
54
|
+
}
|
55
|
+
},
|
56
|
+
"internal_ping": {
|
57
|
+
"warning": {
|
58
|
+
"value": 50,
|
59
|
+
"alert": false
|
60
|
+
},
|
61
|
+
"critical": {
|
62
|
+
"value": 100,
|
63
|
+
"alert": false
|
64
|
+
}
|
65
|
+
}
|
66
|
+
},
|
67
|
+
"ports": [],
|
68
|
+
"processes": [],
|
69
|
+
"cloudpanel_id": "mo99AA4_1"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"id": "C81F17AF6F6F6717372B79A882B25E92",
|
73
|
+
"name": "My monitoring policy",
|
74
|
+
"description": null,
|
75
|
+
"default": 0,
|
76
|
+
"state": "ACTIVE",
|
77
|
+
"creation_date": "2015-02-26T07:23:42+00:00",
|
78
|
+
"email": "",
|
79
|
+
"agent": true,
|
80
|
+
"servers": [],
|
81
|
+
"thresholds": {
|
82
|
+
"cpu": {
|
83
|
+
"warning": {
|
84
|
+
"value": 90,
|
85
|
+
"alert": false
|
86
|
+
},
|
87
|
+
"critical": {
|
88
|
+
"value": 95,
|
89
|
+
"alert": false
|
90
|
+
}
|
91
|
+
},
|
92
|
+
"ram": {
|
93
|
+
"warning": {
|
94
|
+
"value": 90,
|
95
|
+
"alert": false
|
96
|
+
},
|
97
|
+
"critical": {
|
98
|
+
"value": 95,
|
99
|
+
"alert": false
|
100
|
+
}
|
101
|
+
},
|
102
|
+
"disk": {
|
103
|
+
"warning": {
|
104
|
+
"value": 80,
|
105
|
+
"alert": false
|
106
|
+
},
|
107
|
+
"critical": {
|
108
|
+
"value": 90,
|
109
|
+
"alert": false
|
110
|
+
}
|
111
|
+
},
|
112
|
+
"transfer": {
|
113
|
+
"warning": {
|
114
|
+
"value": 1000,
|
115
|
+
"alert": false
|
116
|
+
},
|
117
|
+
"critical": {
|
118
|
+
"value": 2000,
|
119
|
+
"alert": false
|
120
|
+
}
|
121
|
+
},
|
122
|
+
"internal_ping": {
|
123
|
+
"warning": {
|
124
|
+
"value": 50,
|
125
|
+
"alert": false
|
126
|
+
},
|
127
|
+
"critical": {
|
128
|
+
"value": 100,
|
129
|
+
"alert": false
|
130
|
+
}
|
131
|
+
}
|
132
|
+
},
|
133
|
+
"ports": [
|
134
|
+
{
|
135
|
+
"id": "5F67F2706335AF34FFCDF71E5AF08B2B",
|
136
|
+
"protocol": "TCP",
|
137
|
+
"port": "22",
|
138
|
+
"alert_when": false,
|
139
|
+
"alert": true
|
140
|
+
}
|
141
|
+
],
|
142
|
+
"processes": [
|
143
|
+
{
|
144
|
+
"id": "13CF2BEADA60230C6241C81C248F3C4B",
|
145
|
+
"process": "test",
|
146
|
+
"alert_when": false,
|
147
|
+
"alert": true
|
148
|
+
}
|
149
|
+
],
|
150
|
+
"cloudpanel_id": "mo99AA4_2"
|
151
|
+
}
|
152
|
+
]
|