File: const_7_vmm.py

package info (click to toggle)
python-synologydsm-api 2.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,380 kB
  • sloc: python: 27,239; sh: 25; makefile: 2
file content (113 lines) | stat: -rw-r--r-- 4,344 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
"""DSM 7 SYNO.Virtualization.Guest data."""

DSM_7_VMM_GUESTS = {
    "data": {
        "canHA": False,
        "canMove": True,
        "guests": [
            {
                "autorun": 0,
                "birth_info": {"desc": "", "from": "vmm", "method": "create"},
                "boot_from": "disk",
                "can_ha": True,
                "cpu_passthru": True,
                "cpu_pin_num": 0,
                "cpu_weight": 8,
                "desc": "vDSM test",
                "dsm_version": "DSM 7.2.1-69057 Update 5",
                "guest_id": "a39d0628-380e-42f8-8cb6-a00d6b930fa0",
                "ha_status": "",
                "ha_status_detail": "",
                "ha_status_type": "",
                "host_id": "f0310cdf-fa88-47d3-9e9e-be36fb8e121b",
                "host_name": "KrosseKrabbe",
                "host_ram_size": 6291456,
                "http_port": 5000,
                "https_enable": False,
                "https_port": 5001,
                "https_redirect": False,
                "hyperv_enlighten": False,
                "ip": "",
                "is_acting": False,
                "is_general_vm": False,
                "is_online": False,
                "is_replica_support": True,
                "is_rs_install": True,
                "iso_images": ["unmounted", "unmounted"],
                "kb_layout": "Default",
                "name": "vdsm",
                "ram_used": 0,
                "repo_id": "3a69ac31-004c-4b02-9b36-609099bc9be6",
                "repo_name": "KrosseKrabbe - VM Storage 1",
                "snap_num": 0,
                "status": "shutdown",
                "status_desc": "",
                "status_type": "healthy",
                "usb_device_name": None,
                "usbs": ["unmounted", "unmounted", "unmounted", "unmounted"],
                "use_ovmf": False,
                "vcpu_num": 1,
                "vcpu_usage": "",
                "vdisk_num": 3,
                "video_card": "cirrus",
                "vram_size": 1048576,
            },
            {
                "autorun": 1,
                "birth_info": {"desc": "", "from": "vmm", "method": "create"},
                "boot_from": "disk",
                "can_ha": True,
                "cpu_passthru": True,
                "cpu_pin_num": 0,
                "cpu_weight": 256,
                "desc": "",
                "dsm_version": "",
                "guest_id": "2b4ec8c8-2bec-4daa-b36d-1a47b639254f",
                "ha_status": "",
                "ha_status_detail": "",
                "ha_status_type": "",
                "has_agent": False,
                "host_id": "f0310cdf-fa88-47d3-9e9e-be36fb8e121b",
                "host_name": "KrosseKrabbe",
                "host_net_ifs": ["f0310cdf-fa88-47d3-9e9e-be36fb8e121b_bond0"],
                "host_ram_size": 6291456,
                "http_port": 5000,
                "https_enable": False,
                "https_port": 5001,
                "https_redirect": False,
                "hyperv_enlighten": True,
                "ip": "",
                "is_acting": False,
                "is_general_vm": True,
                "is_online": True,
                "is_replica_support": True,
                "is_rs_install": True,
                "iso_images": ["unmounted", "unmounted"],
                "kb_layout": "Default",
                "max_disk_latency": 0,
                "name": "lnx_test",
                "ram_used": 1169544,
                "repo_id": "3a69ac31-004c-4b02-9b36-609099bc9be6",
                "repo_name": "KrosseKrabbe - VM Storage 1",
                "snap_num": 0,
                "status": "running",
                "status_desc": "",
                "status_type": "healthy",
                "total_disk_iops": 0,
                "total_disk_throughput": 0,
                "total_net_receive": 0,
                "total_net_send": 0,
                "usb_device_name": None,
                "usbs": ["unmounted", "unmounted", "unmounted", "unmounted"],
                "use_ovmf": False,
                "vcpu_num": 1,
                "vcpu_usage": 25,
                "vdisk_num": 1,
                "video_card": "vmvga",
                "vram_size": 1048576,
            },
        ],
        "is_freeze": False,
    },
    "success": True,
}