fog-proxmox 0.5.5 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +7 -0
- data/.travis.yml +1 -0
- data/.vscode/launch.json +3 -21
- data/.vscode/settings.json +7 -7
- data/Gemfile.lock +39 -39
- data/README.md +9 -2
- data/examples/compute.rb +20 -23
- data/examples/identity.rb +16 -21
- data/fog-proxmox.gemspec +1 -2
- data/lib/fog/compute/proxmox.rb +2 -8
- data/lib/fog/compute/proxmox/models/disk.rb +13 -11
- data/lib/fog/compute/proxmox/models/disks.rb +3 -5
- data/lib/fog/compute/proxmox/models/interface.rb +6 -11
- data/lib/fog/compute/proxmox/models/interfaces.rb +3 -5
- data/lib/fog/compute/proxmox/models/node.rb +38 -43
- data/lib/fog/compute/proxmox/models/nodes.rb +5 -11
- data/lib/fog/compute/proxmox/models/server.rb +123 -80
- data/lib/fog/compute/proxmox/models/server_config.rb +56 -24
- data/lib/fog/compute/proxmox/models/servers.rb +34 -26
- data/lib/fog/compute/proxmox/models/snapshot.rb +28 -14
- data/lib/fog/compute/proxmox/models/snapshots.rb +9 -17
- data/lib/fog/compute/proxmox/models/storage.rb +15 -11
- data/lib/fog/compute/proxmox/models/storages.rb +13 -22
- data/lib/fog/compute/proxmox/models/task.rb +10 -14
- data/lib/fog/compute/proxmox/models/tasks.rb +9 -18
- data/lib/fog/compute/proxmox/models/volume.rb +12 -12
- data/lib/fog/compute/proxmox/models/volumes.rb +10 -19
- data/lib/fog/compute/proxmox/requests/action_server.rb +1 -4
- data/lib/fog/compute/proxmox/requests/clone_server.rb +1 -4
- data/lib/fog/compute/proxmox/requests/create_backup.rb +1 -4
- data/lib/fog/compute/proxmox/requests/create_server.rb +1 -4
- data/lib/fog/compute/proxmox/requests/create_snapshot.rb +1 -4
- data/lib/fog/compute/proxmox/requests/create_spice.rb +1 -4
- data/lib/fog/compute/proxmox/requests/create_term.rb +1 -4
- data/lib/fog/compute/proxmox/requests/create_vnc.rb +1 -4
- data/lib/fog/compute/proxmox/requests/delete_server.rb +1 -4
- data/lib/fog/compute/proxmox/requests/delete_snapshot.rb +1 -4
- data/lib/fog/compute/proxmox/requests/get_node_statistics.rb +1 -4
- data/lib/fog/compute/proxmox/requests/get_server_config.rb +1 -4
- data/lib/fog/compute/proxmox/requests/get_server_status.rb +1 -4
- data/lib/fog/compute/proxmox/requests/{get_snapshot.rb → get_snapshot_config.rb} +5 -8
- data/lib/fog/compute/proxmox/requests/get_task.rb +1 -4
- data/lib/fog/compute/proxmox/requests/get_vnc.rb +1 -4
- data/lib/fog/compute/proxmox/requests/list_nodes.rb +1 -2
- data/lib/fog/compute/proxmox/requests/list_storages.rb +3 -1
- data/lib/fog/compute/proxmox/requests/log_task.rb +1 -4
- data/lib/fog/compute/proxmox/requests/move_disk.rb +1 -4
- data/lib/fog/compute/proxmox/requests/move_volume.rb +1 -4
- data/lib/fog/compute/proxmox/requests/next_vmid.rb +5 -3
- data/lib/fog/compute/proxmox/requests/resize_container.rb +1 -4
- data/lib/fog/compute/proxmox/requests/status_task.rb +1 -4
- data/lib/fog/compute/proxmox/requests/update_server.rb +1 -4
- data/lib/fog/identity/proxmox.rb +2 -8
- data/lib/fog/identity/proxmox/models/domain.rb +25 -21
- data/lib/fog/identity/proxmox/models/{ldap.rb → domain_type.rb} +9 -18
- data/lib/fog/identity/proxmox/models/domains.rb +6 -76
- data/lib/fog/identity/proxmox/models/group.rb +6 -19
- data/lib/fog/identity/proxmox/models/groups.rb +6 -12
- data/lib/fog/identity/proxmox/models/permission.rb +27 -31
- data/lib/fog/identity/proxmox/models/permissions.rb +8 -25
- data/lib/fog/identity/proxmox/models/pool.rb +9 -22
- data/lib/fog/identity/proxmox/models/pools.rb +7 -13
- data/lib/fog/identity/proxmox/models/principal.rb +1 -6
- data/lib/fog/identity/proxmox/models/role.rb +7 -20
- data/lib/fog/identity/proxmox/models/roles.rb +6 -13
- data/lib/fog/identity/proxmox/models/user.rb +7 -21
- data/lib/fog/identity/proxmox/models/users.rb +6 -12
- data/lib/fog/identity/proxmox/requests/check_permissions.rb +1 -4
- data/lib/fog/identity/proxmox/requests/list_roles.rb +0 -1
- data/lib/fog/identity/proxmox/requests/read_version.rb +1 -5
- data/lib/fog/identity/proxmox/requests/update_group.rb +2 -3
- data/lib/fog/identity/proxmox/requests/{add_permission.rb → update_permissions.rb} +4 -4
- data/lib/fog/network/proxmox/models/network.rb +12 -18
- data/lib/fog/network/proxmox/models/networks.rb +11 -17
- data/lib/fog/network/proxmox/models/node.rb +14 -10
- data/lib/fog/network/proxmox/models/nodes.rb +5 -11
- data/lib/fog/network/proxmox/requests/create_network.rb +1 -4
- data/lib/fog/network/proxmox/requests/delete_network.rb +1 -4
- data/lib/fog/network/proxmox/requests/get_network.rb +1 -4
- data/lib/fog/network/proxmox/requests/get_node.rb +1 -4
- data/lib/fog/network/proxmox/requests/power_node.rb +1 -4
- data/lib/fog/network/proxmox/requests/update_network.rb +1 -4
- data/lib/fog/{compute/proxmox/requests/check_vmid.rb → proxmox/attributes.rb} +9 -17
- data/lib/fog/proxmox/core.rb +2 -1
- data/lib/fog/proxmox/helpers/cpu_helper.rb +6 -3
- data/lib/fog/proxmox/helpers/disk_helper.rb +1 -1
- data/lib/fog/proxmox/helpers/nic_helper.rb +37 -22
- data/lib/fog/proxmox/version.rb +1 -1
- data/lib/fog/storage/proxmox.rb +1 -1
- data/spec/compute_spec.rb +64 -45
- data/spec/fixtures/proxmox/compute/containers.yml +1684 -4137
- data/spec/fixtures/proxmox/compute/identity_ticket.yml +4 -4
- data/spec/fixtures/proxmox/compute/nodes.yml +21 -21
- data/spec/fixtures/proxmox/compute/servers.yml +3065 -7741
- data/spec/fixtures/proxmox/compute/snapshots.yml +279 -827
- data/spec/fixtures/proxmox/compute/storages.yml +60 -21
- data/spec/fixtures/proxmox/compute/tasks.yml +56 -98
- data/spec/fixtures/proxmox/identity/auth.yml +6 -6
- data/spec/fixtures/proxmox/identity/domains.yml +252 -84
- data/spec/fixtures/proxmox/identity/groups.yml +93 -54
- data/spec/fixtures/proxmox/identity/identity_ticket.yml +4 -4
- data/spec/fixtures/proxmox/identity/permissions.yml +317 -79
- data/spec/fixtures/proxmox/identity/pools.yml +266 -71
- data/spec/fixtures/proxmox/identity/read_version.yml +6 -6
- data/spec/fixtures/proxmox/identity/roles.yml +96 -57
- data/spec/fixtures/proxmox/identity/users.yml +224 -107
- data/spec/fixtures/proxmox/network/identity_ticket.yml +4 -4
- data/spec/fixtures/proxmox/network/networks.yml +54 -95
- data/spec/helpers/nic_helper_spec.rb +4 -4
- data/spec/identity_spec.rb +38 -46
- data/spec/network_spec.rb +1 -1
- metadata +9 -23
- data/lib/fog/compute/proxmox/models/container.rb +0 -86
- data/lib/fog/compute/proxmox/models/container_config.rb +0 -114
- data/lib/fog/compute/proxmox/models/containers.rb +0 -43
- data/lib/fog/compute/proxmox/requests/get_node.rb +0 -44
- data/lib/fog/compute/proxmox/requests/get_storage.rb +0 -44
- data/lib/fog/identity/proxmox/models/activedirectory.rb +0 -57
- data/lib/fog/identity/proxmox/models/oath.rb +0 -50
- data/lib/fog/identity/proxmox/models/pam.rb +0 -46
- data/lib/fog/identity/proxmox/models/pve.rb +0 -46
- data/lib/fog/identity/proxmox/models/yubico.rb +0 -51
- data/lib/fog/identity/proxmox/requests/remove_permission.rb +0 -42
- data/lib/fog/proxmox/models/collection.rb +0 -85
- data/lib/fog/proxmox/models/model.rb +0 -58
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://192.168.56.101:8006/api2/json/
|
5
|
+
uri: https://192.168.56.101:8006/api2/json/nodes
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
14
|
Cookie:
|
15
|
-
- PVEAuthCookie=PVE:root@pam:
|
15
|
+
- PVEAuthCookie=PVE:root@pam:5CAF63BE::y1HEE/RUIUldoJWxjFgJ3iRVkI/7WpxY3tpjgn09HYRuOKSv8X/3eWZi4JCqR2pzJ4+Y87iuxLLtX/LGFbJhfzSksCynTjQ5tc8vnoEaTGf3yQA5JCB1/MVB3WzwP9SZ0jf8NuXmegq2tLLbLvNbUOgx9dMyBiI3rlXaI9AIQH7CZ7ujfBtvFR9Gc7z6obx2JToRndtZQxOhJy5dymQHIfnGTHqj5rYExqa4j0GqLegN8KdbKqKSMZ3LIVw5ZUiFdLM2PbWI34Dur1a8cMklfgKP5zLFVPCyNSFpkUDK9V8P8Cm8dbpYYsIR9EW67o2wkcERZIem886Df7gL56bV6w==
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
@@ -23,25 +23,25 @@ http_interactions:
|
|
23
23
|
Connection:
|
24
24
|
- Keep-Alive
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
27
27
|
Pragma:
|
28
28
|
- no-cache
|
29
29
|
Server:
|
30
30
|
- pve-api-daemon/3.0
|
31
31
|
Content-Length:
|
32
|
-
- '
|
32
|
+
- '334'
|
33
33
|
Content-Type:
|
34
34
|
- application/json;charset=UTF-8
|
35
35
|
Expires:
|
36
|
-
-
|
36
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
37
37
|
body:
|
38
38
|
encoding: ASCII-8BIT
|
39
|
-
string: '{"data":[{"
|
39
|
+
string: '{"data":[{"disk":1605083136,"node":"proxmox","mem":828039168,"maxcpu":2,"uptime":5374,"maxdisk":3896197120,"status":"online","cpu":0.00735704666634875,"id":"node/proxmox","maxmem":4136439808,"ssl_fingerprint":"98:9A:61:77:A6:B7:4B:A2:A1:01:FA:60:F0:2B:2F:0E:05:F6:09:9D:41:F1:59:62:D7:24:BB:5A:35:58:13:75","type":"node","level":""}]}'
|
40
40
|
http_version:
|
41
|
-
recorded_at:
|
41
|
+
recorded_at: Thu, 11 Apr 2019 15:56:48 GMT
|
42
42
|
- request:
|
43
43
|
method: get
|
44
|
-
uri: https://192.168.56.101:8006/api2/json/nodes/
|
44
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox/storage
|
45
45
|
body:
|
46
46
|
encoding: US-ASCII
|
47
47
|
string: ''
|
@@ -51,7 +51,7 @@ http_interactions:
|
|
51
51
|
Accept:
|
52
52
|
- application/json
|
53
53
|
Cookie:
|
54
|
-
- PVEAuthCookie=PVE:root@pam:
|
54
|
+
- PVEAuthCookie=PVE:root@pam:5CAF63BE::y1HEE/RUIUldoJWxjFgJ3iRVkI/7WpxY3tpjgn09HYRuOKSv8X/3eWZi4JCqR2pzJ4+Y87iuxLLtX/LGFbJhfzSksCynTjQ5tc8vnoEaTGf3yQA5JCB1/MVB3WzwP9SZ0jf8NuXmegq2tLLbLvNbUOgx9dMyBiI3rlXaI9AIQH7CZ7ujfBtvFR9Gc7z6obx2JToRndtZQxOhJy5dymQHIfnGTHqj5rYExqa4j0GqLegN8KdbKqKSMZ3LIVw5ZUiFdLM2PbWI34Dur1a8cMklfgKP5zLFVPCyNSFpkUDK9V8P8Cm8dbpYYsIR9EW67o2wkcERZIem886Df7gL56bV6w==
|
55
55
|
response:
|
56
56
|
status:
|
57
57
|
code: 200
|
@@ -62,25 +62,25 @@ http_interactions:
|
|
62
62
|
Connection:
|
63
63
|
- Keep-Alive, Keep-Alive
|
64
64
|
Date:
|
65
|
-
-
|
65
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
66
66
|
Pragma:
|
67
67
|
- no-cache
|
68
68
|
Server:
|
69
69
|
- pve-api-daemon/3.0
|
70
70
|
Content-Length:
|
71
|
-
- '
|
71
|
+
- '364'
|
72
72
|
Content-Type:
|
73
73
|
- application/json;charset=UTF-8
|
74
74
|
Expires:
|
75
|
-
-
|
75
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
76
76
|
body:
|
77
77
|
encoding: ASCII-8BIT
|
78
|
-
string: '{"data":[{"
|
78
|
+
string: '{"data":[{"storage":"local-lvm","used_fraction":0,"shared":0,"total":6438256640,"content":"images,rootdir","active":1,"enabled":1,"type":"lvmthin","used":0,"avail":6438256640},{"active":1,"content":"iso,vztmpl,backup","enabled":1,"type":"dir","used":1605087232,"avail":2073006080,"storage":"local","total":3896197120,"shared":0,"used_fraction":0.411962532326906}]}'
|
79
79
|
http_version:
|
80
|
-
recorded_at:
|
80
|
+
recorded_at: Thu, 11 Apr 2019 15:56:48 GMT
|
81
81
|
- request:
|
82
82
|
method: get
|
83
|
-
uri: https://192.168.56.101:8006/api2/json/nodes/
|
83
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox/storage
|
84
84
|
body:
|
85
85
|
encoding: US-ASCII
|
86
86
|
string: ''
|
@@ -90,7 +90,7 @@ http_interactions:
|
|
90
90
|
Accept:
|
91
91
|
- application/json
|
92
92
|
Cookie:
|
93
|
-
- PVEAuthCookie=PVE:root@pam:
|
93
|
+
- PVEAuthCookie=PVE:root@pam:5CAF63BE::y1HEE/RUIUldoJWxjFgJ3iRVkI/7WpxY3tpjgn09HYRuOKSv8X/3eWZi4JCqR2pzJ4+Y87iuxLLtX/LGFbJhfzSksCynTjQ5tc8vnoEaTGf3yQA5JCB1/MVB3WzwP9SZ0jf8NuXmegq2tLLbLvNbUOgx9dMyBiI3rlXaI9AIQH7CZ7ujfBtvFR9Gc7z6obx2JToRndtZQxOhJy5dymQHIfnGTHqj5rYExqa4j0GqLegN8KdbKqKSMZ3LIVw5ZUiFdLM2PbWI34Dur1a8cMklfgKP5zLFVPCyNSFpkUDK9V8P8Cm8dbpYYsIR9EW67o2wkcERZIem886Df7gL56bV6w==
|
94
94
|
response:
|
95
95
|
status:
|
96
96
|
code: 200
|
@@ -101,20 +101,59 @@ http_interactions:
|
|
101
101
|
Connection:
|
102
102
|
- Keep-Alive, Keep-Alive
|
103
103
|
Date:
|
104
|
-
-
|
104
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
105
105
|
Pragma:
|
106
106
|
- no-cache
|
107
107
|
Server:
|
108
108
|
- pve-api-daemon/3.0
|
109
109
|
Content-Length:
|
110
|
-
- '
|
110
|
+
- '364'
|
111
111
|
Content-Type:
|
112
112
|
- application/json;charset=UTF-8
|
113
113
|
Expires:
|
114
|
-
-
|
114
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
115
115
|
body:
|
116
116
|
encoding: ASCII-8BIT
|
117
|
-
string: '{"data":[{"total":
|
117
|
+
string: '{"data":[{"storage":"local-lvm","shared":0,"used_fraction":0,"total":6438256640,"content":"images,rootdir","active":1,"used":0,"avail":6438256640,"type":"lvmthin","enabled":1},{"active":1,"content":"backup,iso,vztmpl","used":1605087232,"type":"dir","avail":2073006080,"enabled":1,"storage":"local","total":3896197120,"used_fraction":0.411962532326906,"shared":0}]}'
|
118
118
|
http_version:
|
119
|
-
recorded_at:
|
119
|
+
recorded_at: Thu, 11 Apr 2019 15:56:48 GMT
|
120
|
+
- request:
|
121
|
+
method: get
|
122
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox/storage
|
123
|
+
body:
|
124
|
+
encoding: US-ASCII
|
125
|
+
string: ''
|
126
|
+
headers:
|
127
|
+
User-Agent:
|
128
|
+
- fog-core/1.45.0
|
129
|
+
Accept:
|
130
|
+
- application/json
|
131
|
+
Cookie:
|
132
|
+
- PVEAuthCookie=PVE:root@pam:5CAF63BE::y1HEE/RUIUldoJWxjFgJ3iRVkI/7WpxY3tpjgn09HYRuOKSv8X/3eWZi4JCqR2pzJ4+Y87iuxLLtX/LGFbJhfzSksCynTjQ5tc8vnoEaTGf3yQA5JCB1/MVB3WzwP9SZ0jf8NuXmegq2tLLbLvNbUOgx9dMyBiI3rlXaI9AIQH7CZ7ujfBtvFR9Gc7z6obx2JToRndtZQxOhJy5dymQHIfnGTHqj5rYExqa4j0GqLegN8KdbKqKSMZ3LIVw5ZUiFdLM2PbWI34Dur1a8cMklfgKP5zLFVPCyNSFpkUDK9V8P8Cm8dbpYYsIR9EW67o2wkcERZIem886Df7gL56bV6w==
|
133
|
+
response:
|
134
|
+
status:
|
135
|
+
code: 200
|
136
|
+
message: OK
|
137
|
+
headers:
|
138
|
+
Cache-Control:
|
139
|
+
- max-age=0
|
140
|
+
Connection:
|
141
|
+
- Keep-Alive, Keep-Alive
|
142
|
+
Date:
|
143
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
144
|
+
Pragma:
|
145
|
+
- no-cache
|
146
|
+
Server:
|
147
|
+
- pve-api-daemon/3.0
|
148
|
+
Content-Length:
|
149
|
+
- '364'
|
150
|
+
Content-Type:
|
151
|
+
- application/json;charset=UTF-8
|
152
|
+
Expires:
|
153
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
154
|
+
body:
|
155
|
+
encoding: ASCII-8BIT
|
156
|
+
string: '{"data":[{"total":3896197120,"shared":0,"used_fraction":0.411962532326906,"storage":"local","avail":2073006080,"used":1605087232,"type":"dir","enabled":1,"active":1,"content":"vztmpl,iso,backup"},{"total":6438256640,"shared":0,"used_fraction":0,"storage":"local-lvm","enabled":1,"used":0,"avail":6438256640,"type":"lvmthin","active":1,"content":"images,rootdir"}]}'
|
157
|
+
http_version:
|
158
|
+
recorded_at: Thu, 11 Apr 2019 15:56:48 GMT
|
120
159
|
recorded_with: VCR 3.0.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://192.168.56.101:8006/api2/json/nodes
|
5
|
+
uri: https://192.168.56.101:8006/api2/json/nodes
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
14
|
Cookie:
|
15
|
-
- PVEAuthCookie=PVE:root@pam:
|
15
|
+
- PVEAuthCookie=PVE:root@pam:5CAF63BF::VfLu5N+LleQzwqNOTacK7qToVwnmqxteAa7qbVurTZloHOvy3WklGYJXITcZ1Hd5olm3z89zfowY4gLmTM93HqZh3DTjdU8I/JE3EIMaRbNuR+UajyyyOltN+jlIiCBYWPKUmC/F9m1Fsbre7wq7/JEf7v5mfY962+ZsEyRp/QV2w9lMAHN9XlXp86SXF3Huo3pWgcyJlEzgk64WNCE0SlqbjMNE3i+LulU8T1oZN6MFxJRyQHyZ5SEo8fnt3f0Xmmnz3L11yi3wesbvPtoYxPm7LcU9+zQRXpg721BZyNbYo8a0XVnhW74gEBP+/shv1zQtG0//0G5uJ+6jjFfUvg==
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
@@ -21,28 +21,27 @@ http_interactions:
|
|
21
21
|
Cache-Control:
|
22
22
|
- max-age=0
|
23
23
|
Connection:
|
24
|
-
- Keep-Alive
|
24
|
+
- Keep-Alive
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
27
27
|
Pragma:
|
28
28
|
- no-cache
|
29
29
|
Server:
|
30
30
|
- pve-api-daemon/3.0
|
31
31
|
Content-Length:
|
32
|
-
- '
|
32
|
+
- '334'
|
33
33
|
Content-Type:
|
34
34
|
- application/json;charset=UTF-8
|
35
35
|
Expires:
|
36
|
-
-
|
36
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
37
37
|
body:
|
38
38
|
encoding: ASCII-8BIT
|
39
|
-
string: '{"data":{"
|
40
|
-
timed out","type":"vncproxy","pstart":50868,"status":"stopped","node":"pve"}}'
|
39
|
+
string: '{"data":[{"type":"node","ssl_fingerprint":"98:9A:61:77:A6:B7:4B:A2:A1:01:FA:60:F0:2B:2F:0E:05:F6:09:9D:41:F1:59:62:D7:24:BB:5A:35:58:13:75","maxmem":4136439808,"id":"node/proxmox","level":"","maxdisk":3896197120,"status":"online","cpu":0.00735704666634875,"maxcpu":2,"mem":828039168,"uptime":5374,"disk":1605083136,"node":"proxmox"}]}'
|
41
40
|
http_version:
|
42
|
-
recorded_at:
|
41
|
+
recorded_at: Thu, 11 Apr 2019 15:56:48 GMT
|
43
42
|
- request:
|
44
43
|
method: get
|
45
|
-
uri: https://192.168.56.101:8006/api2/json/nodes/
|
44
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox/tasks?limit=1
|
46
45
|
body:
|
47
46
|
encoding: US-ASCII
|
48
47
|
string: ''
|
@@ -52,7 +51,7 @@ http_interactions:
|
|
52
51
|
Accept:
|
53
52
|
- application/json
|
54
53
|
Cookie:
|
55
|
-
- PVEAuthCookie=PVE:root@pam:
|
54
|
+
- PVEAuthCookie=PVE:root@pam:5CAF63BF::VfLu5N+LleQzwqNOTacK7qToVwnmqxteAa7qbVurTZloHOvy3WklGYJXITcZ1Hd5olm3z89zfowY4gLmTM93HqZh3DTjdU8I/JE3EIMaRbNuR+UajyyyOltN+jlIiCBYWPKUmC/F9m1Fsbre7wq7/JEf7v5mfY962+ZsEyRp/QV2w9lMAHN9XlXp86SXF3Huo3pWgcyJlEzgk64WNCE0SlqbjMNE3i+LulU8T1oZN6MFxJRyQHyZ5SEo8fnt3f0Xmmnz3L11yi3wesbvPtoYxPm7LcU9+zQRXpg721BZyNbYo8a0XVnhW74gEBP+/shv1zQtG0//0G5uJ+6jjFfUvg==
|
56
55
|
response:
|
57
56
|
status:
|
58
57
|
code: 200
|
@@ -61,27 +60,27 @@ http_interactions:
|
|
61
60
|
Cache-Control:
|
62
61
|
- max-age=0
|
63
62
|
Connection:
|
64
|
-
- Keep-Alive
|
63
|
+
- Keep-Alive
|
65
64
|
Date:
|
66
|
-
-
|
65
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
67
66
|
Pragma:
|
68
67
|
- no-cache
|
69
68
|
Server:
|
70
69
|
- pve-api-daemon/3.0
|
71
70
|
Content-Length:
|
72
|
-
- '
|
71
|
+
- '247'
|
73
72
|
Content-Type:
|
74
73
|
- application/json;charset=UTF-8
|
75
74
|
Expires:
|
76
|
-
-
|
75
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
77
76
|
body:
|
78
77
|
encoding: ASCII-8BIT
|
79
|
-
string: '{"data":[{"
|
78
|
+
string: '{"data":[{"type":"qmdestroy","id":"100","endtime":1554993887,"starttime":1554993887,"pid":9323,"status":"OK","pstart":106012,"upid":"UPID:proxmox:0000246B:00019E1C:5CAF52DF:qmdestroy:100:root@pam:","node":"proxmox","user":"root@pam"}],"total":193}'
|
80
79
|
http_version:
|
81
|
-
recorded_at:
|
80
|
+
recorded_at: Thu, 11 Apr 2019 15:56:48 GMT
|
82
81
|
- request:
|
83
|
-
method:
|
84
|
-
uri:
|
82
|
+
method: get
|
83
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox/tasks/UPID:proxmox:0000246B:00019E1C:5CAF52DF:qmdestroy:100:root@pam:/status
|
85
84
|
body:
|
86
85
|
encoding: US-ASCII
|
87
86
|
string: ''
|
@@ -90,10 +89,8 @@ http_interactions:
|
|
90
89
|
- fog-core/1.45.0
|
91
90
|
Accept:
|
92
91
|
- application/json
|
93
|
-
Csrfpreventiontoken:
|
94
|
-
- 5BE97FE7:Gzleb0tid24C4d8bCgSowcDrrAc
|
95
92
|
Cookie:
|
96
|
-
- PVEAuthCookie=PVE:root@pam:
|
93
|
+
- PVEAuthCookie=PVE:root@pam:5CAF63BF::VfLu5N+LleQzwqNOTacK7qToVwnmqxteAa7qbVurTZloHOvy3WklGYJXITcZ1Hd5olm3z89zfowY4gLmTM93HqZh3DTjdU8I/JE3EIMaRbNuR+UajyyyOltN+jlIiCBYWPKUmC/F9m1Fsbre7wq7/JEf7v5mfY962+ZsEyRp/QV2w9lMAHN9XlXp86SXF3Huo3pWgcyJlEzgk64WNCE0SlqbjMNE3i+LulU8T1oZN6MFxJRyQHyZ5SEo8fnt3f0Xmmnz3L11yi3wesbvPtoYxPm7LcU9+zQRXpg721BZyNbYo8a0XVnhW74gEBP+/shv1zQtG0//0G5uJ+6jjFfUvg==
|
97
94
|
response:
|
98
95
|
status:
|
99
96
|
code: 200
|
@@ -104,25 +101,25 @@ http_interactions:
|
|
104
101
|
Connection:
|
105
102
|
- Keep-Alive, Keep-Alive
|
106
103
|
Date:
|
107
|
-
-
|
104
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
108
105
|
Pragma:
|
109
106
|
- no-cache
|
110
107
|
Server:
|
111
108
|
- pve-api-daemon/3.0
|
112
109
|
Content-Length:
|
113
|
-
- '
|
110
|
+
- '235'
|
114
111
|
Content-Type:
|
115
112
|
- application/json;charset=UTF-8
|
116
113
|
Expires:
|
117
|
-
-
|
114
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
118
115
|
body:
|
119
116
|
encoding: ASCII-8BIT
|
120
|
-
string: '{"data":
|
117
|
+
string: '{"data":{"status":"stopped","type":"qmdestroy","exitstatus":"OK","upid":"UPID:proxmox:0000246B:00019E1C:5CAF52DF:qmdestroy:100:root@pam:","pstart":106012,"pid":9323,"starttime":1554993887,"node":"proxmox","user":"root@pam","id":"100"}}'
|
121
118
|
http_version:
|
122
|
-
recorded_at:
|
119
|
+
recorded_at: Thu, 11 Apr 2019 15:56:48 GMT
|
123
120
|
- request:
|
124
121
|
method: get
|
125
|
-
uri: https://192.168.56.101:8006/api2/json/
|
122
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox/tasks/UPID:proxmox:0000246B:00019E1C:5CAF52DF:qmdestroy:100:root@pam:/log
|
126
123
|
body:
|
127
124
|
encoding: US-ASCII
|
128
125
|
string: ''
|
@@ -132,7 +129,7 @@ http_interactions:
|
|
132
129
|
Accept:
|
133
130
|
- application/json
|
134
131
|
Cookie:
|
135
|
-
- PVEAuthCookie=PVE:root@pam:
|
132
|
+
- PVEAuthCookie=PVE:root@pam:5CAF63BF::VfLu5N+LleQzwqNOTacK7qToVwnmqxteAa7qbVurTZloHOvy3WklGYJXITcZ1Hd5olm3z89zfowY4gLmTM93HqZh3DTjdU8I/JE3EIMaRbNuR+UajyyyOltN+jlIiCBYWPKUmC/F9m1Fsbre7wq7/JEf7v5mfY962+ZsEyRp/QV2w9lMAHN9XlXp86SXF3Huo3pWgcyJlEzgk64WNCE0SlqbjMNE3i+LulU8T1oZN6MFxJRyQHyZ5SEo8fnt3f0Xmmnz3L11yi3wesbvPtoYxPm7LcU9+zQRXpg721BZyNbYo8a0XVnhW74gEBP+/shv1zQtG0//0G5uJ+6jjFfUvg==
|
136
133
|
response:
|
137
134
|
status:
|
138
135
|
code: 200
|
@@ -141,27 +138,27 @@ http_interactions:
|
|
141
138
|
Cache-Control:
|
142
139
|
- max-age=0
|
143
140
|
Connection:
|
144
|
-
- Keep-Alive
|
141
|
+
- Keep-Alive, Keep-Alive
|
145
142
|
Date:
|
146
|
-
-
|
143
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
147
144
|
Pragma:
|
148
145
|
- no-cache
|
149
146
|
Server:
|
150
147
|
- pve-api-daemon/3.0
|
151
148
|
Content-Length:
|
152
|
-
- '
|
149
|
+
- '42'
|
153
150
|
Content-Type:
|
154
151
|
- application/json;charset=UTF-8
|
155
152
|
Expires:
|
156
|
-
-
|
153
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
157
154
|
body:
|
158
155
|
encoding: ASCII-8BIT
|
159
|
-
string: '{"data":[{"
|
156
|
+
string: '{"data":[{"n":1,"t":"TASK OK"}],"total":1}'
|
160
157
|
http_version:
|
161
|
-
recorded_at:
|
158
|
+
recorded_at: Thu, 11 Apr 2019 15:56:48 GMT
|
162
159
|
- request:
|
163
|
-
method:
|
164
|
-
uri: https://192.168.56.101:8006/api2/json/nodes/
|
160
|
+
method: delete
|
161
|
+
uri: 'https://192.168.56.101:8006/api2/json/nodes/proxmox/tasks/UPID:proxmox:0000246B:00019E1C:5CAF52DF:qmdestroy:100:root@pam:'
|
165
162
|
body:
|
166
163
|
encoding: US-ASCII
|
167
164
|
string: ''
|
@@ -170,8 +167,10 @@ http_interactions:
|
|
170
167
|
- fog-core/1.45.0
|
171
168
|
Accept:
|
172
169
|
- application/json
|
170
|
+
Csrfpreventiontoken:
|
171
|
+
- 5CAF63BF:WnINyxZ1pPnguxyS22AR0a3tCmI
|
173
172
|
Cookie:
|
174
|
-
- PVEAuthCookie=PVE:root@pam:
|
173
|
+
- PVEAuthCookie=PVE:root@pam:5CAF63BF::VfLu5N+LleQzwqNOTacK7qToVwnmqxteAa7qbVurTZloHOvy3WklGYJXITcZ1Hd5olm3z89zfowY4gLmTM93HqZh3DTjdU8I/JE3EIMaRbNuR+UajyyyOltN+jlIiCBYWPKUmC/F9m1Fsbre7wq7/JEf7v5mfY962+ZsEyRp/QV2w9lMAHN9XlXp86SXF3Huo3pWgcyJlEzgk64WNCE0SlqbjMNE3i+LulU8T1oZN6MFxJRyQHyZ5SEo8fnt3f0Xmmnz3L11yi3wesbvPtoYxPm7LcU9+zQRXpg721BZyNbYo8a0XVnhW74gEBP+/shv1zQtG0//0G5uJ+6jjFfUvg==
|
175
174
|
response:
|
176
175
|
status:
|
177
176
|
code: 200
|
@@ -180,27 +179,27 @@ http_interactions:
|
|
180
179
|
Cache-Control:
|
181
180
|
- max-age=0
|
182
181
|
Connection:
|
183
|
-
- Keep-Alive
|
182
|
+
- Keep-Alive, Keep-Alive
|
184
183
|
Date:
|
185
|
-
-
|
184
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
186
185
|
Pragma:
|
187
186
|
- no-cache
|
188
187
|
Server:
|
189
188
|
- pve-api-daemon/3.0
|
190
189
|
Content-Length:
|
191
|
-
- '
|
190
|
+
- '13'
|
192
191
|
Content-Type:
|
193
192
|
- application/json;charset=UTF-8
|
194
193
|
Expires:
|
195
|
-
-
|
194
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
196
195
|
body:
|
197
196
|
encoding: ASCII-8BIT
|
198
|
-
string: '{"data":
|
197
|
+
string: '{"data":null}'
|
199
198
|
http_version:
|
200
|
-
recorded_at:
|
199
|
+
recorded_at: Thu, 11 Apr 2019 15:56:48 GMT
|
201
200
|
- request:
|
202
201
|
method: get
|
203
|
-
uri: https://192.168.56.101:8006/api2/json/nodes/
|
202
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox/tasks/UPID:proxmox:0000246B:00019E1C:5CAF52DF:qmdestroy:100:root@pam:/status
|
204
203
|
body:
|
205
204
|
encoding: US-ASCII
|
206
205
|
string: ''
|
@@ -210,7 +209,7 @@ http_interactions:
|
|
210
209
|
Accept:
|
211
210
|
- application/json
|
212
211
|
Cookie:
|
213
|
-
- PVEAuthCookie=PVE:root@pam:
|
212
|
+
- PVEAuthCookie=PVE:root@pam:5CAF63BF::VfLu5N+LleQzwqNOTacK7qToVwnmqxteAa7qbVurTZloHOvy3WklGYJXITcZ1Hd5olm3z89zfowY4gLmTM93HqZh3DTjdU8I/JE3EIMaRbNuR+UajyyyOltN+jlIiCBYWPKUmC/F9m1Fsbre7wq7/JEf7v5mfY962+ZsEyRp/QV2w9lMAHN9XlXp86SXF3Huo3pWgcyJlEzgk64WNCE0SlqbjMNE3i+LulU8T1oZN6MFxJRyQHyZ5SEo8fnt3f0Xmmnz3L11yi3wesbvPtoYxPm7LcU9+zQRXpg721BZyNbYo8a0XVnhW74gEBP+/shv1zQtG0//0G5uJ+6jjFfUvg==
|
214
213
|
response:
|
215
214
|
status:
|
216
215
|
code: 200
|
@@ -221,25 +220,25 @@ http_interactions:
|
|
221
220
|
Connection:
|
222
221
|
- Keep-Alive, Keep-Alive
|
223
222
|
Date:
|
224
|
-
-
|
223
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
225
224
|
Pragma:
|
226
225
|
- no-cache
|
227
226
|
Server:
|
228
227
|
- pve-api-daemon/3.0
|
229
228
|
Content-Length:
|
230
|
-
- '
|
229
|
+
- '235'
|
231
230
|
Content-Type:
|
232
231
|
- application/json;charset=UTF-8
|
233
232
|
Expires:
|
234
|
-
-
|
233
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
235
234
|
body:
|
236
235
|
encoding: ASCII-8BIT
|
237
|
-
string: '{"data":{"
|
236
|
+
string: '{"data":{"status":"stopped","exitstatus":"OK","type":"qmdestroy","pstart":106012,"upid":"UPID:proxmox:0000246B:00019E1C:5CAF52DF:qmdestroy:100:root@pam:","pid":9323,"starttime":1554993887,"user":"root@pam","node":"proxmox","id":"100"}}'
|
238
237
|
http_version:
|
239
|
-
recorded_at:
|
238
|
+
recorded_at: Thu, 11 Apr 2019 15:56:48 GMT
|
240
239
|
- request:
|
241
240
|
method: get
|
242
|
-
uri: https://192.168.56.101:8006/api2/json/nodes/
|
241
|
+
uri: https://192.168.56.101:8006/api2/json/nodes/proxmox/tasks/UPID:proxmox:0000246B:00019E1C:5CAF52DF:qmdestroy:100:root@pam:/log
|
243
242
|
body:
|
244
243
|
encoding: US-ASCII
|
245
244
|
string: ''
|
@@ -249,7 +248,7 @@ http_interactions:
|
|
249
248
|
Accept:
|
250
249
|
- application/json
|
251
250
|
Cookie:
|
252
|
-
- PVEAuthCookie=PVE:root@pam:
|
251
|
+
- PVEAuthCookie=PVE:root@pam:5CAF63BF::VfLu5N+LleQzwqNOTacK7qToVwnmqxteAa7qbVurTZloHOvy3WklGYJXITcZ1Hd5olm3z89zfowY4gLmTM93HqZh3DTjdU8I/JE3EIMaRbNuR+UajyyyOltN+jlIiCBYWPKUmC/F9m1Fsbre7wq7/JEf7v5mfY962+ZsEyRp/QV2w9lMAHN9XlXp86SXF3Huo3pWgcyJlEzgk64WNCE0SlqbjMNE3i+LulU8T1oZN6MFxJRyQHyZ5SEo8fnt3f0Xmmnz3L11yi3wesbvPtoYxPm7LcU9+zQRXpg721BZyNbYo8a0XVnhW74gEBP+/shv1zQtG0//0G5uJ+6jjFfUvg==
|
253
252
|
response:
|
254
253
|
status:
|
255
254
|
code: 200
|
@@ -260,7 +259,7 @@ http_interactions:
|
|
260
259
|
Connection:
|
261
260
|
- Keep-Alive, Keep-Alive
|
262
261
|
Date:
|
263
|
-
-
|
262
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
264
263
|
Pragma:
|
265
264
|
- no-cache
|
266
265
|
Server:
|
@@ -270,51 +269,10 @@ http_interactions:
|
|
270
269
|
Content-Type:
|
271
270
|
- application/json;charset=UTF-8
|
272
271
|
Expires:
|
273
|
-
-
|
274
|
-
body:
|
275
|
-
encoding: ASCII-8BIT
|
276
|
-
string: '{"data":[{"t":"TASK OK","n":1}],"total":1}'
|
277
|
-
http_version:
|
278
|
-
recorded_at: Mon, 12 Nov 2018 13:30:10 GMT
|
279
|
-
- request:
|
280
|
-
method: delete
|
281
|
-
uri: 'https://192.168.56.101:8006/api2/json/nodes/pve/tasks/UPID:pve:00001407:0000EB0B:5BE98038:qmdestroy:102:root@pam:'
|
282
|
-
body:
|
283
|
-
encoding: US-ASCII
|
284
|
-
string: ''
|
285
|
-
headers:
|
286
|
-
User-Agent:
|
287
|
-
- fog-core/1.45.0
|
288
|
-
Accept:
|
289
|
-
- application/json
|
290
|
-
Csrfpreventiontoken:
|
291
|
-
- 5BE98060:ldWc1hA8/TGfl8sR5navRpKGP3g
|
292
|
-
Cookie:
|
293
|
-
- PVEAuthCookie=PVE:root@pam:5BE98060::inmUgARU4XBPbuq1eoOm5SYY6GyMFOnZc+Amjoy+Et3OjX5GXLfS1ScehHHBVtZMMcB/TZhL2Yn1mAmHqM6SkQbFum8djSS6F39HmcWb5GYq2lg2RoQdH1dwzAym74nrhKIotozOEE0vjnc9LFxLY19j8+bvKBrm8SyZjqITOEnBJYSbk5A0ey04C1PI3BJTF9VFoZE7ZcNlQ1vlBX6tPuVRsxdrTq/nhq9dHWxhiiQC/D6Z89ntBv8ZUVJZV6iVONYXGG8fcYrVEmGt5sBEIEK8IrWKpqGIogFYnFDcZhWDv5oOJXWsUZ0flVXKGWuwrhVPtLmtqsmhWm0QDBclNQ==
|
294
|
-
response:
|
295
|
-
status:
|
296
|
-
code: 200
|
297
|
-
message: OK
|
298
|
-
headers:
|
299
|
-
Cache-Control:
|
300
|
-
- max-age=0
|
301
|
-
Connection:
|
302
|
-
- Keep-Alive, Keep-Alive
|
303
|
-
Date:
|
304
|
-
- Mon, 12 Nov 2018 13:30:08 GMT
|
305
|
-
Pragma:
|
306
|
-
- no-cache
|
307
|
-
Server:
|
308
|
-
- pve-api-daemon/3.0
|
309
|
-
Content-Length:
|
310
|
-
- '13'
|
311
|
-
Content-Type:
|
312
|
-
- application/json;charset=UTF-8
|
313
|
-
Expires:
|
314
|
-
- Mon, 12 Nov 2018 13:30:08 GMT
|
272
|
+
- Thu, 11 Apr 2019 15:56:47 GMT
|
315
273
|
body:
|
316
274
|
encoding: ASCII-8BIT
|
317
|
-
string: '{"data":
|
275
|
+
string: '{"total":1,"data":[{"n":1,"t":"TASK OK"}]}'
|
318
276
|
http_version:
|
319
|
-
recorded_at:
|
277
|
+
recorded_at: Thu, 11 Apr 2019 15:56:48 GMT
|
320
278
|
recorded_with: VCR 3.0.3
|