2 <api name='libvir-python'>
3 <!-- This file lists libvirt API functions whose Python stubs are
4 written by hand in libvirt-override.c, but the Python-level code
5 are still automatically generated by the generator.py script.
7 The type of return value is supposed to be C type. If a function's
8 stub will return a python non-integer data type like string, list,
9 tuple, dictionary, etc, please use "char *" as the type of its return
13 <function name="virConnectGetVersion" file='python'>
14 <info>Returns the running hypervisor version of the connection host</info>
15 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
16 <return type='int' info="0 on success, -1 on error"/>
18 <function name="virConnectGetLibVersion" file='python'>
19 <info>Returns the libvirt version of the connection host</info>
20 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
21 <return type='int' info="0 on success, -1 on error"/>
23 <function name="virConnectListDomainsID" file='python'>
24 <info>Returns the list of the ID of the domains on the hypervisor</info>
25 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
26 <return type='char *' info="the list of ID or None in case of error"/>
28 <function name='virConnectListDefinedDomains' file='python'>
29 <info>list the defined domains, stores the pointers to the names in @names</info>
30 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
31 <return type='char *' info='the list of Names or None in case of error'/>
33 <function name='virConnectListAllDomains' file='python'>
34 <info>returns list of all defined domains</info>
35 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
36 <arg name='flags' type='unsigned int' info='optional flags'/>
37 <return type='char *' info='the list of domains or None in case of error'/>
39 <function name='virConnectListNetworks' file='python'>
40 <info>list the networks, stores the pointers to the names in @names</info>
41 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
42 <return type='char *' info='the list of Names or None in case of error'/>
44 <function name='virConnectListDefinedNetworks' file='python'>
45 <info>list the defined networks, stores the pointers to the names in @names</info>
46 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
47 <return type='char *' info='the list of Names or None in case of error'/>
49 <function name='virConnectListAllNetworks' file='python'>
50 <info>returns list of all networks</info>
51 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
52 <arg name='flags' type='unsigned int' info='optional flags'/>
53 <return type='char *' info='the list of networks or None in case of error'/>
55 <function name='virDomainLookupByUUID' file='python'>
56 <info>Try to lookup a domain on the given hypervisor based on its UUID.</info>
57 <return type='virDomainPtr' info='a new domain object or NULL in case of failure'/>
58 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
59 <arg name='uuid' type='const unsigned char *' info='the UUID string for the domain, must be 16 bytes'/>
61 <function name='virNetworkLookupByUUID' file='python'>
62 <info>Try to lookup a network on the given hypervisor based on its UUID.</info>
63 <return type='virNetworkPtr' info='a new network object or NULL in case of failure'/>
64 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
65 <arg name='uuid' type='const unsigned char *' info='the UUID string for the network, must be 16 bytes'/>
67 <function name='virDomainGetInfo' file='python'>
68 <info>Extract information about a domain. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted.</info>
69 <return type='char *' info='the list of information or None in case of error'/>
70 <arg name='domain' type='virDomainPtr' info='a domain object'/>
72 <function name='virDomainGetState' file='python'>
73 <info>Extract domain state.</info>
74 <return type='char *' info='the list containing state and reason or None in case of error'/>
75 <arg name='domain' type='virDomainPtr' info='a domain object'/>
76 <arg name='flags' type='unsigned int' info='additional flags'/>
78 <function name='virDomainGetControlInfo' file='python'>
79 <info>Extract details about current state of control interface to a domain.</info>
80 <return type='char *' info='the list of information or None in case of error'/>
81 <arg name='domain' type='virDomainPtr' info='a domain object'/>
82 <arg name='flags' type='unsigned int' info='additional flags'/>
84 <function name='virDomainGetBlockInfo' file='python'>
85 <info>Extract information about a domain block device size</info>
86 <return type='char *' info='the list of information or None in case of error'/>
87 <arg name='domain' type='virDomainPtr' info='a domain object'/>
88 <arg name='path' type='const char *' info='path to the block device or file'/>
89 <arg name='flags' type='unsigned int' info='currently unused'/>
91 <function name='virDomainGetJobInfo' file='python'>
92 <info>Extract information about an active job being processed for a domain.</info>
93 <return type='char *' info='the list of information or None in case of error'/>
94 <arg name='domain' type='virDomainPtr' info='a domain object'/>
96 <function name='virDomainGetJobStats' file='python'>
97 <info>Extract information about an active job being processed for a domain.</info>
98 <return type='char *' info='dictionary mapping field names to values or None in case of error'/>
99 <arg name='domain' type='virDomainPtr' info='a domain object'/>
100 <arg name='flags' type='unsigned int' info='flags, currently unused, pass 0.'/>
102 <function name='virNodeGetInfo' file='python'>
103 <info>Extract hardware information about the Node. Note that the memory size is reported in MiB instead of KiB.</info>
104 <return type='char *' info='the list of information or None in case of error'/>
105 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
107 <function name='virNodeGetSecurityModel' file='python'>
108 <info>Extract information about the hypervisor security model</info>
109 <return type='char *' info='the list of information or None in case of error'/>
110 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
112 <function name='virDomainGetSecurityLabel' file='python'>
113 <info>Extract information about the domain security label. Only the first label will be returned.</info>
114 <return type='char *' info='the list of information or None in case of error'/>
115 <arg name='domain' type='virDomainPtr' info='a domain object'/>
117 <function name='virDomainGetSecurityLabelList' file='python'>
118 <info>Extract information about the domain security label. A list of all labels will be returned.</info>
119 <return type='char *' info='the list of information or None in case of error'/>
120 <arg name='domain' type='virDomainPtr' info='a domain object'/>
122 <function name='virNodeGetCPUStats' file='python'>
123 <info>Extract node's CPU statistics.</info>
124 <return type='char *' info='dictionary mapping field names to values or None in case of error'/>
125 <arg name='conn' type='virConnectPtr' info='pointer to hypervisor connection'/>
126 <arg name='cpuNum' type='int' info='number of node cpu. (VIR_NODE_CPU_STATS_ALL_CPUS means total cpu statistics)'/>
127 <arg name='flags' type='unsigned int' info='additional flags'/>
129 <function name='virNodeGetMemoryStats' file='python'>
130 <info>Extract node's memory statistics.</info>
131 <return type='char *' info='dictionary mapping field names to values or None in case of error'/>
132 <arg name='conn' type='virConnectPtr' info='pointer to hypervisor connection'/>
133 <arg name='cellNum' type='int' info='number of node cell. (VIR_NODE_MEMORY_STATS_ALL_CELLS means total cell statistics)'/>
134 <arg name='flags' type='unsigned int' info='additional flags'/>
136 <function name='virDomainGetUUID' file='python'>
137 <info>Extract the UUID unique Identifier of a domain.</info>
138 <return type='char *' info='the 16 bytes string or None in case of error'/>
139 <arg name='domain' type='virDomainPtr' info='a domain object'/>
141 <function name='virDomainGetUUIDString' file='python'>
142 <info>Fetch globally unique ID of the domain as a string.</info>
143 <return type='char *' info='the UUID string or None in case of error'/>
144 <arg name='pool' type='virDomainPtr' info='a domain object'/>
146 <function name='virNetworkGetUUID' file='python'>
147 <info>Extract the UUID unique Identifier of a network.</info>
148 <return type='char *' info='the 16 bytes string or None in case of error'/>
149 <arg name='domain' type='virNetworkPtr' info='a network object'/>
151 <function name='virNetworkGetUUIDString' file='python'>
152 <info>Fetch globally unique ID of the network as a string.</info>
153 <return type='char *' info='the UUID string or None in case of error'/>
154 <arg name='net' type='virNetworkPtr' info='a network object'/>
156 <function name='virStoragePoolGetUUID' file='python'>
157 <info>Extract the UUID unique Identifier of a storage pool.</info>
158 <return type='char *' info='the 16 bytes string or None in case of error'/>
159 <arg name='pool' type='virStoragePoolPtr' info='a storage pool object'/>
161 <function name='virStoragePoolGetUUIDString' file='python'>
162 <info>Fetch globally unique ID of the storage pool as a string.</info>
163 <return type='char *' info='the UUID string or None in case of error'/>
164 <arg name='pool' type='virStoragePoolPtr' info='a storage pool object'/>
166 <function name='virNetworkGetAutostart' file='python'>
167 <info>Extract the autostart flag for a network.</info>
168 <return type='int' info='the autostart flag, or None in case of error'/>
169 <arg name='domain' type='virNetworkPtr' info='a network object'/>
171 <function name='virDomainGetAutostart' file='python'>
172 <info>Extract the autostart flag for a domain</info>
173 <return type='int' info='the autostart flag, or None in case of error'/>
174 <arg name='domain' type='virDomainPtr' info='a network object'/>
176 <function name='virStoragePoolGetAutostart' file='python'>
177 <info>Extract the autostart flag for a storage pool</info>
178 <return type='int' info='the autostart flag, or None in case of error'/>
179 <arg name='pool' type='virStoragePoolPtr' info='a storage pool object'/>
181 <function name='virDomainBlockStats' file='python'>
182 <info>Extracts block device statistics for a domain</info>
183 <return type='char *' info='a tuple of statistics'/>
184 <arg name='domain' type='virDomainPtr' info='a domain object'/>
185 <arg name='path' type='char *' info='the path for the block device'/>
187 <function name='virDomainBlockStatsFlags' file='python'>
188 <info>Extracts block device statistics parameters of a running domain</info>
189 <return type='char *' info='None in case of error, returns a dictionary of params'/>
190 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
191 <arg name='path' type='char *' info='the path for the block device'/>
192 <arg name='flags' type='int' info='flags (unused; pass 0)'/>
194 <function name='virDomainGetCPUStats' file='python'>
195 <info>Extracts CPU statistics for a running domain. On success it will
196 return a list of data of dictionary type. If boolean total is False or 0, the
197 first element of the list refers to CPU0 on the host, second element is
198 CPU1, and so on. The format of data struct is as follows:
199 [{cpu_time:xxx}, {cpu_time:xxx}, ...]
200 If it is True or 1, it returns total domain CPU statistics in the format of
201 [{cpu_time:xxx, user_time:xxx, system_time:xxx}]</info>
202 <return type='char *' info='returns a list of dictionary in case of success, None in case of error'/>
203 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
204 <arg name='total' type='bool' info='on true, return total domain CPU statistics, false return per-cpu info'/>
205 <arg name='flags' type='int' info='flags (unused; pass 0)'/>
207 <function name='virDomainInterfaceStats' file='python'>
208 <info>Extracts interface device statistics for a domain</info>
209 <return type='char *' info='a tuple of statistics'/>
210 <arg name='domain' type='virDomainPtr' info='a domain object'/>
211 <arg name='path' type='char *' info='the path for the interface device'/>
213 <function name='virDomainMemoryStats' file='python'>
214 <info>Extracts memory statistics for a domain</info>
215 <return type='char *' info='a dictionary of statistics'/>
216 <arg name='domain' type='virDomainPtr' info='a domain object'/>
218 <function name="virNodeGetCellsFreeMemory" file='python'>
219 <info>Returns the available memory for a list of cells</info>
220 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
221 <arg name='startCell' type='int' info='first cell in the list'/>
222 <arg name='maxCells' type='int' info='number of cell in the list'/>
223 <return type='char *' info="the list available memory in the cells"/>
225 <function name='virDomainGetSchedulerParameters' file='python'>
226 <info>Get the scheduler parameters, the @params array will be filled with the values.</info>
227 <return type='char *' info='None in case of error, returns a dictionary of params.'/>
228 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
230 <function name='virDomainGetSchedulerParametersFlags' file='python'>
231 <info>Get the scheduler parameters</info>
232 <return type='char *' info='None in case of error, returns a dictionary of params'/>
233 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
234 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
236 <function name='virDomainGetSchedulerType' file='python'>
237 <info>Get the scheduler type.</info>
238 <return type='char *' info='NULL in case of error. The caller must free the returned string.'/>
239 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
241 <function name='virDomainGetVcpus' file='python'>
242 <info>Extract information about virtual CPUs of domain, store it in info array and also in cpumaps if this pointer is'nt NULL.</info>
243 <return type='int' info='the number of info filled in case of success, -1 in case of failure.'/>
244 <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
246 <function name='virDomainPinVcpu' file='python'>
247 <info>Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires privileged access to the hypervisor.</info>
248 <return type='int' info='0 in case of success, -1 in case of failure.'/>
249 <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
250 <arg name='vcpu' type='unsigned int' info='virtual CPU number'/>
251 <arg name='cpumap' type='unsigned char *' info='pointer to a bit map of real CPUs (in 8-bit bytes) (IN) Each bit set to 1 means that corresponding CPU is usable. Bytes are stored in little-endian order: CPU0-7, 8-15... In each byte, lowest CPU number is least significant bit.'/>
253 <function name='virDomainPinVcpuFlags' file='python'>
254 <info>Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires privileged access to the hypervisor.</info>
255 <return type='int' info='0 in case of success, -1 in case of failure.'/>
256 <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
257 <arg name='vcpu' type='unsigned int' info='virtual CPU number'/>
258 <arg name='cpumap' type='unsigned char *' info='pointer to a bit map of real CPUs (in 8-bit bytes) (IN) Each bit set to 1 means that corresponding CPU is usable. Bytes are stored in little-endian order: CPU0-7, 8-15... In each byte, lowest CPU number is least significant bit.'/>
259 <arg name='flags' type='int' info='flags to specify'/>
261 <function name='virDomainGetVcpuPinInfo' file='python'>
262 <info>Query the CPU affinity setting of all virtual CPUs of domain</info>
263 <return type='char *' info='the array of cpumap'/>
264 <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
265 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
267 <function name='virDomainGetEmulatorPinInfo' file='python'>
268 <info>Query the CPU affinity setting of the emulator process of domain</info>
269 <return type='char *' info='the array of cpumap'/>
270 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
271 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
273 <function name='virDomainPinEmulator' file='python'>
274 <info>Dynamically change the real CPUs which can be allocated to the emulator process of a domain.
275 This function requires privileged access to the hypervisor.</info>
276 <return type='int' info='0 in case of success, -1 in case of failure.'/>
277 <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
278 <arg name='cpumap' type='unsigned char *' info='pointer to a bit map of real CPUs (in 8-bit bytes) (IN) Each bit set to 1 means that corresponding CPU is usable. Bytes are stored in little-endian order: CPU0-7, 8-15... In each byte, lowest CPU number is least significant bit.'/>
279 <arg name='flags' type='int' info='flags to specify'/>
281 <function name='virDomainGetIOThreadInfo' file='python'>
282 <info>Query the CPU affinity setting of the IOThreads of the domain</info>
283 <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
284 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
285 <return type='char *' info="list of IOThreads information including the iothread_id, the cpumap, and the cpumap length for each iothread_id."/>
287 <function name='virDomainPinIOThread' file='python'>
288 <info>Dynamically change the real CPUs which can be allocated to an IOThread. This function requires privileged access to the hypervisor.</info>
289 <return type='int' info='0 in case of success, -1 in case of failure.'/>
290 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
291 <arg name='iothread_val' type='unsigned int' info='iothread_id number'/>
292 <arg name='cpumap' type='unsigned char *' info='pointer to a bit map of real CPUs (in 8-bit bytes) (IN) Each bit set to 1 means that corresponding CPU is usable. Bytes are stored in little-endian order: CPU0-7, 8-15... In each byte, lowest CPU number is least significant bit.'/>
293 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
295 <function name='virDomainSetSchedulerParameters' file='python'>
296 <info>Change the scheduler parameters</info>
297 <return type='int' info='-1 in case of error, 0 in case of success.'/>
298 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
299 <arg name='params' type='virSchedParameterPtr' info='pointer to scheduler parameter objects'/>
301 <function name='virDomainSetSchedulerParametersFlags' file='python'>
302 <info>Change the scheduler parameters</info>
303 <return type='int' info='-1 in case of error, 0 in case of success.'/>
304 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
305 <arg name='params' type='virSchedParameterPtr' info='pointer to scheduler parameter objects'/>
306 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
308 <function name='virDomainSetBlkioParameters' file='python'>
309 <info>Change the blkio tunables</info>
310 <return type='int' info='-1 in case of error, 0 in case of success.'/>
311 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
312 <arg name='params' type='virBlkioParameterPtr' info='pointer to blkio tunable objects'/>
313 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
315 <function name='virDomainGetBlkioParameters' file='python'>
316 <info>Get the blkio parameters</info>
317 <return type='char *' info='None in case of error, returns a dictionary of params'/>
318 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
319 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
321 <function name='virDomainSetMemoryParameters' file='python'>
322 <info>Change the memory tunables</info>
323 <return type='int' info='-1 in case of error, 0 in case of success.'/>
324 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
325 <arg name='params' type='virMemoryParameterPtr' info='pointer to memory tunable objects'/>
326 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
328 <function name='virDomainGetMemoryParameters' file='python'>
329 <info>Get the memory parameters</info>
330 <return type='char *' info='None in case of error, returns a dictionary of params'/>
331 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
332 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
334 <function name='virDomainSetNumaParameters' file='python'>
335 <info>Change the NUMA tunables</info>
336 <return type='int' info='-1 in case of error, 0 in case of success.'/>
337 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
338 <arg name='params' type='virTypedParameterPtr' info='pointer to numa tunable objects'/>
339 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
341 <function name='virDomainGetNumaParameters' file='python'>
342 <info>Get the NUMA parameters</info>
343 <return type='char *' info='returns a dictionary of params in case of success, None in case of error'/>
344 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
345 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
347 <function name='virDomainSetInterfaceParameters' file='python'>
348 <info>Change the bandwidth tunables for a interface device</info>
349 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
350 <arg name='device' type='const char *' info='interface name'/>
351 <arg name='params' type='virTypedParameterPtr' info='Pointer to bandwidth tuning params object'/>
352 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/>
353 <return type='int' info='0 in case of success, -1 in case of failure'/>
355 <function name='virDomainGetInterfaceParameters' file='python'>
356 <info>Get the bandwidth tunables for a interface device</info>
357 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
358 <arg name='device' type='const char *' info='interface name'/>
359 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/>
360 <return type='char *' info='the bandwidth tunables value or None in case of error'/>
363 <function name='virConnectListStoragePools' file='python'>
364 <info>list the storage pools, stores the pointers to the names in @names</info>
365 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
366 <return type='char *' info='the list of Names of None in case of error'/>
368 <function name='virConnectListDefinedStoragePools' file='python'>
369 <info>list the defined storage pool, stores the pointers to the names in @names</info>
370 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
371 <return type='char *' info='the list of Names of None in case of error'/>
373 <function name='virConnectListAllStoragePools' file='python'>
374 <info>returns list of all storage pools</info>
375 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
376 <arg name='flags' type='unsigned int' info='optional flags'/>
377 <return type='char *' info='the list of pools or None in case of error'/>
379 <function name='virStoragePoolListVolumes' file='python'>
380 <info>list the storage volumes, stores the pointers to the names in @names</info>
381 <arg name='pool' type='virStoragePoolPtr' info='pointer to the storage pool'/>
382 <return type='char *' info='the list of Names or None in case of error'/>
384 <function name='virStoragePoolListAllVolumes' file='python'>
385 <info>return list of storage volume objects</info>
386 <arg name='pool' type='virStoragePoolPtr' info='pointer to the storage pool'/>
387 <arg name='flags' type='unsigned int' info='optional flags'/>
388 <return type='char *' info='the list of volumes or None in case of error'/>
390 <function name='virStoragePoolGetInfo' file='python'>
391 <info>Extract information about a storage pool. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted.</info>
392 <return type='char *' info='the list of information or None in case of error'/>
393 <arg name='pool' type='virStoragePoolPtr' info='a storage pool object'/>
395 <function name='virStorageVolGetInfo' file='python'>
396 <info>Extract information about a storage volume. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted.</info>
397 <return type='char *' info='the list of information or None in case of error'/>
398 <arg name='vol' type='virStorageVolPtr' info='a storage vol object'/>
400 <function name='virNodeListDevices' file='python'>
401 <info>list the node devices</info>
402 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
403 <arg name='cap' type='const unsigned char *' info='capability name'/>
404 <arg name='flags' type='unsigned int' info='flags (unused; pass 0)'/>
405 <return type='char *' info='the list of Names or None in case of error'/>
407 <function name='virConnectListAllNodeDevices' file='python'>
408 <info>returns list of all host node devices</info>
409 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
410 <arg name='flags' type='unsigned int' info='optional flags'/>
411 <return type='char *' info='the list of host node device or None in case of error'/>
413 <function name='virNodeDeviceListCaps' file='python'>
414 <info>list the node device's capabilities</info>
415 <arg name='dev' type='virNodeDevicePtr' info='pointer to the node device'/>
416 <return type='char *' info='the list of Names or None in case of error'/>
418 <function name='virSecretGetValue' file='libvirt' module='libvirt'>
419 <info>Fetches the value associated with a secret.</info>
420 <return type='char *' info='the secret value or None in case of error'/>
421 <arg name='secret' type='virSecretPtr' info='virSecret secret'/>
422 <arg name='flags' type='unsigned int' info='flags (unused; pass 0)'/>
424 <function name='virConnectListSecrets' file='libvirt' module='libvirt'>
425 <info>List the defined secret IDs</info>
426 <arg name='conn' type='virConnectPtr' info='virConnect connection'/>
427 <return type='char *' info='the list of secret IDs or None in case of error'/>
429 <function name='virConnectListAllSecrets' file='python'>
430 <info>returns list of all interfaces</info>
431 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
432 <arg name='flags' type='unsigned int' info='optional flags'/>
433 <return type='char *' info='the list of secrets or None in case of error'/>
435 <function name='virSecretSetValue' file='libvirt' module='libvirt'>
436 <info>Associates a value with a secret.</info>
437 <return type='int' info='0 on success, -1 on failure.'/>
438 <arg name='secret' type='virSecretPtr' info='virSecret secret'/>
439 <arg name='value' type='const char *' info='The secret value'/>
440 <arg name='flags' type='unsigned int' info='flags (unused; pass 0)'/>
442 <function name='virSecretLookupByUUID' file='python'>
443 <info>Try to lookup a secret on the given hypervisor based on its UUID.</info>
444 <return type='virSecretPtr' info='a new secret object or NULL in case of failure'/>
445 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
446 <arg name='uuid' type='const unsigned char *' info='the UUID string for the secret, must be 16 bytes'/>
448 <function name='virSecretGetUUID' file='python'>
449 <info>Extract the UUID unique Identifier of a secret.</info>
450 <return type='char *' info='the 16 bytes string or None in case of error'/>
451 <arg name='secret' type='virSecretPtr' info='a secret object'/>
453 <function name='virSecretGetUUIDString' file='python'>
454 <info>Fetch globally unique ID of the secret as a string.</info>
455 <return type='char *' info='the UUID string or None in case of error'/>
456 <arg name='secret' type='virSecretPtr' info='a secret object'/>
458 <function name='virConnectListNWFilters' file='libvirt' module='libvirt'>
459 <info>List the defined network filters</info>
460 <arg name='conn' type='virConnectPtr' info='virConnect connection'/>
461 <return type='char *' info='the list of network filter IDs or None in case of error'/>
463 <function name='virConnectListAllNWFilters' file='python'>
464 <info>returns list of all network fitlers</info>
465 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
466 <arg name='flags' type='unsigned int' info='optional flags'/>
467 <return type='char *' info='the list of network filters or None in case of error'/>
469 <function name='virNWFilterLookupByUUID' file='python'>
470 <info>Try to lookup a network filter on the given hypervisor based on its UUID.</info>
471 <return type='virNWFilterPtr' info='a new network filter object or NULL in case of failure'/>
472 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
473 <arg name='uuid' type='const unsigned char *' info='the UUID string for the secret, must be 16 bytes'/>
475 <function name='virNWFilterGetUUID' file='python'>
476 <info>Extract the UUID unique Identifier of a network filter.</info>
477 <return type='char *' info='the 16 bytes string or None in case of error'/>
478 <arg name='nwfilter' type='virNWFilterPtr' info='a network filter object'/>
480 <function name='virNWFilterGetUUIDString' file='python'>
481 <info>Fetch globally unique ID of the network filter as a string.</info>
482 <return type='char *' info='the UUID string or None in case of error'/>
483 <arg name='nwfilter' type='virNWFilterPtr' info='a network filter object'/>
485 <function name='virConnectListInterfaces' file='python'>
486 <info>list the running interfaces, stores the pointers to the names in @names</info>
487 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
488 <return type='char *' info='the list of Names of None in case of error'/>
490 <function name='virConnectListDefinedInterfaces' file='python'>
491 <info>list the defined interfaces, stores the pointers to the names in @names</info>
492 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
493 <return type='char *' info='the list of Names of None in case of error'/>
495 <function name='virConnectListAllInterfaces' file='python'>
496 <info>returns list of all interfaces</info>
497 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
498 <arg name='flags' type='unsigned int' info='optional flags'/>
499 <return type='char *' info='the list of interfaces or None in case of error'/>
501 <function name='virConnectBaselineCPU' file='python'>
502 <info>Computes the most feature-rich CPU which is compatible with all given host CPUs.</info>
503 <return type='char *' info='XML description of the computed CPU or NULL on error.'/>
504 <arg name='conn' type='virConnectPtr' info='virConnect connection'/>
505 <arg name='xmlCPUs' type='const char **' info='array of XML descriptions of host CPUs'/>
506 <arg name='flags' type='unsigned int' info='fine-tuning flags, currently unused, pass 0.'/>
508 <function name='virConnectGetCPUModelNames' file='python'>
509 <info>Get the list of supported CPU models.</info>
510 <return type='char *' info='list of supported CPU models'/>
511 <arg name='conn' type='virConnectPtr' info='virConnect connection'/>
512 <arg name='arch' type='const char *' info='arch'/>
513 <arg name='flags' type='unsigned int' info='fine-tuning flags, currently unused, pass 0.'/>
515 <function name='virDomainSnapshotListNames' file='python'>
516 <info>collect the list of snapshot names for the given domain</info>
517 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
518 <arg name='flags' type='unsigned int' info='flags'/>
519 <return type='char *' info='the list of Names or None in case of error'/>
521 <function name='virDomainListAllSnapshots' file='python'>
522 <info>returns the list of snapshots for the given domain</info>
523 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
524 <arg name='flags' type='unsigned int' info='flags'/>
525 <return type='char *' info='the list of snapshots or None in case of error'/>
527 <function name='virDomainSnapshotListChildrenNames' file='python'>
528 <info>collect the list of child snapshot names for the given snapshot</info>
529 <arg name='snapshot' type='virDomainSnapshotPtr' info='pointer to the snapshot'/>
530 <arg name='flags' type='unsigned int' info='flags'/>
531 <return type='char *' info='the list of Names or None in case of error'/>
533 <function name='virDomainSnapshotListAllChildren' file='python'>
534 <info>returns the list of child snapshots for the given snapshot</info>
535 <arg name='snapshot' type='virDomainSnapshotPtr' info='pointer to the snapshot'/>
536 <arg name='flags' type='unsigned int' info='flags'/>
537 <return type='char *' info='the list of snapshots or None in case of error'/>
539 <function name='virDomainRevertToSnapshot' file='python'>
540 <info>revert the domain to the given snapshot</info>
541 <arg name='dom' type='virDomainPtr' info='dummy domain pointer'/>
542 <arg name='snap' type='virDomainSnapshotPtr' info='pointer to the snapshot'/>
543 <arg name='flags' type='unsigned int' info='flags'/>
544 <return type='int' info="0 on success, -1 on error"/>
546 <function name='virDomainGetBlockJobInfo' file='python'>
547 <info>Get progress information for a block job</info>
548 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
549 <arg name='path' type='const char *' info='Fully-qualified filename of disk'/>
550 <arg name='flags' type='unsigned int' info='fine-tuning flags, currently unused, pass 0.'/>
551 <return type='char *' info='A dictionary containing job information.' />
553 <function name='virDomainMigrateGetCompressionCache' file='python'>
554 <info>Get current size of the cache (in bytes) used for compressing
555 repeatedly transferred memory pages during live migration.</info>
556 <arg name='domain' type='virDomainPtr' info='a domain object'/>
557 <arg name='flags' type='unsigned int' info='flags, currently unused, pass 0.'/>
558 <return type='unsigned long long' info='current cache size, or None in case of error'/>
560 <function name='virDomainMigrateGetMaxSpeed' file='python'>
561 <info>Get currently configured maximum migration speed for a domain</info>
562 <arg name='domain' type='virDomainPtr' info='a domain object'/>
563 <arg name='flags' type='unsigned int' info='flags, currently unused, pass 0.'/>
564 <return type='unsigned long' info='current max migration speed, or None in case of error'/>
566 <function name='virDomainMigrate3' file='python'>
567 <info>Migrate the domain object from its current host to the destination host
568 given by dconn (a connection to the destination host).</info>
569 <arg name='domain' type='virDomainPtr' info='a domain object'/>
570 <arg name='dconn' type='virConnectPtr' info='pointer to the destination host connection'/>
571 <arg name='params' type='char *' info='dictionary with migration parameters'/>
572 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainMigrateFlags'/>
573 <return type='virDomainPtr' info='a new domain object or NULL in case of failure'/>
575 <function name='virDomainMigrateToURI3' file='python'>
576 <info>Migrate the domain object from its current host to the destination host
578 <arg name='domain' type='virDomainPtr' info='a domain object'/>
579 <arg name='dconnuri' type='char *' info='URI for target libvirtd if @flags includes VIR_MIGRATE_PEER2PEER'/>
580 <arg name='params' type='char *' info='dictionary with migration parameters'/>
581 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainMigrateFlags'/>
582 <return type='int' info='0 in case of success, -1 in case of failure.'/>
584 <function name='virDomainSetBlockIoTune' file='python'>
585 <info>Change the I/O tunables for a block device</info>
586 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
587 <arg name='disk' type='const char *' info='disk name'/>
588 <arg name='params' type='virTypedParameterPtr' info='Pointer to blkio tuning params object'/>
589 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/>
590 <return type='int' info='0 in case of success, -1 in case of failure'/>
592 <function name='virDomainGetBlockIoTune' file='python'>
593 <info>Get the I/O tunables for a block device</info>
594 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
595 <arg name='disk' type='const char *' info='disk name'/>
596 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/>
597 <return type='char *' info='the I/O tunables value or None in case of error'/>
599 <function name='virDomainBlockPeek' file='python'>
600 <info>Read the contents of domain's disk device</info>
601 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
602 <arg name='disk' type='const char *' info='disk name'/>
603 <arg name='offset' type='unsigned long long' info='offset within block device'/>
604 <arg name='size' type='size_t' info='size to read'/>
605 <arg name='flags' type='unsigned int' info='unused, always pass 0'/>
606 <return type='char *' info='the returned buffer or None in case of error'/>
608 <function name='virDomainMemoryPeek' file='python'>
609 <info>Read the contents of domain's memory</info>
610 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
611 <arg name='start' type='unsigned long long' info='start of memory to peek'/>
612 <arg name='size' type='size_t' info='size of memory to peek'/>
613 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainMemoryFlags'/>
614 <return type='char *' info='the returned buffer or None in case of error'/>
616 <function name='virDomainGetDiskErrors' file='python'>
617 <info>Extract errors on disk devices.</info>
618 <return type='char *' info='dictionary of disks and their errors or None in case of error'/>
619 <arg name='domain' type='virDomainPtr' info='a domain object'/>
620 <arg name='flags' type='unsigned int' info='unused, always pass 0'/>
622 <function name='virNodeSetMemoryParameters' file='python'>
623 <info>Change the node memory tunables</info>
624 <return type='int' info='-1 in case of error, 0 in case of success.'/>
625 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
626 <arg name='params' type='virTypedParameterPtr' info='pointer to the memory tunable objects'/>
627 <arg name='flags' type='int' info='unused, always pass 0'/>
629 <function name='virNodeGetMemoryParameters' file='python'>
630 <info>Get the node memory parameters</info>
631 <return type='char *' info='None in case of error, returns a dictionary of params'/>
632 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
633 <arg name='flags' type='int' info='unused, always pass 0'/>
635 <function name='virNodeGetCPUMap' file='python'>
636 <info>Get node CPU information</info>
637 <return type='char *' info='(cpunum, cpumap, online) on success, None on error'/>
638 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
639 <arg name='flags' type='int' info='unused, pass 0'/>
641 <function name="virNodeGetFreePages" file='python'>
642 <info>Returns the number of available pages for a list of cells and page sizes</info>
643 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
644 <arg name='pages' type='char *' info='list of desired page sizes'/>
645 <arg name='startCell' type='int' info='first cell in the list'/>
646 <arg name='maxCells' type='int' info='number of cell in the list'/>
647 <arg name='flags' type='int' info='unused, pass 0'/>
648 <return type='char *' info='the list available memory in the cells'/>
650 <function name="virNetworkGetDHCPLeases" file='python'>
651 <info>Returns a list of dhcp leases for interfaces connected to the given virtual network</info>
652 <arg name='network' type='virNetworkPtr' info='a network object'/>
653 <arg name='mac' type='const char *' info='optional mac address'/>
654 <arg name='flags' type='unsigned int' info='unused, pass 0'/>
655 <return type='char *' info="list of leases"/>
657 <function name="virDomainBlockCopy" file="python">
658 <info>Copy the guest-visible contents of a disk image to a new file described by destxml</info>
659 <arg name='dom' type='virDomainPtr' info='pointer to domain object'/>
660 <arg name='disk' type='const char *' info='path to the block device, or device shorthand'/>
661 <arg name='destxml' type='const char *' info='XML description of the copy destination'/>
662 <arg name='params' type='virTypedParameterPtr' info='optional pointer to block copy parameter object, or NULL'/>
663 <arg name='flags' type='unsigned int' info='bitwise-OR of virDomainBlockCopyFlags'/>
664 <return type='int' info='0 if the operation has started, -1 on failure'/>
666 <function name="virNodeAllocPages" file='python'>
667 <info>Allocate or free some pages in the huge pages pool</info>
668 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
669 <arg name='pages' type='char *' info='dictionary of desired page sizes, key is page size, value is page count'/>
670 <arg name='startCell' type='int' info='optional first cell in the list'/>
671 <arg name='cellCount' type='int' info='optional number of cell in the list'/>
672 <arg name='flags' type='unsigned int' info='an OR'ed set of virNodeAllocPagesFlags'/>
673 <return type='int' info='the number of nodes successfully adjusted or -1 in case of an error'/>
675 <function name="virDomainGetFSInfo" file='python'>
676 <info>Get a list of mapping information for each mounted file systems within the specified guest and the disks.</info>
677 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
678 <arg name='flags' type='unsigned int' info='unused, pass 0'/>
679 <return type='char *' info="list of mounted filesystems information"/>
681 <function name='virDomainInterfaceAddresses' file='python'>
682 <info>returns a dictionary of domain interfaces along with their MAC and IP addresses</info>
683 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
684 <arg name='source' type='unsigned int' info='the data source'/>
685 <arg name='flags' type='unsigned int' info='extra flags; not used yet, so callers should always pass 0'/>
686 <return type='char *' info="dictionary of domain interfaces along with their MAC and IP addresses"/>