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.</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='virNodeGetCPUStats' file='python'>
108 <info>Extract node's CPU statistics.</info>
109 <return type='char *' info='dictionary mapping field names to values or None in case of error'/>
110 <arg name='conn' type='virConnectPtr' info='pointer to hypervisor connection'/>
111 <arg name='cpuNum' type='int' info='number of node cpu. (VIR_NODE_CPU_STATS_ALL_CPUS means total cpu statistics)'/>
112 <arg name='flags' type='unsigned int' info='additional flags'/>
114 <function name='virNodeGetMemoryStats' file='python'>
115 <info>Extract node's memory statistics.</info>
116 <return type='char *' info='dictionary mapping field names to values or None in case of error'/>
117 <arg name='conn' type='virConnectPtr' info='pointer to hypervisor connection'/>
118 <arg name='cellNum' type='int' info='number of node cell. (VIR_NODE_MEMORY_STATS_ALL_CELLS means total cell statistics)'/>
119 <arg name='flags' type='unsigned int' info='additional flags'/>
121 <function name='virDomainGetUUID' file='python'>
122 <info>Extract the UUID unique Identifier of a domain.</info>
123 <return type='char *' info='the 16 bytes string or None in case of error'/>
124 <arg name='domain' type='virDomainPtr' info='a domain object'/>
126 <function name='virDomainGetUUIDString' file='python'>
127 <info>Fetch globally unique ID of the domain as a string.</info>
128 <return type='char *' info='the UUID string or None in case of error'/>
129 <arg name='pool' type='virDomainPtr' info='a domain object'/>
131 <function name='virNetworkGetUUID' file='python'>
132 <info>Extract the UUID unique Identifier of a network.</info>
133 <return type='char *' info='the 16 bytes string or None in case of error'/>
134 <arg name='domain' type='virNetworkPtr' info='a network object'/>
136 <function name='virNetworkGetUUIDString' file='python'>
137 <info>Fetch globally unique ID of the network as a string.</info>
138 <return type='char *' info='the UUID string or None in case of error'/>
139 <arg name='net' type='virNetworkPtr' info='a network object'/>
141 <function name='virStoragePoolGetUUID' file='python'>
142 <info>Extract the UUID unique Identifier of a storage pool.</info>
143 <return type='char *' info='the 16 bytes string or None in case of error'/>
144 <arg name='pool' type='virStoragePoolPtr' info='a storage pool object'/>
146 <function name='virStoragePoolGetUUIDString' file='python'>
147 <info>Fetch globally unique ID of the storage pool as a string.</info>
148 <return type='char *' info='the UUID string or None in case of error'/>
149 <arg name='pool' type='virStoragePoolPtr' info='a storage pool object'/>
151 <function name='virNetworkGetAutostart' file='python'>
152 <info>Extract the autostart flag for a network.</info>
153 <return type='int' info='the autostart flag, or None in case of error'/>
154 <arg name='domain' type='virNetworkPtr' info='a network object'/>
156 <function name='virDomainGetAutostart' file='python'>
157 <info>Extract the autostart flag for a domain</info>
158 <return type='int' info='the autostart flag, or None in case of error'/>
159 <arg name='domain' type='virDomainPtr' info='a network object'/>
161 <function name='virStoragePoolGetAutostart' file='python'>
162 <info>Extract the autostart flag for a storage pool</info>
163 <return type='int' info='the autostart flag, or None in case of error'/>
164 <arg name='pool' type='virStoragePoolPtr' info='a storage pool object'/>
166 <function name='virDomainBlockStats' file='python'>
167 <info>Extracts block device statistics for a domain</info>
168 <return type='char *' info='a tuple of statistics'/>
169 <arg name='domain' type='virDomainPtr' info='a domain object'/>
170 <arg name='path' type='char *' info='the path for the block device'/>
172 <function name='virDomainBlockStatsFlags' file='python'>
173 <info>Extracts block device statistics parameters of a running domain</info>
174 <return type='char *' info='None in case of error, returns a dictionary of params'/>
175 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
176 <arg name='path' type='char *' info='the path for the block device'/>
177 <arg name='flags' type='int' info='flags (unused; pass 0)'/>
179 <function name='virDomainGetCPUStats' file='python'>
180 <info>Extracts CPU statistics for a running domain. On success it will
181 return a list of data of dictionary type. If boolean total is False or 0, the
182 first element of the list refers to CPU0 on the host, second element is
183 CPU1, and so on. The format of data struct is as follows:
184 [{cpu_time:xxx}, {cpu_time:xxx}, ...]
185 If it is True or 1, it returns total domain CPU statistics in the format of
186 [{cpu_time:xxx, user_time:xxx, system_time:xxx}]</info>
187 <return type='char *' info='returns a list of dictionary in case of success, None in case of error'/>
188 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
189 <arg name='total' type='bool' info='on true, return total domain CPU statistics, false return per-cpu info'/>
190 <arg name='flags' type='int' info='flags (unused; pass 0)'/>
192 <function name='virDomainInterfaceStats' file='python'>
193 <info>Extracts interface device statistics for a domain</info>
194 <return type='char *' info='a tuple of statistics'/>
195 <arg name='domain' type='virDomainPtr' info='a domain object'/>
196 <arg name='path' type='char *' info='the path for the interface device'/>
198 <function name='virDomainMemoryStats' file='python'>
199 <info>Extracts memory statistics for a domain</info>
200 <return type='char *' info='a dictionary of statistics'/>
201 <arg name='domain' type='virDomainPtr' info='a domain object'/>
203 <function name="virNodeGetCellsFreeMemory" file='python'>
204 <info>Returns the available memory for a list of cells</info>
205 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
206 <arg name='startCell' type='int' info='first cell in the list'/>
207 <arg name='maxCells' type='int' info='number of cell in the list'/>
208 <return type='char *' info="the list available memory in the cells"/>
210 <function name='virDomainGetSchedulerParameters' file='python'>
211 <info>Get the scheduler parameters, the @params array will be filled with the values.</info>
212 <return type='char *' info='None in case of error, returns a dictionary of params.'/>
213 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
215 <function name='virDomainGetSchedulerParametersFlags' file='python'>
216 <info>Get the scheduler parameters</info>
217 <return type='char *' info='None in case of error, returns a dictionary of params'/>
218 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
219 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
221 <function name='virDomainGetSchedulerType' file='python'>
222 <info>Get the scheduler type.</info>
223 <return type='char *' info='NULL in case of error. The caller must free the returned string.'/>
224 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
226 <function name='virDomainGetVcpus' file='python'>
227 <info>Extract information about virtual CPUs of domain, store it in info array and also in cpumaps if this pointer is'nt NULL.</info>
228 <return type='int' info='the number of info filled in case of success, -1 in case of failure.'/>
229 <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
231 <function name='virDomainPinVcpu' file='python'>
232 <info>Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires privileged access to the hypervisor.</info>
233 <return type='int' info='0 in case of success, -1 in case of failure.'/>
234 <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
235 <arg name='vcpu' type='unsigned int' info='virtual CPU number'/>
236 <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.'/>
238 <function name='virDomainPinVcpuFlags' file='python'>
239 <info>Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires privileged access to the hypervisor.</info>
240 <return type='int' info='0 in case of success, -1 in case of failure.'/>
241 <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
242 <arg name='vcpu' type='unsigned int' info='virtual CPU number'/>
243 <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.'/>
244 <arg name='flags' type='int' info='flags to specify'/>
246 <function name='virDomainGetVcpuPinInfo' file='python'>
247 <info>Query the CPU affinity setting of all virtual CPUs of domain</info>
248 <return type='char *' info='the array of cpumap'/>
249 <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
250 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
252 <function name='virDomainGetEmulatorPinInfo' file='python'>
253 <info>Query the CPU affinity setting of the emulator process of domain</info>
254 <return type='char *' info='the array of cpumap'/>
255 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
256 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
258 <function name='virDomainPinEmulator' file='python'>
259 <info>Dynamically change the real CPUs which can be allocated to the emulator process of a domain.
260 This function requires privileged access to the hypervisor.</info>
261 <return type='int' info='0 in case of success, -1 in case of failure.'/>
262 <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
263 <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.'/>
264 <arg name='flags' type='int' info='flags to specify'/>
266 <function name='virDomainSetSchedulerParameters' file='python'>
267 <info>Change the scheduler parameters</info>
268 <return type='int' info='-1 in case of error, 0 in case of success.'/>
269 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
270 <arg name='params' type='virSchedParameterPtr' info='pointer to scheduler parameter objects'/>
272 <function name='virDomainSetSchedulerParametersFlags' file='python'>
273 <info>Change the scheduler parameters</info>
274 <return type='int' info='-1 in case of error, 0 in case of success.'/>
275 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
276 <arg name='params' type='virSchedParameterPtr' info='pointer to scheduler parameter objects'/>
277 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
279 <function name='virDomainSetBlkioParameters' file='python'>
280 <info>Change the blkio tunables</info>
281 <return type='int' info='-1 in case of error, 0 in case of success.'/>
282 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
283 <arg name='params' type='virBlkioParameterPtr' info='pointer to blkio tunable objects'/>
284 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
286 <function name='virDomainGetBlkioParameters' file='python'>
287 <info>Get the blkio parameters</info>
288 <return type='char *' info='None in case of error, returns a dictionary of params'/>
289 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
290 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
292 <function name='virDomainSetMemoryParameters' file='python'>
293 <info>Change the memory tunables</info>
294 <return type='int' info='-1 in case of error, 0 in case of success.'/>
295 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
296 <arg name='params' type='virMemoryParameterPtr' info='pointer to memory tunable objects'/>
297 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
299 <function name='virDomainGetMemoryParameters' file='python'>
300 <info>Get the memory parameters</info>
301 <return type='char *' info='None in case of error, returns a dictionary of params'/>
302 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
303 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
305 <function name='virDomainSetNumaParameters' file='python'>
306 <info>Change the NUMA tunables</info>
307 <return type='int' info='-1 in case of error, 0 in case of success.'/>
308 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
309 <arg name='params' type='virTypedParameterPtr' info='pointer to numa tunable objects'/>
310 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
312 <function name='virDomainGetNumaParameters' file='python'>
313 <info>Get the NUMA parameters</info>
314 <return type='char *' info='returns a dictionary of params in case of success, None in case of error'/>
315 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
316 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
318 <function name='virDomainSetInterfaceParameters' file='python'>
319 <info>Change the bandwidth tunables for a interface device</info>
320 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
321 <arg name='device' type='const char *' info='interface name'/>
322 <arg name='params' type='virTypedParameterPtr' info='Pointer to bandwidth tuning params object'/>
323 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/>
324 <return type='int' info='0 in case of success, -1 in case of failure'/>
326 <function name='virDomainGetInterfaceParameters' file='python'>
327 <info>Get the bandwidth tunables for a interface device</info>
328 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
329 <arg name='device' type='const char *' info='interface name'/>
330 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/>
331 <return type='char *' info='the bandwidth tunables value or None in case of error'/>
334 <function name='virConnectListStoragePools' file='python'>
335 <info>list the storage pools, stores the pointers to the names in @names</info>
336 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
337 <return type='char *' info='the list of Names of None in case of error'/>
339 <function name='virConnectListDefinedStoragePools' file='python'>
340 <info>list the defined storage pool, stores the pointers to the names in @names</info>
341 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
342 <return type='char *' info='the list of Names of None in case of error'/>
344 <function name='virConnectListAllStoragePools' file='python'>
345 <info>returns list of all storage pools</info>
346 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
347 <arg name='flags' type='unsigned int' info='optional flags'/>
348 <return type='char *' info='the list of pools or None in case of error'/>
350 <function name='virStoragePoolListVolumes' file='python'>
351 <info>list the storage volumes, stores the pointers to the names in @names</info>
352 <arg name='pool' type='virStoragePoolPtr' info='pointer to the storage pool'/>
353 <return type='char *' info='the list of Names or None in case of error'/>
355 <function name='virStoragePoolListAllVolumes' file='python'>
356 <info>return list of storage volume objects</info>
357 <arg name='pool' type='virStoragePoolPtr' info='pointer to the storage pool'/>
358 <arg name='flags' type='unsigned int' info='optional flags'/>
359 <return type='char *' info='the list of volumes or None in case of error'/>
361 <function name='virStoragePoolGetInfo' file='python'>
362 <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>
363 <return type='char *' info='the list of information or None in case of error'/>
364 <arg name='pool' type='virStoragePoolPtr' info='a storage pool object'/>
366 <function name='virStorageVolGetInfo' file='python'>
367 <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>
368 <return type='char *' info='the list of information or None in case of error'/>
369 <arg name='vol' type='virStorageVolPtr' info='a storage vol object'/>
371 <function name='virNodeListDevices' file='python'>
372 <info>list the node devices</info>
373 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
374 <arg name='cap' type='const unsigned char *' info='capability name'/>
375 <arg name='flags' type='unsigned int' info='flags (unused; pass 0)'/>
376 <return type='char *' info='the list of Names or None in case of error'/>
378 <function name='virConnectListAllNodeDevices' file='python'>
379 <info>returns list of all host node devices</info>
380 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
381 <arg name='flags' type='unsigned int' info='optional flags'/>
382 <return type='char *' info='the list of host node device or None in case of error'/>
384 <function name='virNodeDeviceListCaps' file='python'>
385 <info>list the node device's capabilities</info>
386 <arg name='dev' type='virNodeDevicePtr' info='pointer to the node device'/>
387 <return type='char *' info='the list of Names or None in case of error'/>
389 <function name='virSecretGetValue' file='libvirt' module='libvirt'>
390 <info>Fetches the value associated with a secret.</info>
391 <return type='char *' info='the secret value or None in case of error'/>
392 <arg name='secret' type='virSecretPtr' info='virSecret secret'/>
393 <arg name='flags' type='unsigned int' info='flags (unused; pass 0)'/>
395 <function name='virConnectListSecrets' file='libvirt' module='libvirt'>
396 <info>List the defined secret IDs</info>
397 <arg name='conn' type='virConnectPtr' info='virConnect connection'/>
398 <return type='char *' info='the list of secret IDs or None in case of error'/>
400 <function name='virConnectListAllSecrets' file='python'>
401 <info>returns list of all interfaces</info>
402 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
403 <arg name='flags' type='unsigned int' info='optional flags'/>
404 <return type='char *' info='the list of secrets or None in case of error'/>
406 <function name='virSecretSetValue' file='libvirt' module='libvirt'>
407 <info>Associates a value with a secret.</info>
408 <return type='int' info='0 on success, -1 on failure.'/>
409 <arg name='secret' type='virSecretPtr' info='virSecret secret'/>
410 <arg name='value' type='const char *' info='The secret value'/>
411 <arg name='flags' type='unsigned int' info='flags (unused; pass 0)'/>
413 <function name='virSecretLookupByUUID' file='python'>
414 <info>Try to lookup a secret on the given hypervisor based on its UUID.</info>
415 <return type='virSecretPtr' info='a new secret object or NULL in case of failure'/>
416 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
417 <arg name='uuid' type='const unsigned char *' info='the UUID string for the secret, must be 16 bytes'/>
419 <function name='virSecretGetUUID' file='python'>
420 <info>Extract the UUID unique Identifier of a secret.</info>
421 <return type='char *' info='the 16 bytes string or None in case of error'/>
422 <arg name='secret' type='virSecretPtr' info='a secret object'/>
424 <function name='virSecretGetUUIDString' file='python'>
425 <info>Fetch globally unique ID of the secret as a string.</info>
426 <return type='char *' info='the UUID string or None in case of error'/>
427 <arg name='secret' type='virSecretPtr' info='a secret object'/>
429 <function name='virConnectListNWFilters' file='libvirt' module='libvirt'>
430 <info>List the defined network filters</info>
431 <arg name='conn' type='virConnectPtr' info='virConnect connection'/>
432 <return type='char *' info='the list of network filter IDs or None in case of error'/>
434 <function name='virConnectListAllNWFilters' file='python'>
435 <info>returns list of all network fitlers</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 network filters or None in case of error'/>
440 <function name='virNWFilterLookupByUUID' file='python'>
441 <info>Try to lookup a network filter on the given hypervisor based on its UUID.</info>
442 <return type='virNWFilterPtr' info='a new network filter object or NULL in case of failure'/>
443 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
444 <arg name='uuid' type='const unsigned char *' info='the UUID string for the secret, must be 16 bytes'/>
446 <function name='virNWFilterGetUUID' file='python'>
447 <info>Extract the UUID unique Identifier of a network filter.</info>
448 <return type='char *' info='the 16 bytes string or None in case of error'/>
449 <arg name='nwfilter' type='virNWFilterPtr' info='a network filter object'/>
451 <function name='virNWFilterGetUUIDString' file='python'>
452 <info>Fetch globally unique ID of the network filter as a string.</info>
453 <return type='char *' info='the UUID string or None in case of error'/>
454 <arg name='nwfilter' type='virNWFilterPtr' info='a network filter object'/>
456 <function name='virConnectListInterfaces' file='python'>
457 <info>list the running interfaces, stores the pointers to the names in @names</info>
458 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
459 <return type='char *' info='the list of Names of None in case of error'/>
461 <function name='virConnectListDefinedInterfaces' file='python'>
462 <info>list the defined interfaces, stores the pointers to the names in @names</info>
463 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
464 <return type='char *' info='the list of Names of None in case of error'/>
466 <function name='virConnectListAllInterfaces' file='python'>
467 <info>returns list of all interfaces</info>
468 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
469 <arg name='flags' type='unsigned int' info='optional flags'/>
470 <return type='char *' info='the list of interfaces or None in case of error'/>
472 <function name='virConnectBaselineCPU' file='python'>
473 <info>Computes the most feature-rich CPU which is compatible with all given host CPUs.</info>
474 <return type='char *' info='XML description of the computed CPU or NULL on error.'/>
475 <arg name='conn' type='virConnectPtr' info='virConnect connection'/>
476 <arg name='xmlCPUs' type='const char **' info='array of XML descriptions of host CPUs'/>
477 <arg name='flags' type='unsigned int' info='fine-tuning flags, currently unused, pass 0.'/>
479 <function name='virConnectGetCPUModelNames' file='python'>
480 <info>Get the list of supported CPU models.</info>
481 <return type='char *' info='list of supported CPU models'/>
482 <arg name='conn' type='virConnectPtr' info='virConnect connection'/>
483 <arg name='arch' type='const char *' info='arch'/>
484 <arg name='flags' type='unsigned int' info='fine-tuning flags, currently unused, pass 0.'/>
486 <function name='virDomainSnapshotListNames' file='python'>
487 <info>collect the list of snapshot names for the given domain</info>
488 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
489 <arg name='flags' type='unsigned int' info='flags'/>
490 <return type='char *' info='the list of Names or None in case of error'/>
492 <function name='virDomainListAllSnapshots' file='python'>
493 <info>returns the list of snapshots for the given domain</info>
494 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
495 <arg name='flags' type='unsigned int' info='flags'/>
496 <return type='char *' info='the list of snapshots or None in case of error'/>
498 <function name='virDomainSnapshotListChildrenNames' file='python'>
499 <info>collect the list of child snapshot names for the given snapshot</info>
500 <arg name='snapshot' type='virDomainSnapshotPtr' info='pointer to the snapshot'/>
501 <arg name='flags' type='unsigned int' info='flags'/>
502 <return type='char *' info='the list of Names or None in case of error'/>
504 <function name='virDomainSnapshotListAllChildren' file='python'>
505 <info>returns the list of child snapshots for the given snapshot</info>
506 <arg name='snapshot' type='virDomainSnapshotPtr' info='pointer to the snapshot'/>
507 <arg name='flags' type='unsigned int' info='flags'/>
508 <return type='char *' info='the list of snapshots or None in case of error'/>
510 <function name='virDomainRevertToSnapshot' file='python'>
511 <info>revert the domain to the given snapshot</info>
512 <arg name='dom' type='virDomainPtr' info='dummy domain pointer'/>
513 <arg name='snap' type='virDomainSnapshotPtr' info='pointer to the snapshot'/>
514 <arg name='flags' type='unsigned int' info='flags'/>
515 <return type='int' info="0 on success, -1 on error"/>
517 <function name='virDomainGetBlockJobInfo' file='python'>
518 <info>Get progress information for a block job</info>
519 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
520 <arg name='path' type='const char *' info='Fully-qualified filename of disk'/>
521 <arg name='flags' type='unsigned int' info='fine-tuning flags, currently unused, pass 0.'/>
522 <return type='char *' info='A dictionary containing job information.' />
524 <function name='virDomainMigrateGetCompressionCache' file='python'>
525 <info>Get current size of the cache (in bytes) used for compressing
526 repeatedly transferred memory pages during live migration.</info>
527 <arg name='domain' type='virDomainPtr' info='a domain object'/>
528 <arg name='flags' type='unsigned int' info='flags, currently unused, pass 0.'/>
529 <return type='unsigned long long' info='current cache size, or None in case of error'/>
531 <function name='virDomainMigrateGetMaxSpeed' file='python'>
532 <info>Get currently configured maximum migration speed for a domain</info>
533 <arg name='domain' type='virDomainPtr' info='a domain object'/>
534 <arg name='flags' type='unsigned int' info='flags, currently unused, pass 0.'/>
535 <return type='unsigned long' info='current max migration speed, or None in case of error'/>
537 <function name='virDomainMigrate3' file='python'>
538 <info>Migrate the domain object from its current host to the destination host
539 given by dconn (a connection to the destination host).</info>
540 <arg name='domain' type='virDomainPtr' info='a domain object'/>
541 <arg name='dconn' type='virConnectPtr' info='pointer to the destination host connection'/>
542 <arg name='params' type='char *' info='dictionary with migration parameters'/>
543 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainMigrateFlags'/>
544 <return type='virDomainPtr' info='a new domain object or NULL in case of failure'/>
546 <function name='virDomainMigrateToURI3' file='python'>
547 <info>Migrate the domain object from its current host to the destination host
549 <arg name='domain' type='virDomainPtr' info='a domain object'/>
550 <arg name='dconnuri' type='virConnectPtr' info='URI for target libvirtd if @flags includes VIR_MIGRATE_PEER2PEER'/>
551 <arg name='params' type='char *' info='dictionary with migration parameters'/>
552 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainMigrateFlags'/>
553 <return type='int' info='0 in case of success, -1 in case of failure.'/>
555 <function name='virDomainSetBlockIoTune' file='python'>
556 <info>Change the I/O tunables for a block device</info>
557 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
558 <arg name='disk' type='const char *' info='disk name'/>
559 <arg name='params' type='virTypedParameterPtr' info='Pointer to blkio tuning params object'/>
560 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/>
561 <return type='int' info='0 in case of success, -1 in case of failure'/>
563 <function name='virDomainGetBlockIoTune' file='python'>
564 <info>Get the I/O tunables for a block device</info>
565 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
566 <arg name='disk' type='const char *' info='disk name'/>
567 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/>
568 <return type='char *' info='the I/O tunables value or None in case of error'/>
570 <function name='virDomainBlockPeek' file='python'>
571 <info>Read the contents of domain's disk device</info>
572 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
573 <arg name='disk' type='const char *' info='disk name'/>
574 <arg name='offset' type='unsigned long long' info='offset within block device'/>
575 <arg name='size' type='size_t' info='size to read'/>
576 <arg name='flags' type='unsigned int' info='unused, always pass 0'/>
577 <return type='char *' info='the returned buffer or None in case of error'/>
579 <function name='virDomainMemoryPeek' file='python'>
580 <info>Read the contents of domain's memory</info>
581 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
582 <arg name='start' type='unsigned long long' info='start of memory to peek'/>
583 <arg name='size' type='size_t' info='size of memory to peek'/>
584 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainMemoryFlags'/>
585 <return type='char *' info='the returned buffer or None in case of error'/>
587 <function name='virDomainGetDiskErrors' file='python'>
588 <info>Extract errors on disk devices.</info>
589 <return type='char *' info='dictionary of disks and their errors or None in case of error'/>
590 <arg name='domain' type='virDomainPtr' info='a domain object'/>
591 <arg name='flags' type='unsigned int' info='unused, always pass 0'/>
593 <function name='virNodeSetMemoryParameters' file='python'>
594 <info>Change the node memory tunables</info>
595 <return type='int' info='-1 in case of error, 0 in case of success.'/>
596 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
597 <arg name='params' type='virTypedParameterPtr' info='pointer to the memory tunable objects'/>
598 <arg name='flags' type='int' info='unused, always pass 0'/>
600 <function name='virNodeGetMemoryParameters' file='python'>
601 <info>Get the node memory parameters</info>
602 <return type='char *' info='None in case of error, returns a dictionary of params'/>
603 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
604 <arg name='flags' type='int' info='unused, always pass 0'/>
606 <function name='virNodeGetCPUMap' file='python'>
607 <info>Get node CPU information</info>
608 <return type='char *' info='(cpunum, cpumap, online) on success, None on error'/>
609 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
610 <arg name='flags' type='int' info='unused, pass 0'/>