2 <api name='libvir-python'>
4 <function name="virConnectGetVersion" file='python'>
5 <info>Returns the running hypervisor version of the connection host</info>
6 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
7 <return type='int' info="0 on success, -1 on error"/>
9 <function name="virConnectGetLibVersion" file='python'>
10 <info>Returns the libvirt version of the connection host</info>
11 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
12 <return type='int' info="0 on success, -1 on error"/>
14 <function name="virConnectListDomainsID" file='python'>
15 <info>Returns the list of the ID of the domains on the hypervisor</info>
16 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
17 <return type='int *' info="the list of ID or None in case of error"/>
19 <function name='virConnectListDefinedDomains' file='python'>
20 <info>list the defined domains, stores the pointers to the names in @names</info>
21 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
22 <return type='str *' info='the list of Names or None in case of error'/>
24 <function name='virConnectListAllDomains' file='python'>
25 <info>returns list of all defined domains</info>
26 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
27 <arg name='flags' type='unsigned int' info='optional flags'/>
28 <return type='domain *' info='the list of domains or None in case of error'/>
30 <function name='virConnectListNetworks' file='python'>
31 <info>list the networks, stores the pointers to the names in @names</info>
32 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
33 <return type='str *' info='the list of Names or None in case of error'/>
35 <function name='virConnectListDefinedNetworks' file='python'>
36 <info>list the defined networks, stores the pointers to the names in @names</info>
37 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
38 <return type='str *' info='the list of Names or None in case of error'/>
40 <function name='virConnectListAllNetworks' file='python'>
41 <info>returns list of all networks</info>
42 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
43 <arg name='flags' type='unsigned int' info='optional flags'/>
44 <return type='network *' info='the list of networks or None in case of error'/>
46 <function name='virDomainLookupByUUID' file='python'>
47 <info>Try to lookup a domain on the given hypervisor based on its UUID.</info>
48 <return type='virDomainPtr' info='a new domain object or NULL in case of failure'/>
49 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
50 <arg name='uuid' type='const unsigned char *' info='the UUID string for the domain, must be 16 bytes'/>
52 <function name='virNetworkLookupByUUID' file='python'>
53 <info>Try to lookup a network on the given hypervisor based on its UUID.</info>
54 <return type='virNetworkPtr' info='a new network object or NULL in case of failure'/>
55 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
56 <arg name='uuid' type='const unsigned char *' info='the UUID string for the network, must be 16 bytes'/>
58 <function name='virDomainGetInfo' file='python'>
59 <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>
60 <return type='int *' info='the list of information or None in case of error'/>
61 <arg name='domain' type='virDomainPtr' info='a domain object'/>
63 <function name='virDomainGetState' file='python'>
64 <info>Extract domain state.</info>
65 <return type='int *' info='the list containing state and reason or None in case of error'/>
66 <arg name='domain' type='virDomainPtr' info='a domain object'/>
67 <arg name='flags' type='unsigned int' info='additional flags'/>
69 <function name='virDomainGetControlInfo' file='python'>
70 <info>Extract details about current state of control interface to a domain.</info>
71 <return type='int *' info='the list of information or None in case of error'/>
72 <arg name='domain' type='virDomainPtr' info='a domain object'/>
73 <arg name='flags' type='unsigned int' info='additional flags'/>
75 <function name='virDomainGetBlockInfo' file='python'>
76 <info>Extract information about a domain block device size</info>
77 <return type='int *' info='the list of information or None in case of error'/>
78 <arg name='domain' type='virDomainPtr' info='a domain object'/>
79 <arg name='path' type='const char *' info='path to the block device or file'/>
80 <arg name='flags' type='unsigned int' info='currently unused'/>
82 <function name='virDomainGetJobInfo' file='python'>
83 <info>Extract information about an active job being processed for a domain.</info>
84 <return type='int *' info='the list of information or None in case of error'/>
85 <arg name='domain' type='virDomainPtr' info='a domain object'/>
87 <function name='virNodeGetInfo' file='python'>
88 <info>Extract hardware information about the Node.</info>
89 <return type='int *' info='the list of information or None in case of error'/>
90 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
92 <function name='virNodeGetCPUStats' file='python'>
93 <info>Extract node's CPU statistics.</info>
94 <return type='virNodeCPUStats' info='dictionary mapping field names to values or None in case of error'/>
95 <arg name='conn' type='virConnectPtr' info='pointer to hypervisor connection'/>
96 <arg name='cpuNum' type='int' info='number of node cpu. (VIR_NODE_CPU_STATS_ALL_CPUS means total cpu statistics)'/>
97 <arg name='flags' type='unsigned int' info='additional flags'/>
99 <function name='virNodeGetMemoryStats' file='python'>
100 <info>Extract node's memory statistics.</info>
101 <return type='virNodeMemoryStats' info='dictionary mapping field names to values or None in case of error'/>
102 <arg name='conn' type='virConnectPtr' info='pointer to hypervisor connection'/>
103 <arg name='cellNum' type='int' info='number of node cell. (VIR_NODE_MEMORY_STATS_ALL_CELLS means total cell statistics)'/>
104 <arg name='flags' type='unsigned int' info='additional flags'/>
106 <function name='virDomainGetUUID' file='python'>
107 <info>Extract the UUID unique Identifier of a domain.</info>
108 <return type='char *' info='the 16 bytes string or None in case of error'/>
109 <arg name='domain' type='virDomainPtr' info='a domain object'/>
111 <function name='virDomainGetUUIDString' file='python'>
112 <info>Fetch globally unique ID of the domain as a string.</info>
113 <return type='char *' info='the UUID string or None in case of error'/>
114 <arg name='pool' type='virDomainPtr' info='a domain object'/>
116 <function name='virNetworkGetUUID' file='python'>
117 <info>Extract the UUID unique Identifier of a network.</info>
118 <return type='char *' info='the 16 bytes string or None in case of error'/>
119 <arg name='domain' type='virNetworkPtr' info='a network object'/>
121 <function name='virNetworkGetUUIDString' file='python'>
122 <info>Fetch globally unique ID of the network as a string.</info>
123 <return type='char *' info='the UUID string or None in case of error'/>
124 <arg name='net' type='virNetworkPtr' info='a network object'/>
126 <function name='virStoragePoolGetUUID' file='python'>
127 <info>Extract the UUID unique Identifier of a storage pool.</info>
128 <return type='char *' info='the 16 bytes string or None in case of error'/>
129 <arg name='pool' type='virStoragePoolPtr' info='a storage pool object'/>
131 <function name='virStoragePoolGetUUIDString' file='python'>
132 <info>Fetch globally unique ID of the storage pool as a string.</info>
133 <return type='char *' info='the UUID string or None in case of error'/>
134 <arg name='pool' type='virStoragePoolPtr' info='a storage pool object'/>
136 <function name='virNetworkGetAutostart' file='python'>
137 <info>Extract the autostart flag for a network.</info>
138 <return type='int' info='the autostart flag, or None in case of error'/>
139 <arg name='domain' type='virNetworkPtr' info='a network object'/>
141 <function name='virDomainGetAutostart' file='python'>
142 <info>Extract the autostart flag for a domain</info>
143 <return type='int' info='the autostart flag, or None in case of error'/>
144 <arg name='domain' type='virDomainPtr' info='a network object'/>
146 <function name='virStoragePoolGetAutostart' file='python'>
147 <info>Extract the autostart flag for a storage pool</info>
148 <return type='int' info='the autostart flag, or None in case of error'/>
149 <arg name='pool' type='virStoragePoolPtr' info='a storage pool object'/>
151 <function name='virDomainBlockStats' file='python'>
152 <info>Extracts block device statistics for a domain</info>
153 <return type='virDomainBlockStats' info='a tuple of statistics'/>
154 <arg name='domain' type='virDomainPtr' info='a domain object'/>
155 <arg name='path' type='char *' info='the path for the block device'/>
157 <function name='virDomainBlockStatsFlags' file='python'>
158 <info>Extracts block device statistics parameters of a running domain</info>
159 <return type='str *' info='None in case of error, returns a dictionary of params'/>
160 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
161 <arg name='path' type='char *' info='the path for the block device'/>
162 <arg name='flags' type='int' info='flags (unused; pass 0)'/>
164 <function name='virDomainGetCPUStats' file='python'>
165 <info>Extracts CPU statistics for a running domain. On success it will
166 return a list of data of dictionary type. If boolean total is False or 0, the
167 first element of the list refers to CPU0 on the host, second element is
168 CPU1, and so on. The format of data struct is as follows:
169 [{cpu_time:xxx}, {cpu_time:xxx}, ...]
170 If it is True or 1, it returns total domain CPU statistics in the format of
171 [{cpu_time:xxx, user_time:xxx, system_time:xxx}]</info>
172 <return type='str *' info='returns a list of dictionary in case of success, None in case of error'/>
173 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
174 <arg name='total' type='bool' info='on true, return total domain CPU statistics, false return per-cpu info'/>
175 <arg name='flags' type='int' info='flags (unused; pass 0)'/>
177 <function name='virDomainInterfaceStats' file='python'>
178 <info>Extracts interface device statistics for a domain</info>
179 <return type='virDomainInterfaceStats' info='a tuple of statistics'/>
180 <arg name='domain' type='virDomainPtr' info='a domain object'/>
181 <arg name='path' type='char *' info='the path for the interface device'/>
183 <function name='virDomainMemoryStats' file='python'>
184 <info>Extracts memory statistics for a domain</info>
185 <return type='virDomainMemoryStats' info='a dictionary of statistics'/>
186 <arg name='domain' type='virDomainPtr' info='a domain object'/>
188 <function name="virNodeGetCellsFreeMemory" file='python'>
189 <info>Returns the available memory for a list of cells</info>
190 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
191 <arg name='startCell' type='int' info='first cell in the list'/>
192 <arg name='maxCells' type='int' info='number of cell in the list'/>
193 <return type='int *' info="the list available memory in the cells"/>
195 <function name='virDomainGetSchedulerParameters' file='python'>
196 <info>Get the scheduler parameters, the @params array will be filled with the values.</info>
197 <return type='str *' info='None in case of error, returns a dictionary of params.'/>
198 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
200 <function name='virDomainGetSchedulerParametersFlags' file='python'>
201 <info>Get the scheduler parameters</info>
202 <return type='str *' info='None in case of error, returns a dictionary of params'/>
203 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
204 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
206 <function name='virDomainGetSchedulerType' file='python'>
207 <info>Get the scheduler type.</info>
208 <return type='char *' info='NULL in case of error. The caller must free the returned string.'/>
209 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
211 <function name='virDomainGetVcpus' file='python'>
212 <info>Extract information about virtual CPUs of domain, store it in info array and also in cpumaps if this pointer is'nt NULL.</info>
213 <return type='int' info='the number of info filled in case of success, -1 in case of failure.'/>
214 <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
216 <function name='virDomainPinVcpu' file='python'>
217 <info>Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires privileged access to the hypervisor.</info>
218 <return type='int' info='0 in case of success, -1 in case of failure.'/>
219 <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
220 <arg name='vcpu' type='unsigned int' info='virtual CPU number'/>
221 <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.'/>
223 <function name='virDomainPinVcpuFlags' file='python'>
224 <info>Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires privileged access to the hypervisor.</info>
225 <return type='int' info='0 in case of success, -1 in case of failure.'/>
226 <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
227 <arg name='vcpu' type='unsigned int' info='virtual CPU number'/>
228 <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.'/>
229 <arg name='flags' type='int' info='flags to specify'/>
231 <function name='virDomainGetVcpuPinInfo' file='python'>
232 <info>Query the CPU affinity setting of all virtual CPUs of domain</info>
233 <return type='unsigned char *' info='the array of cpumap'/>
234 <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
235 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
237 <function name='virDomainSetSchedulerParameters' file='python'>
238 <info>Change the scheduler parameters</info>
239 <return type='int' info='-1 in case of error, 0 in case of success.'/>
240 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
241 <arg name='params' type='virSchedParameterPtr' info='pointer to scheduler parameter objects'/>
243 <function name='virDomainSetSchedulerParametersFlags' file='python'>
244 <info>Change the scheduler parameters</info>
245 <return type='int' info='-1 in case of error, 0 in case of success.'/>
246 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
247 <arg name='params' type='virSchedParameterPtr' info='pointer to scheduler parameter objects'/>
248 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
250 <function name='virDomainSetBlkioParameters' file='python'>
251 <info>Change the blkio tunables</info>
252 <return type='int' info='-1 in case of error, 0 in case of success.'/>
253 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
254 <arg name='params' type='virBlkioParameterPtr' info='pointer to blkio tunable objects'/>
255 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
257 <function name='virDomainGetBlkioParameters' file='python'>
258 <info>Get the blkio parameters</info>
259 <return type='str *' info='None in case of error, returns a dictionary of params'/>
260 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
261 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
263 <function name='virDomainSetMemoryParameters' file='python'>
264 <info>Change the memory tunables</info>
265 <return type='int' info='-1 in case of error, 0 in case of success.'/>
266 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
267 <arg name='params' type='virMemoryParameterPtr' info='pointer to memory tunable objects'/>
268 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
270 <function name='virDomainGetMemoryParameters' file='python'>
271 <info>Get the memory parameters</info>
272 <return type='str *' info='None in case of error, returns a dictionary of params'/>
273 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
274 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
276 <function name='virDomainSetNumaParameters' file='python'>
277 <info>Change the NUMA tunables</info>
278 <return type='int' info='-1 in case of error, 0 in case of success.'/>
279 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
280 <arg name='params' type='virTypedParameterPtr' info='pointer to numa tunable objects'/>
281 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
283 <function name='virDomainGetNumaParameters' file='python'>
284 <info>Get the NUMA parameters</info>
285 <return type='str *' info='returns a dictionary of params in case of success, None in case of error'/>
286 <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
287 <arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
289 <function name='virDomainSetInterfaceParameters' file='python'>
290 <info>Change the bandwidth tunables for a interface device</info>
291 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
292 <arg name='device' type='const char *' info='interface name'/>
293 <arg name='params' type='virTypedParameterPtr' info='Pointer to bandwidth tuning params object'/>
294 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/>
295 <return type='int' info='0 in case of success, -1 in case of failure'/>
297 <function name='virDomainGetInterfaceParameters' file='python'>
298 <info>Get the bandwidth tunables for a interface device</info>
299 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
300 <arg name='device' type='const char *' info='interface name'/>
301 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/>
302 <return type='str *' info='the bandwidth tunables value or None in case of error'/>
305 <function name='virConnectListStoragePools' file='python'>
306 <info>list the storage pools, stores the pointers to the names in @names</info>
307 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
308 <return type='str *' info='the list of Names of None in case of error'/>
310 <function name='virConnectListDefinedStoragePools' file='python'>
311 <info>list the defined storage pool, stores the pointers to the names in @names</info>
312 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
313 <return type='str *' info='the list of Names of None in case of error'/>
315 <function name='virConnectListAllStoragePools' file='python'>
316 <info>returns list of all storage pools</info>
317 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
318 <arg name='flags' type='unsigned int' info='optional flags'/>
319 <return type='pool *' info='the list of pools or None in case of error'/>
321 <function name='virStoragePoolListVolumes' file='python'>
322 <info>list the storage volumes, stores the pointers to the names in @names</info>
323 <arg name='pool' type='virStoragePoolPtr' info='pointer to the storage pool'/>
324 <return type='str *' info='the list of Names or None in case of error'/>
326 <function name='virStoragePoolListAllVolumes' file='python'>
327 <info>return list of storage volume objects</info>
328 <arg name='pool' type='virStoragePoolPtr' info='pointer to the storage pool'/>
329 <arg name='flags' type='unsigned int' info='optional flags'/>
330 <return type='volume *' info='the list of volumes or None in case of error'/>
332 <function name='virStoragePoolGetInfo' file='python'>
333 <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>
334 <return type='int *' info='the list of information or None in case of error'/>
335 <arg name='pool' type='virStoragePoolPtr' info='a storage pool object'/>
337 <function name='virStorageVolGetInfo' file='python'>
338 <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>
339 <return type='int *' info='the list of information or None in case of error'/>
340 <arg name='vol' type='virStorageVolPtr' info='a storage vol object'/>
342 <function name='virNodeListDevices' file='python'>
343 <info>list the node devices</info>
344 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
345 <arg name='cap' type='const unsigned char *' info='capability name'/>
346 <arg name='flags' type='unsigned int' info='flags (unused; pass 0)'/>
347 <return type='str *' info='the list of Names or None in case of error'/>
349 <function name='virConnectListAllNodeDevices' file='python'>
350 <info>returns list of all host node devices</info>
351 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
352 <arg name='flags' type='unsigned int' info='optional flags'/>
353 <return type='device *' info='the list of host node device or None in case of error'/>
355 <function name='virNodeDeviceListCaps' file='python'>
356 <info>list the node device's capabilities</info>
357 <arg name='dev' type='virNodeDevicePtr' info='pointer to the node device'/>
358 <return type='str *' info='the list of Names or None in case of error'/>
360 <function name='virSecretGetValue' file='libvirt' module='libvirt'>
361 <info>Fetches the value associated with a secret.</info>
362 <return type='char *' info='the secret value or None in case of error'/>
363 <arg name='secret' type='virSecretPtr' info='virSecret secret'/>
364 <arg name='flags' type='unsigned int' info='flags (unused; pass 0)'/>
366 <function name='virConnectListSecrets' file='libvirt' module='libvirt'>
367 <info>List the defined secret IDs</info>
368 <arg name='conn' type='virConnectPtr' info='virConnect connection'/>
369 <return type='str *' info='the list of secret IDs or None in case of error'/>
371 <function name='virConnectListAllSecrets' file='python'>
372 <info>returns list of all interfaces</info>
373 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
374 <arg name='flags' type='unsigned int' info='optional flags'/>
375 <return type='secret *' info='the list of secrets or None in case of error'/>
377 <function name='virSecretSetValue' file='libvirt' module='libvirt'>
378 <info>Associates a value with a secret.</info>
379 <return type='int' info='0 on success, -1 on failure.'/>
380 <arg name='secret' type='virSecretPtr' info='virSecret secret'/>
381 <arg name='value' type='const char *' info='The secret value'/>
382 <arg name='flags' type='unsigned int' info='flags (unused; pass 0)'/>
384 <function name='virSecretLookupByUUID' file='python'>
385 <info>Try to lookup a secret on the given hypervisor based on its UUID.</info>
386 <return type='virSecretPtr' info='a new secret object or NULL in case of failure'/>
387 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
388 <arg name='uuid' type='const unsigned char *' info='the UUID string for the secret, must be 16 bytes'/>
390 <function name='virSecretGetUUID' file='python'>
391 <info>Extract the UUID unique Identifier of a secret.</info>
392 <return type='char *' info='the 16 bytes string or None in case of error'/>
393 <arg name='secret' type='virSecretPtr' info='a secret object'/>
395 <function name='virSecretGetUUIDString' file='python'>
396 <info>Fetch globally unique ID of the secret as a string.</info>
397 <return type='char *' info='the UUID string or None in case of error'/>
398 <arg name='secret' type='virSecretPtr' info='a secret object'/>
400 <function name='virConnectListNWFilters' file='libvirt' module='libvirt'>
401 <info>List the defined network filters</info>
402 <arg name='conn' type='virConnectPtr' info='virConnect connection'/>
403 <return type='str *' info='the list of network filter IDs or None in case of error'/>
405 <function name='virConnectListAllNWFilters' file='python'>
406 <info>returns list of all network fitlers</info>
407 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
408 <arg name='flags' type='unsigned int' info='optional flags'/>
409 <return type='nwfilter *' info='the list of network filters or None in case of error'/>
411 <function name='virNWFilterLookupByUUID' file='python'>
412 <info>Try to lookup a network filter on the given hypervisor based on its UUID.</info>
413 <return type='virNWFilterPtr' info='a new network filter object or NULL in case of failure'/>
414 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
415 <arg name='uuid' type='const unsigned char *' info='the UUID string for the secret, must be 16 bytes'/>
417 <function name='virNWFilterGetUUID' file='python'>
418 <info>Extract the UUID unique Identifier of a network filter.</info>
419 <return type='char *' info='the 16 bytes string or None in case of error'/>
420 <arg name='nwfilter' type='virNWFilterPtr' info='a network filter object'/>
422 <function name='virNWFilterGetUUIDString' file='python'>
423 <info>Fetch globally unique ID of the network filter as a string.</info>
424 <return type='char *' info='the UUID string or None in case of error'/>
425 <arg name='nwfilter' type='virNWFilterPtr' info='a network filter object'/>
427 <function name='virConnectListInterfaces' file='python'>
428 <info>list the running interfaces, stores the pointers to the names in @names</info>
429 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
430 <return type='str *' info='the list of Names of None in case of error'/>
432 <function name='virConnectListDefinedInterfaces' file='python'>
433 <info>list the defined interfaces, stores the pointers to the names in @names</info>
434 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
435 <return type='str *' info='the list of Names of None in case of error'/>
437 <function name='virConnectListAllInterfaces' file='python'>
438 <info>returns list of all interfaces</info>
439 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
440 <arg name='flags' type='unsigned int' info='optional flags'/>
441 <return type='interface *' info='the list of interfaces or None in case of error'/>
443 <function name='virConnectBaselineCPU' file='python'>
444 <info>Computes the most feature-rich CPU which is compatible with all given host CPUs.</info>
445 <return type='char *' info='XML description of the computed CPU or NULL on error.'/>
446 <arg name='conn' type='virConnectPtr' info='virConnect connection'/>
447 <arg name='xmlCPUs' type='const char **' info='array of XML descriptions of host CPUs'/>
448 <arg name='flags' type='unsigned int' info='fine-tuning flags, currently unused, pass 0.'/>
450 <function name='virDomainSnapshotListNames' file='python'>
451 <info>collect the list of snapshot names for the given domain</info>
452 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
453 <arg name='flags' type='unsigned int' info='flags'/>
454 <return type='str *' info='the list of Names or None in case of error'/>
456 <function name='virDomainListAllSnapshots' file='python'>
457 <info>returns the list of snapshots for the given domain</info>
458 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
459 <arg name='flags' type='unsigned int' info='flags'/>
460 <return type='snapshot *' info='the list of snapshots or None in case of error'/>
462 <function name='virDomainSnapshotListChildrenNames' file='python'>
463 <info>collect the list of child snapshot names for the given snapshot</info>
464 <arg name='snapshot' type='virDomainSnapshotPtr' info='pointer to the snapshot'/>
465 <arg name='flags' type='unsigned int' info='flags'/>
466 <return type='str *' info='the list of Names or None in case of error'/>
468 <function name='virDomainSnapshotListAllChildren' file='python'>
469 <info>returns the list of child snapshots for the given snapshot</info>
470 <arg name='snapshot' type='virDomainSnapshotPtr' info='pointer to the snapshot'/>
471 <arg name='flags' type='unsigned int' info='flags'/>
472 <return type='snapshot *' info='the list of snapshots or None in case of error'/>
474 <function name='virDomainRevertToSnapshot' file='python'>
475 <info>revert the domain to the given snapshot</info>
476 <arg name='dom' type='virDomainPtr' info='dummy domain pointer'/>
477 <arg name='snap' type='virDomainSnapshotPtr' info='pointer to the snapshot'/>
478 <arg name='flags' type='unsigned int' info='flags'/>
479 <return type='int' info="0 on success, -1 on error"/>
481 <function name='virDomainGetBlockJobInfo' file='python'>
482 <info>Get progress information for a block job</info>
483 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
484 <arg name='path' type='const char *' info='Fully-qualified filename of disk'/>
485 <arg name='flags' type='unsigned int' info='fine-tuning flags, currently unused, pass 0.'/>
486 <return type='virDomainBlockJobInfo' info='A dictionary containing job information.' />
488 <function name='virDomainMigrateGetMaxSpeed' file='python'>
489 <info>Get currently configured maximum migration speed for a domain</info>
490 <arg name='domain' type='virDomainPtr' info='a domain object'/>
491 <arg name='flags' type='unsigned int' info='flags, currently unused, pass 0.'/>
492 <return type='unsigned long' info='current max migration speed, or None in case of error'/>
494 <function name='virDomainSetBlockIoTune' file='python'>
495 <info>Change the I/O tunables for a block device</info>
496 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
497 <arg name='disk' type='const char *' info='disk name'/>
498 <arg name='params' type='virTypedParameterPtr' info='Pointer to blkio tuning params object'/>
499 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/>
500 <return type='int' info='0 in case of success, -1 in case of failure'/>
502 <function name='virDomainGetBlockIoTune' file='python'>
503 <info>Get the I/O tunables for a block device</info>
504 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
505 <arg name='disk' type='const char *' info='disk name'/>
506 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/>
507 <return type='str *' info='the I/O tunables value or None in case of error'/>
509 <function name='virDomainBlockPeek' file='python'>
510 <info>Read the contents of domain's disk device</info>
511 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
512 <arg name='disk' type='const char *' info='disk name'/>
513 <arg name='offset' type='unsigned long long' info='offset within block device'/>
514 <arg name='size' type='size_t' info='size to read'/>
515 <arg name='flags' type='unsigned int' info='unused, always pass 0'/>
516 <return type='char *' info='the returned buffer or None in case of error'/>
518 <function name='virDomainMemoryPeek' file='python'>
519 <info>Read the contents of domain's memory</info>
520 <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
521 <arg name='start' type='unsigned long long' info='start of memory to peek'/>
522 <arg name='size' type='size_t' info='size of memory to peek'/>
523 <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainMemoryFlags'/>
524 <return type='char *' info='the returned buffer or None in case of error'/>
526 <function name='virDomainGetDiskErrors' file='python'>
527 <info>Extract errors on disk devices.</info>
528 <return type='virDomainDiskErrorPtr' info='dictionary of disks and their errors or None in case of error'/>
529 <arg name='domain' type='virDomainPtr' info='a domain object'/>
530 <arg name='flags' type='unsigned int' info='unused, always pass 0'/>
532 <function name='virNodeSetMemoryParameters' file='python'>
533 <info>Change the node memory tunables</info>
534 <return type='int' info='-1 in case of error, 0 in case of success.'/>
535 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
536 <arg name='params' type='virTypedParameterPtr' info='pointer to the memory tunable objects'/>
537 <arg name='flags' type='int' info='unused, always pass 0'/>
539 <function name='virNodeGetMemoryParameters' file='python'>
540 <info>Get the node memory parameters</info>
541 <return type='str *' info='None in case of error, returns a dictionary of params'/>
542 <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
543 <arg name='flags' type='int' info='unused, always pass 0'/>