cloudstack_client 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2a2d40dacfee5848631290128014dc97e9c8779
|
4
|
+
data.tar.gz: 3e6586720e833c58e1cc3749be18208fc0e4540d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09364a8076d287ccab63de50edec4baf07a20cda57dc4670b07df6c304e53c9c7d85f7d9a570b14ef9b4635793720187de9bf3faf7d2adb175944c27eb18639c
|
7
|
+
data.tar.gz: f8818939d6b9d9c281069c3dd972ad4c876d47b21e069a83c238df370894e9d06085c65890f6db8e5342c1918c50395be9aa95eb12a14c110b2b499d99ba6e50
|
@@ -28,55 +28,55 @@ module CloudstackClient
|
|
28
28
|
json['systemvm'] || []
|
29
29
|
end
|
30
30
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
'
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
'
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
params = {
|
64
|
-
'command' => 'rebootSystemVm',
|
65
|
-
'id' => id
|
66
|
-
}
|
67
|
-
args[:sync] ? send_request(params) : send_async_request(params)['systemvm']
|
68
|
-
end
|
69
|
-
|
70
|
-
##
|
71
|
-
# Destroy sytem VM.
|
72
|
-
#
|
73
|
-
|
74
|
-
def destroy_system_vm(id, args = {})
|
75
|
-
params = {
|
76
|
-
'command' => 'destroySystemVm',
|
31
|
+
##
|
32
|
+
# Stop system VM.
|
33
|
+
#
|
34
|
+
|
35
|
+
def stop_system_vm(id, args = {})
|
36
|
+
params = {
|
37
|
+
'command' => 'stopSystemVm',
|
38
|
+
'id' => id
|
39
|
+
}
|
40
|
+
params['forced'] = true if args[:forced]
|
41
|
+
args[:sync] ? send_request(params) : send_async_request(params)['systemvm']
|
42
|
+
end
|
43
|
+
|
44
|
+
##
|
45
|
+
# Start system VM.
|
46
|
+
#
|
47
|
+
|
48
|
+
def start_system_vm(id, args = {})
|
49
|
+
params = {
|
50
|
+
'command' => 'startSystemVm',
|
51
|
+
'id' => id
|
52
|
+
}
|
53
|
+
args[:sync] ? send_request(params) : send_async_request(params)['systemvm']
|
54
|
+
end
|
55
|
+
|
56
|
+
##
|
57
|
+
# Reboot sytem VM.
|
58
|
+
#
|
59
|
+
|
60
|
+
def reboot_system_vm(id, args = {})
|
61
|
+
params = {
|
62
|
+
'command' => 'rebootSystemVm',
|
77
63
|
'id' => id
|
78
|
-
|
79
|
-
|
80
|
-
|
64
|
+
}
|
65
|
+
args[:sync] ? send_request(params) : send_async_request(params)['systemvm']
|
66
|
+
end
|
67
|
+
|
68
|
+
##
|
69
|
+
# Destroy sytem VM.
|
70
|
+
#
|
71
|
+
|
72
|
+
def destroy_system_vm(id, args = {})
|
73
|
+
params = {
|
74
|
+
'command' => 'destroySystemVm',
|
75
|
+
'id' => id
|
76
|
+
}
|
77
|
+
args[:sync] ? send_request(params) : send_async_request(params)['systemvm']
|
78
|
+
end
|
79
|
+
|
80
|
+
end # module
|
81
81
|
|
82
82
|
end
|