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.</info>
243 <return type='char *' info='None in case of error, returns a tuple of vcpu info and vcpu map.'/>
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='virDomainSetIOThreadParams' file='python'>
296 <info>Dynamically allow changing the IOThread polling related parameters. This function requires privileged access to the hypervisor.</info>
297 <return type='int' info='0 in case of success, -1 in case of failure.'/>
298 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
299 <arg name='iothread_val' type='unsigned int' info='iothread_id number'/>
300 <arg name='params' type='virTypedParameterPtr' info='pointer to IOThread polling parameter objects'/>
301 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
303 <function name='virDomainSetSchedulerParameters' file='python'>
304 <info>Change the scheduler parameters</info>
305 <return type='int' info='-1 in case of error, 0 in case of success.'/>
306 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
307 <arg name='params' type='virSchedParameterPtr' info='pointer to scheduler parameter objects'/>
309 <function name='virDomainSetSchedulerParametersFlags' file='python'>
310 <info>Change the scheduler parameters</info>
311 <return type='int' info='-1 in case of error, 0 in case of success.'/>
312 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
313 <arg name='params' type='virSchedParameterPtr' info='pointer to scheduler parameter objects'/>
314 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
316 <function name='virDomainSetBlkioParameters' file='python'>
317 <info>Change the blkio tunables</info>
318 <return type='int' info='-1 in case of error, 0 in case of success.'/>
319 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
320 <arg name='params' type='virBlkioParameterPtr' info='pointer to blkio tunable objects'/>
321 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
323 <function name='virDomainGetBlkioParameters' file='python'>
324 <info>Get the blkio parameters</info>
325 <return type='char *' info='None in case of error, returns a dictionary of params'/>
326 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
327 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
329 <function name='virDomainSetMemoryParameters' file='python'>
330 <info>Change the memory tunables</info>
331 <return type='int' info='-1 in case of error, 0 in case of success.'/>
332 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
333 <arg name='params' type='virMemoryParameterPtr' info='pointer to memory tunable objects'/>
334 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
336 <function name='virDomainGetMemoryParameters' file='python'>
337 <info>Get the memory parameters</info>
338 <return type='char *' info='None in case of error, returns a dictionary of params'/>
339 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
340 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
342 <function name='virDomainSetNumaParameters' file='python'>
343 <info>Change the NUMA tunables</info>
344 <return type='int' info='-1 in case of error, 0 in case of success.'/>
345 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
346 <arg name='params' type='virTypedParameterPtr' info='pointer to numa tunable objects'/>
347 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
349 <function name='virDomainGetNumaParameters' file='python'>
350 <info>Get the NUMA parameters</info>
351 <return type='char *' info='returns a dictionary of params in case of success, None in case of error'/>
352 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
353 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
355 <function name='virDomainGetPerfEvents' file='python'>
356 <info>Get all perf events setting.</info>
357 <return type='char *' info='returns a dictionary of params in case of success, None in case of error'/>
358 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
359 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
361 <function name='virDomainSetPerfEvents' file='python'>
362 <info>Enable or disable the particular list of perf events</info>
363 <return type='int' info='-1 in case of error, 0 in case of success.'/>
364 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
365 <arg name='params' type='virTypedParameterPtr' info='pointer to perf events parameter object'/>
366 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
368 <function name='virDomainSetInterfaceParameters' file='python'>
369 <info>Change the bandwidth tunables for a interface device</info>
370 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
371 <arg name='device' type='const char *' info='interface name'/>
372 <arg name='params' type='virTypedParameterPtr' info='Pointer to bandwidth tuning params object'/>
373 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/>
374 <return type='int' info='0 in case of success, -1 in case of failure'/>
376 <function name='virDomainGetInterfaceParameters' file='python'>
377 <info>Get the bandwidth tunables for a interface device</info>
378 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
379 <arg name='device' type='const char *' info='interface name'/>
380 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/>
381 <return type='char *' info='the bandwidth tunables value or None in case of error'/>
384 <function name='virConnectListStoragePools' file='python'>
385 <info>list the storage pools, stores the pointers to the names in @names</info>
386 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
387 <return type='char *' info='the list of Names of None in case of error'/>
389 <function name='virConnectListDefinedStoragePools' file='python'>
390 <info>list the defined storage pool, stores the pointers to the names in @names</info>
391 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
392 <return type='char *' info='the list of Names of None in case of error'/>
394 <function name='virConnectListAllStoragePools' file='python'>
395 <info>returns list of all storage pools</info>
396 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
397 <arg name='flags' type='unsigned int' info='optional flags'/>
398 <return type='char *' info='the list of pools or None in case of error'/>
400 <function name='virStoragePoolListVolumes' file='python'>
401 <info>list the storage volumes, stores the pointers to the names in @names</info>
402 <arg name='pool' type='virStoragePoolPtr' info='pointer to the storage pool'/>
403 <return type='char *' info='the list of Names or None in case of error'/>
405 <function name='virStoragePoolListAllVolumes' file='python'>
406 <info>return list of storage volume objects</info>
407 <arg name='pool' type='virStoragePoolPtr' info='pointer to the storage pool'/>
408 <arg name='flags' type='unsigned int' info='optional flags'/>
409 <return type='char *' info='the list of volumes or None in case of error'/>
411 <function name='virStoragePoolGetInfo' file='python'>
412 <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>
413 <return type='char *' info='the list of information or None in case of error'/>
414 <arg name='pool' type='virStoragePoolPtr' info='a storage pool object'/>
416 <function name='virStorageVolGetInfo' file='python'>
417 <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>
418 <return type='char *' info='the list of information or None in case of error'/>
419 <arg name='vol' type='virStorageVolPtr' info='a storage vol object'/>
421 <function name='virStorageVolGetInfoFlags' file='python'>
422 <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>
423 <return type='char *' info='the list of information or None in case of error'/>
424 <arg name='vol' type='virStorageVolPtr' info='a storage vol object'/>
425 <arg name='flags' type='unsigned int' info='bitwise-OR of virStorageVolInfoFlags'/>
427 <function name='virNodeListDevices' file='python'>
428 <info>list the node devices</info>
429 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
430 <arg name='cap' type='const unsigned char *' info='capability name'/>
431 <arg name='flags' type='unsigned int' info='flags (unused; pass 0)'/>
432 <return type='char *' info='the list of Names or None in case of error'/>
434 <function name='virConnectListAllNodeDevices' file='python'>
435 <info>returns list of all host node devices</info>
436 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
437 <arg name='flags' type='unsigned int' info='optional flags'/>
438 <return type='char *' info='the list of host node device or None in case of error'/>
440 <function name='virNodeDeviceListCaps' file='python'>
441 <info>list the node device's capabilities</info>
442 <arg name='dev' type='virNodeDevicePtr' info='pointer to the node device'/>
443 <return type='char *' info='the list of Names or None in case of error'/>
445 <function name='virSecretGetValue' file='libvirt' module='libvirt'>
446 <info>Fetches the value associated with a secret.</info>
447 <return type='char *' info='the secret value or None in case of error'/>
448 <arg name='secret' type='virSecretPtr' info='virSecret secret'/>
449 <arg name='flags' type='unsigned int' info='flags (unused; pass 0)'/>
451 <function name='virConnectListSecrets' file='libvirt' module='libvirt'>
452 <info>List the defined secret IDs</info>
453 <arg name='conn' type='virConnectPtr' info='virConnect connection'/>
454 <return type='char *' info='the list of secret IDs or None in case of error'/>
456 <function name='virConnectListAllSecrets' file='python'>
457 <info>returns list of all interfaces</info>
458 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
459 <arg name='flags' type='unsigned int' info='optional flags'/>
460 <return type='char *' info='the list of secrets or None in case of error'/>
462 <function name='virSecretSetValue' file='libvirt' module='libvirt'>
463 <info>Associates a value with a secret.</info>
464 <return type='int' info='0 on success, -1 on failure.'/>
465 <arg name='secret' type='virSecretPtr' info='virSecret secret'/>
466 <arg name='value' type='const char *' info='The secret value'/>
467 <arg name='flags' type='unsigned int' info='flags (unused; pass 0)'/>
469 <function name='virSecretLookupByUUID' file='python'>
470 <info>Try to lookup a secret on the given hypervisor based on its UUID.</info>
471 <return type='virSecretPtr' info='a new secret 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='virSecretGetUUID' file='python'>
476 <info>Extract the UUID unique Identifier of a secret.</info>
477 <return type='char *' info='the 16 bytes string or None in case of error'/>
478 <arg name='secret' type='virSecretPtr' info='a secret object'/>
480 <function name='virSecretGetUUIDString' file='python'>
481 <info>Fetch globally unique ID of the secret as a string.</info>
482 <return type='char *' info='the UUID string or None in case of error'/>
483 <arg name='secret' type='virSecretPtr' info='a secret object'/>
485 <function name='virConnectListNWFilters' file='libvirt' module='libvirt'>
486 <info>List the defined network filters</info>
487 <arg name='conn' type='virConnectPtr' info='virConnect connection'/>
488 <return type='char *' info='the list of network filter IDs or None in case of error'/>
490 <function name='virConnectListAllNWFilters' file='python'>
491 <info>returns list of all network fitlers</info>
492 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
493 <arg name='flags' type='unsigned int' info='optional flags'/>
494 <return type='char *' info='the list of network filters or None in case of error'/>
496 <function name='virConnectListAllNWFilterBindings' file='python'>
497 <info>returns list of all network fitler bindings</info>
498 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
499 <arg name='flags' type='unsigned int' info='optional flags'/>
500 <return type='char *' info='the list of network filter bindings or None in case of error'/>
502 <function name='virNWFilterLookupByUUID' file='python'>
503 <info>Try to lookup a network filter on the given hypervisor based on its UUID.</info>
504 <return type='virNWFilterPtr' info='a new network filter object or NULL in case of failure'/>
505 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
506 <arg name='uuid' type='const unsigned char *' info='the UUID string for the secret, must be 16 bytes'/>
508 <function name='virNWFilterGetUUID' file='python'>
509 <info>Extract the UUID unique Identifier of a network filter.</info>
510 <return type='char *' info='the 16 bytes string or None in case of error'/>
511 <arg name='nwfilter' type='virNWFilterPtr' info='a network filter object'/>
513 <function name='virNWFilterGetUUIDString' file='python'>
514 <info>Fetch globally unique ID of the network filter as a string.</info>
515 <return type='char *' info='the UUID string or None in case of error'/>
516 <arg name='nwfilter' type='virNWFilterPtr' info='a network filter object'/>
518 <function name='virConnectListInterfaces' file='python'>
519 <info>list the running interfaces, stores the pointers to the names in @names</info>
520 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
521 <return type='char *' info='the list of Names of None in case of error'/>
523 <function name='virConnectListDefinedInterfaces' file='python'>
524 <info>list the defined interfaces, stores the pointers to the names in @names</info>
525 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
526 <return type='char *' info='the list of Names of None in case of error'/>
528 <function name='virConnectListAllInterfaces' file='python'>
529 <info>returns list of all interfaces</info>
530 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
531 <arg name='flags' type='unsigned int' info='optional flags'/>
532 <return type='char *' info='the list of interfaces or None in case of error'/>
534 <function name='virConnectBaselineCPU' file='python'>
535 <info>Computes the most feature-rich CPU which is compatible with all given host CPUs.</info>
536 <return type='char *' info='XML description of the computed CPU or NULL on error.'/>
537 <arg name='conn' type='virConnectPtr' info='virConnect connection'/>
538 <arg name='xmlCPUs' type='const char **' info='array of XML descriptions of host CPUs'/>
539 <arg name='flags' type='unsigned int' info='fine-tuning flags, currently unused, pass 0.'/>
541 <function name='virConnectGetCPUModelNames' file='python'>
542 <info>Get the list of supported CPU models.</info>
543 <return type='char *' info='list of supported CPU models'/>
544 <arg name='conn' type='virConnectPtr' info='virConnect connection'/>
545 <arg name='arch' type='const char *' info='arch'/>
546 <arg name='flags' type='unsigned int' info='fine-tuning flags, currently unused, pass 0.'/>
548 <function name='virDomainSnapshotListNames' file='python'>
549 <info>collect the list of snapshot names for the given domain</info>
550 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
551 <arg name='flags' type='unsigned int' info='flags'/>
552 <return type='char *' info='the list of Names or None in case of error'/>
554 <function name='virDomainListAllSnapshots' file='python'>
555 <info>returns the list of snapshots for the given domain</info>
556 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
557 <arg name='flags' type='unsigned int' info='flags'/>
558 <return type='char *' info='the list of snapshots or None in case of error'/>
560 <function name='virDomainSnapshotListChildrenNames' file='python'>
561 <info>collect the list of child snapshot names for the given snapshot</info>
562 <arg name='snapshot' type='virDomainSnapshotPtr' info='pointer to the snapshot'/>
563 <arg name='flags' type='unsigned int' info='flags'/>
564 <return type='char *' info='the list of Names or None in case of error'/>
566 <function name='virDomainSnapshotListAllChildren' file='python'>
567 <info>returns the list of child snapshots for the given snapshot</info>
568 <arg name='snapshot' type='virDomainSnapshotPtr' info='pointer to the snapshot'/>
569 <arg name='flags' type='unsigned int' info='flags'/>
570 <return type='char *' info='the list of snapshots or None in case of error'/>
572 <function name='virDomainRevertToSnapshot' file='python'>
573 <info>revert the domain to the given snapshot</info>
574 <arg name='dom' type='virDomainPtr' info='dummy domain pointer'/>
575 <arg name='snap' type='virDomainSnapshotPtr' info='pointer to the snapshot'/>
576 <arg name='flags' type='unsigned int' info='flags'/>
577 <return type='int' info="0 on success, -1 on error"/>
579 <function name='virDomainGetBlockJobInfo' file='python'>
580 <info>Get progress information for a block job</info>
581 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
582 <arg name='path' type='const char *' info='Fully-qualified filename of disk'/>
583 <arg name='flags' type='unsigned int' info='fine-tuning flags, currently unused, pass 0.'/>
584 <return type='char *' info='A dictionary containing job information.' />
586 <function name='virDomainMigrateGetCompressionCache' file='python'>
587 <info>Get current size of the cache (in bytes) used for compressing
588 repeatedly transferred memory pages during live migration.</info>
589 <arg name='domain' type='virDomainPtr' info='a domain object'/>
590 <arg name='flags' type='unsigned int' info='flags, currently unused, pass 0.'/>
591 <return type='unsigned long long' info='current cache size, or None in case of error'/>
593 <function name='virDomainMigrateGetMaxSpeed' file='python'>
594 <info>Get currently configured maximum migration speed for a domain</info>
595 <arg name='domain' type='virDomainPtr' info='a domain object'/>
596 <arg name='flags' type='unsigned int' info='flags, currently unused, pass 0.'/>
597 <return type='unsigned long' info='current max migration speed, or None in case of error'/>
599 <function name='virDomainMigrateGetMaxDowntime' file='python'>
600 <info>Get the current value of the maximum downtime (in milliseconds)
601 allowed during a migration of a guest.</info>
602 <arg name='domain' type='virDomainPtr' info='a domain object'/>
603 <arg name='flags' type='unsigned int' info='flags, currently unused, pass 0.'/>
604 <return type='unsigned long long' info='current downtime or None in case of error'/>
606 <function name='virDomainMigrate3' file='python'>
607 <info>Migrate the domain object from its current host to the destination host
608 given by dconn (a connection to the destination host).</info>
609 <arg name='domain' type='virDomainPtr' info='a domain object'/>
610 <arg name='dconn' type='virConnectPtr' info='pointer to the destination host connection'/>
611 <arg name='params' type='char *' info='dictionary with migration parameters'/>
612 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainMigrateFlags'/>
613 <return type='virDomainPtr' info='a new domain object or NULL in case of failure'/>
615 <function name='virDomainMigrateToURI3' file='python'>
616 <info>Migrate the domain object from its current host to the destination host
618 <arg name='domain' type='virDomainPtr' info='a domain object'/>
619 <arg name='dconnuri' type='char *' info='URI for target libvirtd if @flags includes VIR_MIGRATE_PEER2PEER'/>
620 <arg name='params' type='char *' info='dictionary with migration parameters'/>
621 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainMigrateFlags'/>
622 <return type='int' info='0 in case of success, -1 in case of failure.'/>
624 <function name='virDomainSetBlockIoTune' file='python'>
625 <info>Change the I/O tunables for a block device</info>
626 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
627 <arg name='disk' type='const char *' info='disk name'/>
628 <arg name='params' type='virTypedParameterPtr' info='Pointer to blkio tuning params object'/>
629 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/>
630 <return type='int' info='0 in case of success, -1 in case of failure'/>
632 <function name='virDomainGetBlockIoTune' file='python'>
633 <info>Get the I/O tunables for a block device</info>
634 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
635 <arg name='disk' type='const char *' info='disk name'/>
636 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/>
637 <return type='char *' info='the I/O tunables value or None in case of error'/>
639 <function name='virDomainBlockPeek' file='python'>
640 <info>Read the contents of domain's disk device</info>
641 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
642 <arg name='disk' type='const char *' info='disk name'/>
643 <arg name='offset' type='unsigned long long' info='offset within block device'/>
644 <arg name='size' type='size_t' info='size to read'/>
645 <arg name='flags' type='unsigned int' info='unused, always pass 0'/>
646 <return type='char *' info='the returned buffer or None in case of error'/>
648 <function name='virDomainMemoryPeek' file='python'>
649 <info>Read the contents of domain's memory</info>
650 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
651 <arg name='start' type='unsigned long long' info='start of memory to peek'/>
652 <arg name='size' type='size_t' info='size of memory to peek'/>
653 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainMemoryFlags'/>
654 <return type='char *' info='the returned buffer or None in case of error'/>
656 <function name='virDomainGetDiskErrors' file='python'>
657 <info>Extract errors on disk devices.</info>
658 <return type='char *' info='dictionary of disks and their errors or None in case of error'/>
659 <arg name='domain' type='virDomainPtr' info='a domain object'/>
660 <arg name='flags' type='unsigned int' info='unused, always pass 0'/>
662 <function name='virNodeSetMemoryParameters' file='python'>
663 <info>Change the node memory tunables</info>
664 <return type='int' info='-1 in case of error, 0 in case of success.'/>
665 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
666 <arg name='params' type='virTypedParameterPtr' info='pointer to the memory tunable objects'/>
667 <arg name='flags' type='int' info='unused, always pass 0'/>
669 <function name='virNodeGetMemoryParameters' file='python'>
670 <info>Get the node memory parameters</info>
671 <return type='char *' info='None in case of error, returns a dictionary of params'/>
672 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
673 <arg name='flags' type='int' info='unused, always pass 0'/>
675 <function name='virNodeGetCPUMap' file='python'>
676 <info>Get node CPU information</info>
677 <return type='char *' info='(cpunum, cpumap, online) on success, None on error'/>
678 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
679 <arg name='flags' type='int' info='unused, pass 0'/>
681 <function name="virNodeGetFreePages" file='python'>
682 <info>Returns the number of available pages for a list of cells and page sizes</info>
683 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
684 <arg name='pages' type='char *' info='list of desired page sizes'/>
685 <arg name='startCell' type='int' info='first cell in the list'/>
686 <arg name='maxCells' type='int' info='number of cell in the list'/>
687 <arg name='flags' type='int' info='unused, pass 0'/>
688 <return type='char *' info='the list available memory in the cells'/>
690 <function name="virNetworkGetDHCPLeases" file='python'>
691 <info>Returns a list of dhcp leases for interfaces connected to the given virtual network</info>
692 <arg name='network' type='virNetworkPtr' info='a network object'/>
693 <arg name='mac' type='const char *' info='optional mac address'/>
694 <arg name='flags' type='unsigned int' info='unused, pass 0'/>
695 <return type='char *' info="list of leases"/>
697 <function name="virDomainBlockCopy" file="python">
698 <info>Copy the guest-visible contents of a disk image to a new file described by destxml</info>
699 <arg name='dom' type='virDomainPtr' info='pointer to domain object'/>
700 <arg name='disk' type='const char *' info='path to the block device, or device shorthand'/>
701 <arg name='destxml' type='const char *' info='XML description of the copy destination'/>
702 <arg name='params' type='virTypedParameterPtr' info='optional pointer to block copy parameter object, or NULL'/>
703 <arg name='flags' type='unsigned int' info='bitwise-OR of virDomainBlockCopyFlags'/>
704 <return type='int' info='0 if the operation has started, -1 on failure'/>
706 <function name="virNodeAllocPages" file='python'>
707 <info>Allocate or free some pages in the huge pages pool</info>
708 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
709 <arg name='pages' type='char *' info='dictionary of desired page sizes, key is page size, value is page count'/>
710 <arg name='startCell' type='int' info='optional first cell in the list'/>
711 <arg name='cellCount' type='int' info='optional number of cell in the list'/>
712 <arg name='flags' type='unsigned int' info='an OR'ed set of virNodeAllocPagesFlags'/>
713 <return type='int' info='the number of nodes successfully adjusted or -1 in case of an error'/>
715 <function name="virDomainGetFSInfo" file='python'>
716 <info>Get a list of mapping information for each mounted file systems within the specified guest and the disks.</info>
717 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
718 <arg name='flags' type='unsigned int' info='unused, pass 0'/>
719 <return type='char *' info="list of mounted filesystems information"/>
721 <function name='virDomainInterfaceAddresses' file='python'>
722 <info>returns a dictionary of domain interfaces along with their MAC and IP addresses</info>
723 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
724 <arg name='source' type='unsigned int' info='the data source'/>
725 <arg name='flags' type='unsigned int' info='extra flags; not used yet, so callers should always pass 0'/>
726 <return type='char *' info="dictionary of domain interfaces along with their MAC and IP addresses"/>
728 <function name='virDomainGetGuestVcpus' file='python'>
729 <info>returns a dictionary containing information regarding guest vcpus</info>
730 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
731 <arg name='flags' type='unsigned int' info='extra flags; not used yet, so callers should always pass 0'/>
732 <return type='int' info="dictionary of vcpu data returned by the guest agent"/>
734 <function name='virConnectBaselineHypervisorCPU' file='python'>
735 <info>Computes the most feature-rich CPU which is compatible with all given CPUs and can be provided by the specified hypervisor.</info>
736 <return type='char *' info='XML description of the computed CPU or NULL on error.'/>
737 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
738 <arg name='emulator' type='const char *' info='path to the emulator binary'/>
739 <arg name='arch' type='const char *' info='CPU architecture'/>
740 <arg name='machine' type='const char *' info='machine type'/>
741 <arg name='virttype' type='const char *' info='virtualization type'/>
742 <arg name='xmlCPUs' type='const char **' info='array of XML descriptions of CPUs'/>
743 <arg name='flags' type='unsigned int' info='bitwise-OR of virConnectBaselineCPUFlags'/>
745 <function name='virDomainGetLaunchSecurityInfo' file='python'>
746 <info>Get launch security info for a domain</info>
747 <return type='char *' info='None in case of error, returns a dictionary of params'/>
748 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
749 <arg name='flags' type='int' info='unused, always pass 0'/>
751 <function name='virNodeGetSEVInfo' file='python'>
752 <info>Get platform specific information from the SEV firmware</info>
753 <return type='char *' info='None in case of error, returns a dictionary of params'/>
754 <arg name='conn' type='virConnectPtr' info='pointer to hypervisor connection'/>
755 <arg name='flags' type='int' info='unused, always pass 0'/>
757 <function name='virConnectGetDomainCapabilities' file='libvirt-domain' module='libvirt-domain'>
758 <info>Query domain capabilities</info>
759 <return type='char *' info='NULL in case of error or an XML string defining the capabilities.'/>
760 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
761 <arg name='emulatorbin' type='const char *' info='optional path to emulator'/>
762 <arg name='arch' type='const char *' info='optional domain architecture'/>
763 <arg name='machine' type='const char *' info='optional machine type'/>
764 <arg name='virttype' type='const char *' info='optional virtualization type'/>
765 <arg name='flags' type='int' info='unused, always pass 0'/>
767 <function name='virNetworkPortSetParameters' file='python'>
768 <info>Change the port tunables</info>
769 <return type='int' info='-1 in case of error, 0 in case of success.'/>
770 <arg name='port' type='virNetworkPortPtr' info='pointer to network port object'/>
771 <arg name='params' type='virTypedParameterPtr' info='pointer to tunable objects'/>
772 <arg name='flags' type='int' info='unused, always pass 0'/>
774 <function name='virNetworkPortGetParameters' file='python'>
775 <info>Get the port parameters</info>
776 <return type='char *' info='None in case of error, returns a dictionary of params'/>
777 <arg name='port' type='virNetworkPortPtr' info='pointer to network port object'/>
778 <arg name='flags' type='int' info='unused, always pass 0'/>