| 1 |
<?xml version="1.0"?> |
| 2 |
<api name='libvir-python'> |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
<symbols> |
| 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"/> |
| 17 |
</function> |
| 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"/> |
| 22 |
</function> |
| 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"/> |
| 27 |
</function> |
| 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'/> |
| 32 |
</function> |
| 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'/> |
| 38 |
</function> |
| 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'/> |
| 43 |
</function> |
| 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'/> |
| 48 |
</function> |
| 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'/> |
| 54 |
</function> |
| 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'/> |
| 60 |
</function> |
| 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'/> |
| 66 |
</function> |
| 67 |
<function name='virNetworkPortLookupByUUID' file='python'> |
| 68 |
<info>Try to lookup a port on the given network based on its UUID.</info> |
| 69 |
<return type='virNetworkPortPtr' info='a new network port object or NULL in case of failure'/> |
| 70 |
<arg name='net' type='virNetworkPtr' info='pointer to the network object'/> |
| 71 |
<arg name='uuid' type='const unsigned char *' info='the UUID string for the network port, must be 16 bytes'/> |
| 72 |
</function> |
| 73 |
<function name='virDomainGetInfo' file='python'> |
| 74 |
<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> |
| 75 |
<return type='char *' info='the list of information or None in case of error'/> |
| 76 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 77 |
</function> |
| 78 |
<function name='virDomainGetState' file='python'> |
| 79 |
<info>Extract domain state.</info> |
| 80 |
<return type='char *' info='the list containing state and reason 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'/> |
| 83 |
</function> |
| 84 |
<function name='virDomainGetControlInfo' file='python'> |
| 85 |
<info>Extract details about current state of control interface to a domain.</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='flags' type='unsigned int' info='additional flags'/> |
| 89 |
</function> |
| 90 |
<function name='virDomainGetBlockInfo' file='python'> |
| 91 |
<info>Extract information about a domain block device size</info> |
| 92 |
<return type='char *' info='the list of information or None in case of error'/> |
| 93 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 94 |
<arg name='path' type='const char *' info='path to the block device or file'/> |
| 95 |
<arg name='flags' type='unsigned int' info='currently unused'/> |
| 96 |
</function> |
| 97 |
<function name='virDomainGetJobInfo' file='python'> |
| 98 |
<info>Extract information about an active job being processed for a domain.</info> |
| 99 |
<return type='char *' info='the list of information or None in case of error'/> |
| 100 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 101 |
</function> |
| 102 |
<function name='virDomainGetJobStats' file='python'> |
| 103 |
<info>Extract information about an active job being processed for a domain.</info> |
| 104 |
<return type='char *' info='dictionary mapping field names to values or None in case of error'/> |
| 105 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 106 |
<arg name='flags' type='unsigned int' info='flags, currently unused, pass 0.'/> |
| 107 |
</function> |
| 108 |
<function name='virNodeGetInfo' file='python'> |
| 109 |
<info>Extract hardware information about the Node. Note that the memory size is reported in MiB instead of KiB.</info> |
| 110 |
<return type='char *' info='the list of information or None in case of error'/> |
| 111 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 112 |
</function> |
| 113 |
<function name='virNodeGetSecurityModel' file='python'> |
| 114 |
<info>Extract information about the hypervisor security model</info> |
| 115 |
<return type='char *' info='the list of information or None in case of error'/> |
| 116 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 117 |
</function> |
| 118 |
<function name='virDomainGetSecurityLabel' file='python'> |
| 119 |
<info>Extract information about the domain security label. Only the first label will be returned.</info> |
| 120 |
<return type='char *' info='the list of information or None in case of error'/> |
| 121 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 122 |
</function> |
| 123 |
<function name='virDomainGetSecurityLabelList' file='python'> |
| 124 |
<info>Extract information about the domain security label. A list of all labels will be returned.</info> |
| 125 |
<return type='char *' info='the list of information or None in case of error'/> |
| 126 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 127 |
</function> |
| 128 |
<function name='virNodeGetCPUStats' file='python'> |
| 129 |
<info>Extract node's CPU statistics.</info> |
| 130 |
<return type='char *' info='dictionary mapping field names to values or None in case of error'/> |
| 131 |
<arg name='conn' type='virConnectPtr' info='pointer to hypervisor connection'/> |
| 132 |
<arg name='cpuNum' type='int' info='number of node cpu. (VIR_NODE_CPU_STATS_ALL_CPUS means total cpu statistics)'/> |
| 133 |
<arg name='flags' type='unsigned int' info='additional flags'/> |
| 134 |
</function> |
| 135 |
<function name='virNodeGetMemoryStats' file='python'> |
| 136 |
<info>Extract node's memory statistics.</info> |
| 137 |
<return type='char *' info='dictionary mapping field names to values or None in case of error'/> |
| 138 |
<arg name='conn' type='virConnectPtr' info='pointer to hypervisor connection'/> |
| 139 |
<arg name='cellNum' type='int' info='number of node cell. (VIR_NODE_MEMORY_STATS_ALL_CELLS means total cell statistics)'/> |
| 140 |
<arg name='flags' type='unsigned int' info='additional flags'/> |
| 141 |
</function> |
| 142 |
<function name='virDomainGetUUID' file='python'> |
| 143 |
<info>Extract the UUID unique Identifier of a domain.</info> |
| 144 |
<return type='char *' info='the 16 bytes string or None in case of error'/> |
| 145 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 146 |
</function> |
| 147 |
<function name='virDomainGetUUIDString' file='python'> |
| 148 |
<info>Fetch globally unique ID of the domain as a string.</info> |
| 149 |
<return type='char *' info='the UUID string or None in case of error'/> |
| 150 |
<arg name='pool' type='virDomainPtr' info='a domain object'/> |
| 151 |
</function> |
| 152 |
<function name='virNetworkGetUUID' file='python'> |
| 153 |
<info>Extract the UUID unique Identifier of a network.</info> |
| 154 |
<return type='char *' info='the 16 bytes string or None in case of error'/> |
| 155 |
<arg name='domain' type='virNetworkPtr' info='a network object'/> |
| 156 |
</function> |
| 157 |
<function name='virNetworkGetUUIDString' file='python'> |
| 158 |
<info>Fetch globally unique ID of the network as a string.</info> |
| 159 |
<return type='char *' info='the UUID string or None in case of error'/> |
| 160 |
<arg name='net' type='virNetworkPtr' info='a network object'/> |
| 161 |
</function> |
| 162 |
<function name='virNetworkPortGetUUID' file='python'> |
| 163 |
<info>Extract the UUID unique Identifier of a network port.</info> |
| 164 |
<return type='char *' info='the 16 bytes string or None in case of error'/> |
| 165 |
<arg name='domain' type='virNetworkPortPtr' info='a network port object'/> |
| 166 |
</function> |
| 167 |
<function name='virNetworkPortGetUUIDString' file='python'> |
| 168 |
<info>Fetch globally unique ID of the network port as a string.</info> |
| 169 |
<return type='char *' info='the UUID string or None in case of error'/> |
| 170 |
<arg name='net' type='virNetworkPortPtr' info='a network port object'/> |
| 171 |
</function> |
| 172 |
<function name='virStoragePoolGetUUID' file='python'> |
| 173 |
<info>Extract the UUID unique Identifier of a storage pool.</info> |
| 174 |
<return type='char *' info='the 16 bytes string or None in case of error'/> |
| 175 |
<arg name='pool' type='virStoragePoolPtr' info='a storage pool object'/> |
| 176 |
</function> |
| 177 |
<function name='virStoragePoolGetUUIDString' file='python'> |
| 178 |
<info>Fetch globally unique ID of the storage pool as a string.</info> |
| 179 |
<return type='char *' info='the UUID string or None in case of error'/> |
| 180 |
<arg name='pool' type='virStoragePoolPtr' info='a storage pool object'/> |
| 181 |
</function> |
| 182 |
<function name='virNetworkGetAutostart' file='python'> |
| 183 |
<info>Extract the autostart flag for a network.</info> |
| 184 |
<return type='int' info='the autostart flag, or None in case of error'/> |
| 185 |
<arg name='domain' type='virNetworkPtr' info='a network object'/> |
| 186 |
</function> |
| 187 |
<function name='virDomainGetAutostart' file='python'> |
| 188 |
<info>Extract the autostart flag for a domain</info> |
| 189 |
<return type='int' info='the autostart flag, or None in case of error'/> |
| 190 |
<arg name='domain' type='virDomainPtr' info='a network object'/> |
| 191 |
</function> |
| 192 |
<function name='virStoragePoolGetAutostart' file='python'> |
| 193 |
<info>Extract the autostart flag for a storage pool</info> |
| 194 |
<return type='int' info='the autostart flag, or None in case of error'/> |
| 195 |
<arg name='pool' type='virStoragePoolPtr' info='a storage pool object'/> |
| 196 |
</function> |
| 197 |
<function name='virNodeDeviceGetAutostart' file='python'> |
| 198 |
<info>Extract the autostart flag for a node device.</info> |
| 199 |
<return type='int' info='the autostart flag, or None in case of error'/> |
| 200 |
<arg name='dev' type='virNodeDevicePtr' info='a node device object'/> |
| 201 |
</function> |
| 202 |
<function name='virDomainBlockStats' file='python'> |
| 203 |
<info>Extracts block device statistics for a domain</info> |
| 204 |
<return type='char *' info='a tuple of statistics'/> |
| 205 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 206 |
<arg name='path' type='char *' info='the path for the block device'/> |
| 207 |
</function> |
| 208 |
<function name='virDomainBlockStatsFlags' file='python'> |
| 209 |
<info>Extracts block device statistics parameters of a running domain</info> |
| 210 |
<return type='char *' info='None in case of error, returns a dictionary of params'/> |
| 211 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 212 |
<arg name='path' type='char *' info='the path for the block device'/> |
| 213 |
<arg name='flags' type='int' info='flags (unused; pass 0)'/> |
| 214 |
</function> |
| 215 |
<function name='virDomainGetCPUStats' file='python'> |
| 216 |
<info>Extracts CPU statistics for a running domain. On success it will |
| 217 |
return a list of data of dictionary type. If boolean total is False or 0, the |
| 218 |
first element of the list refers to CPU0 on the host, second element is |
| 219 |
CPU1, and so on. The format of data struct is as follows: |
| 220 |
[{cpu_time:xxx}, {cpu_time:xxx}, ...] |
| 221 |
If it is True or 1, it returns total domain CPU statistics in the format of |
| 222 |
[{cpu_time:xxx, user_time:xxx, system_time:xxx}]</info> |
| 223 |
<return type='char *' info='returns a list of dictionary in case of success, None in case of error'/> |
| 224 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 225 |
<arg name='total' type='bool' info='on true, return total domain CPU statistics, false return per-cpu info'/> |
| 226 |
<arg name='flags' type='int' info='flags (unused; pass 0)'/> |
| 227 |
</function> |
| 228 |
<function name='virDomainInterfaceStats' file='python'> |
| 229 |
<info>Extracts interface device statistics for a domain</info> |
| 230 |
<return type='char *' info='a tuple of statistics'/> |
| 231 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 232 |
<arg name='path' type='char *' info='the path for the interface device'/> |
| 233 |
</function> |
| 234 |
<function name='virDomainMemoryStats' file='python'> |
| 235 |
<info>Extracts memory statistics for a domain</info> |
| 236 |
<return type='char *' info='a dictionary of statistics'/> |
| 237 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 238 |
</function> |
| 239 |
<function name="virNodeGetCellsFreeMemory" file='python'> |
| 240 |
<info>Returns the available memory for a list of cells</info> |
| 241 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 242 |
<arg name='startCell' type='int' info='first cell in the list'/> |
| 243 |
<arg name='maxCells' type='int' info='number of cell in the list'/> |
| 244 |
<return type='char *' info="the list available memory in the cells"/> |
| 245 |
</function> |
| 246 |
<function name='virDomainGetSchedulerParameters' file='python'> |
| 247 |
<info>Get the scheduler parameters, the @params array will be filled with the values.</info> |
| 248 |
<return type='char *' info='None in case of error, returns a dictionary of params.'/> |
| 249 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 250 |
</function> |
| 251 |
<function name='virDomainGetSchedulerParametersFlags' file='python'> |
| 252 |
<info>Get the scheduler parameters</info> |
| 253 |
<return type='char *' info='None in case of error, returns a dictionary of params'/> |
| 254 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 255 |
<arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/> |
| 256 |
</function> |
| 257 |
<function name='virDomainGetSchedulerType' file='python'> |
| 258 |
<info>Get the scheduler type.</info> |
| 259 |
<return type='char *' info='NULL in case of error. The caller must free the returned string.'/> |
| 260 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 261 |
</function> |
| 262 |
<function name='virDomainGetVcpus' file='python'> |
| 263 |
<info>Extract information about virtual CPUs of domain, store it in info array and also in cpumaps.</info> |
| 264 |
<return type='char *' info='None in case of error, returns a tuple of vcpu info and vcpu map.'/> |
| 265 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/> |
| 266 |
</function> |
| 267 |
<function name='virDomainPinVcpu' file='python'> |
| 268 |
<info>Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires privileged access to the hypervisor.</info> |
| 269 |
<return type='int' info='0 in case of success, -1 in case of failure.'/> |
| 270 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/> |
| 271 |
<arg name='vcpu' type='unsigned int' info='virtual CPU number'/> |
| 272 |
<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.'/> |
| 273 |
</function> |
| 274 |
<function name='virDomainPinVcpuFlags' file='python'> |
| 275 |
<info>Dynamically change the real CPUs which can be allocated to a virtual CPU. 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='vcpu' type='unsigned int' info='virtual CPU number'/> |
| 279 |
<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.'/> |
| 280 |
<arg name='flags' type='int' info='flags to specify'/> |
| 281 |
</function> |
| 282 |
<function name='virDomainGetVcpuPinInfo' file='python'> |
| 283 |
<info>Query the CPU affinity setting of all virtual CPUs of domain</info> |
| 284 |
<return type='char *' info='the array of cpumap'/> |
| 285 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/> |
| 286 |
<arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/> |
| 287 |
</function> |
| 288 |
<function name='virDomainGetEmulatorPinInfo' file='python'> |
| 289 |
<info>Query the CPU affinity setting of the emulator process of domain</info> |
| 290 |
<return type='char *' info='the array of cpumap'/> |
| 291 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 292 |
<arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/> |
| 293 |
</function> |
| 294 |
<function name='virDomainPinEmulator' file='python'> |
| 295 |
<info>Dynamically change the real CPUs which can be allocated to the emulator process of a domain. |
| 296 |
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, or NULL for Domain0'/> |
| 299 |
<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.'/> |
| 300 |
<arg name='flags' type='int' info='flags to specify'/> |
| 301 |
</function> |
| 302 |
<function name='virDomainGetIOThreadInfo' file='python'> |
| 303 |
<info>Query the CPU affinity setting of the IOThreads of the domain</info> |
| 304 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/> |
| 305 |
<arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/> |
| 306 |
<return type='char *' info="list of IOThreads information including the iothread_id, the cpumap, and the cpumap length for each iothread_id."/> |
| 307 |
</function> |
| 308 |
<function name='virDomainPinIOThread' file='python'> |
| 309 |
<info>Dynamically change the real CPUs which can be allocated to an IOThread. This function requires privileged access to the hypervisor.</info> |
| 310 |
<return type='int' info='0 in case of success, -1 in case of failure.'/> |
| 311 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 312 |
<arg name='iothread_val' type='unsigned int' info='iothread_id number'/> |
| 313 |
<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.'/> |
| 314 |
<arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/> |
| 315 |
</function> |
| 316 |
<function name='virDomainSetIOThreadParams' file='python'> |
| 317 |
<info>Dynamically allow changing the IOThread polling related parameters. This function requires privileged access to the hypervisor.</info> |
| 318 |
<return type='int' info='0 in case of success, -1 in case of failure.'/> |
| 319 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 320 |
<arg name='iothread_val' type='unsigned int' info='iothread_id number'/> |
| 321 |
<arg name='params' type='virTypedParameterPtr' info='pointer to IOThread polling parameter objects'/> |
| 322 |
<arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/> |
| 323 |
</function> |
| 324 |
<function name='virDomainSetSchedulerParameters' file='python'> |
| 325 |
<info>Change the scheduler parameters</info> |
| 326 |
<return type='int' info='-1 in case of error, 0 in case of success.'/> |
| 327 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 328 |
<arg name='params' type='virSchedParameterPtr' info='pointer to scheduler parameter objects'/> |
| 329 |
</function> |
| 330 |
<function name='virDomainSetSchedulerParametersFlags' file='python'> |
| 331 |
<info>Change the scheduler parameters</info> |
| 332 |
<return type='int' info='-1 in case of error, 0 in case of success.'/> |
| 333 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 334 |
<arg name='params' type='virSchedParameterPtr' info='pointer to scheduler parameter objects'/> |
| 335 |
<arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/> |
| 336 |
</function> |
| 337 |
<function name='virDomainSetBlkioParameters' file='python'> |
| 338 |
<info>Change the blkio tunables</info> |
| 339 |
<return type='int' info='-1 in case of error, 0 in case of success.'/> |
| 340 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 341 |
<arg name='params' type='virBlkioParameterPtr' info='pointer to blkio tunable objects'/> |
| 342 |
<arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/> |
| 343 |
</function> |
| 344 |
<function name='virDomainGetBlkioParameters' file='python'> |
| 345 |
<info>Get the blkio parameters</info> |
| 346 |
<return type='char *' info='None in case of error, returns a dictionary of params'/> |
| 347 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 348 |
<arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/> |
| 349 |
</function> |
| 350 |
<function name='virDomainSetMemoryParameters' file='python'> |
| 351 |
<info>Change the memory tunables</info> |
| 352 |
<return type='int' info='-1 in case of error, 0 in case of success.'/> |
| 353 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 354 |
<arg name='params' type='virMemoryParameterPtr' info='pointer to memory tunable objects'/> |
| 355 |
<arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/> |
| 356 |
</function> |
| 357 |
<function name='virDomainGetMemoryParameters' file='python'> |
| 358 |
<info>Get the memory parameters</info> |
| 359 |
<return type='char *' info='None in case of error, returns a dictionary of params'/> |
| 360 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 361 |
<arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/> |
| 362 |
</function> |
| 363 |
<function name='virDomainSetNumaParameters' file='python'> |
| 364 |
<info>Change the NUMA tunables</info> |
| 365 |
<return type='int' info='-1 in case of error, 0 in case of success.'/> |
| 366 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 367 |
<arg name='params' type='virTypedParameterPtr' info='pointer to numa tunable objects'/> |
| 368 |
<arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/> |
| 369 |
</function> |
| 370 |
<function name='virDomainGetNumaParameters' file='python'> |
| 371 |
<info>Get the NUMA parameters</info> |
| 372 |
<return type='char *' info='returns a dictionary of params in case of success, None in case of error'/> |
| 373 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 374 |
<arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/> |
| 375 |
</function> |
| 376 |
<function name='virDomainGetPerfEvents' file='python'> |
| 377 |
<info>Get all perf events setting.</info> |
| 378 |
<return type='char *' info='returns a dictionary of params in case of success, None in case of error'/> |
| 379 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 380 |
<arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/> |
| 381 |
</function> |
| 382 |
<function name='virDomainSetPerfEvents' file='python'> |
| 383 |
<info>Enable or disable the particular list of perf events</info> |
| 384 |
<return type='int' info='-1 in case of error, 0 in case of success.'/> |
| 385 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 386 |
<arg name='params' type='virTypedParameterPtr' info='pointer to perf events parameter object'/> |
| 387 |
<arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/> |
| 388 |
</function> |
| 389 |
<function name='virDomainSetInterfaceParameters' file='python'> |
| 390 |
<info>Change the bandwidth tunables for a interface device</info> |
| 391 |
<arg name='dom' type='virDomainPtr' info='pointer to the domain'/> |
| 392 |
<arg name='device' type='const char *' info='interface name'/> |
| 393 |
<arg name='params' type='virTypedParameterPtr' info='Pointer to bandwidth tuning params object'/> |
| 394 |
<arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/> |
| 395 |
<return type='int' info='0 in case of success, -1 in case of failure'/> |
| 396 |
</function> |
| 397 |
<function name='virDomainGetInterfaceParameters' file='python'> |
| 398 |
<info>Get the bandwidth tunables for a interface device</info> |
| 399 |
<arg name='dom' type='virDomainPtr' info='pointer to the domain'/> |
| 400 |
<arg name='device' type='const char *' info='interface name'/> |
| 401 |
<arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/> |
| 402 |
<return type='char *' info='the bandwidth tunables value or None in case of error'/> |
| 403 |
</function> |
| 404 |
|
| 405 |
<function name='virConnectListStoragePools' file='python'> |
| 406 |
<info>list the storage pools, stores the pointers to the names in @names</info> |
| 407 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 408 |
<return type='char *' info='the list of Names of None in case of error'/> |
| 409 |
</function> |
| 410 |
<function name='virConnectListDefinedStoragePools' file='python'> |
| 411 |
<info>list the defined storage pool, stores the pointers to the names in @names</info> |
| 412 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 413 |
<return type='char *' info='the list of Names of None in case of error'/> |
| 414 |
</function> |
| 415 |
<function name='virConnectListAllStoragePools' file='python'> |
| 416 |
<info>returns list of all storage pools</info> |
| 417 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 418 |
<arg name='flags' type='unsigned int' info='optional flags'/> |
| 419 |
<return type='char *' info='the list of pools or None in case of error'/> |
| 420 |
</function> |
| 421 |
<function name='virStoragePoolListVolumes' file='python'> |
| 422 |
<info>list the storage volumes, stores the pointers to the names in @names</info> |
| 423 |
<arg name='pool' type='virStoragePoolPtr' info='pointer to the storage pool'/> |
| 424 |
<return type='char *' info='the list of Names or None in case of error'/> |
| 425 |
</function> |
| 426 |
<function name='virStoragePoolListAllVolumes' file='python'> |
| 427 |
<info>return list of storage volume objects</info> |
| 428 |
<arg name='pool' type='virStoragePoolPtr' info='pointer to the storage pool'/> |
| 429 |
<arg name='flags' type='unsigned int' info='optional flags'/> |
| 430 |
<return type='char *' info='the list of volumes or None in case of error'/> |
| 431 |
</function> |
| 432 |
<function name='virStoragePoolGetInfo' file='python'> |
| 433 |
<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> |
| 434 |
<return type='char *' info='the list of information or None in case of error'/> |
| 435 |
<arg name='pool' type='virStoragePoolPtr' info='a storage pool object'/> |
| 436 |
</function> |
| 437 |
<function name='virStorageVolGetInfo' file='python'> |
| 438 |
<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> |
| 439 |
<return type='char *' info='the list of information or None in case of error'/> |
| 440 |
<arg name='vol' type='virStorageVolPtr' info='a storage vol object'/> |
| 441 |
</function> |
| 442 |
<function name='virStorageVolGetInfoFlags' file='python'> |
| 443 |
<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> |
| 444 |
<return type='char *' info='the list of information or None in case of error'/> |
| 445 |
<arg name='vol' type='virStorageVolPtr' info='a storage vol object'/> |
| 446 |
<arg name='flags' type='unsigned int' info='bitwise-OR of virStorageVolInfoFlags'/> |
| 447 |
</function> |
| 448 |
<function name='virNodeListDevices' file='python'> |
| 449 |
<info>list the node devices</info> |
| 450 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 451 |
<arg name='cap' type='const char *' info='capability name'/> |
| 452 |
<arg name='flags' type='unsigned int' info='flags (unused; pass 0)'/> |
| 453 |
<return type='char *' info='the list of Names or None in case of error'/> |
| 454 |
</function> |
| 455 |
<function name='virConnectListAllNodeDevices' file='python'> |
| 456 |
<info>returns list of all host node devices</info> |
| 457 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 458 |
<arg name='flags' type='unsigned int' info='optional flags'/> |
| 459 |
<return type='char *' info='the list of host node device or None in case of error'/> |
| 460 |
</function> |
| 461 |
<function name='virNodeDeviceListCaps' file='python'> |
| 462 |
<info>list the node device's capabilities</info> |
| 463 |
<arg name='dev' type='virNodeDevicePtr' info='pointer to the node device'/> |
| 464 |
<return type='char *' info='the list of Names or None in case of error'/> |
| 465 |
</function> |
| 466 |
<function name='virSecretGetValue' file='libvirt' module='libvirt'> |
| 467 |
<info>Fetches the value associated with a secret.</info> |
| 468 |
<return type='char *' info='the secret value or None in case of error'/> |
| 469 |
<arg name='secret' type='virSecretPtr' info='virSecret secret'/> |
| 470 |
<arg name='flags' type='unsigned int' info='flags (unused; pass 0)'/> |
| 471 |
</function> |
| 472 |
<function name='virConnectListSecrets' file='libvirt' module='libvirt'> |
| 473 |
<info>List the defined secret IDs</info> |
| 474 |
<arg name='conn' type='virConnectPtr' info='virConnect connection'/> |
| 475 |
<return type='char *' info='the list of secret IDs or None in case of error'/> |
| 476 |
</function> |
| 477 |
<function name='virConnectListAllSecrets' file='python'> |
| 478 |
<info>returns list of all interfaces</info> |
| 479 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 480 |
<arg name='flags' type='unsigned int' info='optional flags'/> |
| 481 |
<return type='char *' info='the list of secrets or None in case of error'/> |
| 482 |
</function> |
| 483 |
<function name='virSecretSetValue' file='libvirt' module='libvirt'> |
| 484 |
<info>Associates a value with a secret.</info> |
| 485 |
<return type='int' info='0 on success, -1 on failure.'/> |
| 486 |
<arg name='secret' type='virSecretPtr' info='virSecret secret'/> |
| 487 |
<arg name='value' type='const char *' info='The secret value'/> |
| 488 |
<arg name='flags' type='unsigned int' info='flags (unused; pass 0)'/> |
| 489 |
</function> |
| 490 |
<function name='virSecretLookupByUUID' file='python'> |
| 491 |
<info>Try to lookup a secret on the given hypervisor based on its UUID.</info> |
| 492 |
<return type='virSecretPtr' info='a new secret object or NULL in case of failure'/> |
| 493 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 494 |
<arg name='uuid' type='const unsigned char *' info='the UUID string for the secret, must be 16 bytes'/> |
| 495 |
</function> |
| 496 |
<function name='virSecretGetUUID' file='python'> |
| 497 |
<info>Extract the UUID unique Identifier of a secret.</info> |
| 498 |
<return type='char *' info='the 16 bytes string or None in case of error'/> |
| 499 |
<arg name='secret' type='virSecretPtr' info='a secret object'/> |
| 500 |
</function> |
| 501 |
<function name='virSecretGetUUIDString' file='python'> |
| 502 |
<info>Fetch globally unique ID of the secret as a string.</info> |
| 503 |
<return type='char *' info='the UUID string or None in case of error'/> |
| 504 |
<arg name='secret' type='virSecretPtr' info='a secret object'/> |
| 505 |
</function> |
| 506 |
<function name='virConnectListNWFilters' file='libvirt' module='libvirt'> |
| 507 |
<info>List the defined network filters</info> |
| 508 |
<arg name='conn' type='virConnectPtr' info='virConnect connection'/> |
| 509 |
<return type='char *' info='the list of network filter IDs or None in case of error'/> |
| 510 |
</function> |
| 511 |
<function name='virConnectListAllNWFilters' file='python'> |
| 512 |
<info>returns list of all network fitlers</info> |
| 513 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 514 |
<arg name='flags' type='unsigned int' info='optional flags'/> |
| 515 |
<return type='char *' info='the list of network filters or None in case of error'/> |
| 516 |
</function> |
| 517 |
<function name='virConnectListAllNWFilterBindings' file='python'> |
| 518 |
<info>returns list of all network fitler bindings</info> |
| 519 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 520 |
<arg name='flags' type='unsigned int' info='optional flags'/> |
| 521 |
<return type='char *' info='the list of network filter bindings or None in case of error'/> |
| 522 |
</function> |
| 523 |
<function name='virNWFilterLookupByUUID' file='python'> |
| 524 |
<info>Try to lookup a network filter on the given hypervisor based on its UUID.</info> |
| 525 |
<return type='virNWFilterPtr' info='a new network filter object or NULL in case of failure'/> |
| 526 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 527 |
<arg name='uuid' type='const unsigned char *' info='the UUID string for the secret, must be 16 bytes'/> |
| 528 |
</function> |
| 529 |
<function name='virNWFilterGetUUID' file='python'> |
| 530 |
<info>Extract the UUID unique Identifier of a network filter.</info> |
| 531 |
<return type='char *' info='the 16 bytes string or None in case of error'/> |
| 532 |
<arg name='nwfilter' type='virNWFilterPtr' info='a network filter object'/> |
| 533 |
</function> |
| 534 |
<function name='virNWFilterGetUUIDString' file='python'> |
| 535 |
<info>Fetch globally unique ID of the network filter as a string.</info> |
| 536 |
<return type='char *' info='the UUID string or None in case of error'/> |
| 537 |
<arg name='nwfilter' type='virNWFilterPtr' info='a network filter object'/> |
| 538 |
</function> |
| 539 |
<function name='virConnectListInterfaces' file='python'> |
| 540 |
<info>list the running interfaces, stores the pointers to the names in @names</info> |
| 541 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 542 |
<return type='char *' info='the list of Names of None in case of error'/> |
| 543 |
</function> |
| 544 |
<function name='virConnectListDefinedInterfaces' file='python'> |
| 545 |
<info>list the defined interfaces, stores the pointers to the names in @names</info> |
| 546 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 547 |
<return type='char *' info='the list of Names of None in case of error'/> |
| 548 |
</function> |
| 549 |
<function name='virConnectListAllInterfaces' file='python'> |
| 550 |
<info>returns list of all interfaces</info> |
| 551 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 552 |
<arg name='flags' type='unsigned int' info='optional flags'/> |
| 553 |
<return type='char *' info='the list of interfaces or None in case of error'/> |
| 554 |
</function> |
| 555 |
<function name='virConnectBaselineCPU' file='python'> |
| 556 |
<info>Computes the most feature-rich CPU which is compatible with all given host CPUs.</info> |
| 557 |
<return type='char *' info='XML description of the computed CPU or NULL on error.'/> |
| 558 |
<arg name='conn' type='virConnectPtr' info='virConnect connection'/> |
| 559 |
<arg name='xmlCPUs' type='const char **' info='array of XML descriptions of host CPUs'/> |
| 560 |
<arg name='flags' type='unsigned int' info='fine-tuning flags, currently unused, pass 0.'/> |
| 561 |
</function> |
| 562 |
<function name='virConnectGetCPUModelNames' file='python'> |
| 563 |
<info>Get the list of supported CPU models.</info> |
| 564 |
<return type='char *' info='list of supported CPU models'/> |
| 565 |
<arg name='conn' type='virConnectPtr' info='virConnect connection'/> |
| 566 |
<arg name='arch' type='const char *' info='arch'/> |
| 567 |
<arg name='flags' type='unsigned int' info='fine-tuning flags, currently unused, pass 0.'/> |
| 568 |
</function> |
| 569 |
<function name='virDomainSnapshotListNames' file='python'> |
| 570 |
<info>collect the list of snapshot names for the given domain</info> |
| 571 |
<arg name='dom' type='virDomainPtr' info='pointer to the domain'/> |
| 572 |
<arg name='flags' type='unsigned int' info='flags'/> |
| 573 |
<return type='char *' info='the list of Names or None in case of error'/> |
| 574 |
</function> |
| 575 |
<function name='virDomainListAllSnapshots' file='python'> |
| 576 |
<info>returns the list of snapshots for the given domain</info> |
| 577 |
<arg name='dom' type='virDomainPtr' info='pointer to the domain'/> |
| 578 |
<arg name='flags' type='unsigned int' info='flags'/> |
| 579 |
<return type='char *' info='the list of snapshots or None in case of error'/> |
| 580 |
</function> |
| 581 |
<function name='virDomainSnapshotListChildrenNames' file='python'> |
| 582 |
<info>collect the list of child snapshot names for the given snapshot</info> |
| 583 |
<arg name='snapshot' type='virDomainSnapshotPtr' info='pointer to the snapshot'/> |
| 584 |
<arg name='flags' type='unsigned int' info='flags'/> |
| 585 |
<return type='char *' info='the list of Names or None in case of error'/> |
| 586 |
</function> |
| 587 |
<function name='virDomainSnapshotListAllChildren' file='python'> |
| 588 |
<info>returns the list of child snapshots for the given snapshot</info> |
| 589 |
<arg name='snapshot' type='virDomainSnapshotPtr' info='pointer to the snapshot'/> |
| 590 |
<arg name='flags' type='unsigned int' info='flags'/> |
| 591 |
<return type='char *' info='the list of snapshots or None in case of error'/> |
| 592 |
</function> |
| 593 |
<function name='virDomainRevertToSnapshot' file='python'> |
| 594 |
<info>revert the domain to the given snapshot</info> |
| 595 |
<arg name='dom' type='virDomainPtr' info='dummy domain pointer'/> |
| 596 |
<arg name='snap' type='virDomainSnapshotPtr' info='pointer to the snapshot'/> |
| 597 |
<arg name='flags' type='unsigned int' info='flags'/> |
| 598 |
<return type='int' info="0 on success, -1 on error"/> |
| 599 |
</function> |
| 600 |
<function name='virDomainListAllCheckpoints' file='python'> |
| 601 |
<info>returns the list of checkpoints for the given domain</info> |
| 602 |
<arg name='dom' type='virDomainPtr' info='pointer to the domain'/> |
| 603 |
<arg name='flags' type='unsigned int' info='flags'/> |
| 604 |
<return type='char *' info='the list of checkpoints or None in case of error'/> |
| 605 |
</function> |
| 606 |
<function name='virDomainCheckpointListAllChildren' file='python'> |
| 607 |
<info>collect the list of child checkpoint names for the given checkpoint</info> |
| 608 |
<arg name='checkpoint' type='virDomainCheckpointPtr' info='pointer to the checkpoint'/> |
| 609 |
<arg name='flags' type='unsigned int' info='flags'/> |
| 610 |
<return type='char *' info='the list of checkpoints or None in case of error'/> |
| 611 |
</function> |
| 612 |
<function name='virDomainGetBlockJobInfo' file='python'> |
| 613 |
<info>Get progress information for a block job</info> |
| 614 |
<arg name='dom' type='virDomainPtr' info='pointer to the domain'/> |
| 615 |
<arg name='path' type='const char *' info='Fully-qualified filename of disk'/> |
| 616 |
<arg name='flags' type='unsigned int' info='fine-tuning flags, currently unused, pass 0.'/> |
| 617 |
<return type='char *' info='A dictionary containing job information.' /> |
| 618 |
</function> |
| 619 |
<function name='virDomainMigrateGetCompressionCache' file='python'> |
| 620 |
<info>Get current size of the cache (in bytes) used for compressing |
| 621 |
repeatedly transferred memory pages during live migration.</info> |
| 622 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 623 |
<arg name='flags' type='unsigned int' info='flags, currently unused, pass 0.'/> |
| 624 |
<return type='unsigned long long' info='current cache size, or None in case of error'/> |
| 625 |
</function> |
| 626 |
<function name='virDomainMigrateGetMaxSpeed' file='python'> |
| 627 |
<info>Get currently configured maximum migration speed for a domain</info> |
| 628 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 629 |
<arg name='flags' type='unsigned int' info='flags, currently unused, pass 0.'/> |
| 630 |
<return type='unsigned long' info='current max migration speed, or None in case of error'/> |
| 631 |
</function> |
| 632 |
<function name='virDomainMigrateGetMaxDowntime' file='python'> |
| 633 |
<info>Get the current value of the maximum downtime (in milliseconds) |
| 634 |
allowed during a migration of a guest.</info> |
| 635 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 636 |
<arg name='flags' type='unsigned int' info='flags, currently unused, pass 0.'/> |
| 637 |
<return type='unsigned long long' info='current downtime or None in case of error'/> |
| 638 |
</function> |
| 639 |
<function name='virDomainMigrate3' file='python'> |
| 640 |
<info>Migrate the domain object from its current host to the destination host |
| 641 |
given by dconn (a connection to the destination host).</info> |
| 642 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 643 |
<arg name='dconn' type='virConnectPtr' info='pointer to the destination host connection'/> |
| 644 |
<arg name='params' type='char *' info='dictionary with migration parameters'/> |
| 645 |
<arg name='flags' type='unsigned int' info='an OR'ed set of virDomainMigrateFlags'/> |
| 646 |
<return type='virDomainPtr' info='a new domain object or NULL in case of failure'/> |
| 647 |
</function> |
| 648 |
<function name='virDomainMigrateToURI3' file='python'> |
| 649 |
<info>Migrate the domain object from its current host to the destination host |
| 650 |
given by URI.</info> |
| 651 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 652 |
<arg name='dconnuri' type='char *' info='URI for target libvirtd if @flags includes VIR_MIGRATE_PEER2PEER'/> |
| 653 |
<arg name='params' type='char *' info='dictionary with migration parameters'/> |
| 654 |
<arg name='flags' type='unsigned int' info='an OR'ed set of virDomainMigrateFlags'/> |
| 655 |
<return type='int' info='0 in case of success, -1 in case of failure.'/> |
| 656 |
</function> |
| 657 |
<function name='virDomainSetBlockIoTune' file='python'> |
| 658 |
<info>Change the I/O tunables for a block device</info> |
| 659 |
<arg name='dom' type='virDomainPtr' info='pointer to the domain'/> |
| 660 |
<arg name='disk' type='const char *' info='disk name'/> |
| 661 |
<arg name='params' type='virTypedParameterPtr' info='Pointer to blkio tuning params object'/> |
| 662 |
<arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/> |
| 663 |
<return type='int' info='0 in case of success, -1 in case of failure'/> |
| 664 |
</function> |
| 665 |
<function name='virDomainGetBlockIoTune' file='python'> |
| 666 |
<info>Get the I/O tunables for a block device</info> |
| 667 |
<arg name='dom' type='virDomainPtr' info='pointer to the domain'/> |
| 668 |
<arg name='disk' type='const char *' info='disk name'/> |
| 669 |
<arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/> |
| 670 |
<return type='char *' info='the I/O tunables value or None in case of error'/> |
| 671 |
</function> |
| 672 |
<function name='virDomainBlockPeek' file='python'> |
| 673 |
<info>Read the contents of domain's disk device</info> |
| 674 |
<arg name='dom' type='virDomainPtr' info='pointer to the domain'/> |
| 675 |
<arg name='disk' type='const char *' info='disk name'/> |
| 676 |
<arg name='offset' type='unsigned long long' info='offset within block device'/> |
| 677 |
<arg name='size' type='size_t' info='size to read'/> |
| 678 |
<arg name='flags' type='unsigned int' info='unused, always pass 0'/> |
| 679 |
<return type='char *' info='the returned buffer or None in case of error'/> |
| 680 |
</function> |
| 681 |
<function name='virDomainMemoryPeek' file='python'> |
| 682 |
<info>Read the contents of domain's memory</info> |
| 683 |
<arg name='dom' type='virDomainPtr' info='pointer to the domain'/> |
| 684 |
<arg name='start' type='unsigned long long' info='start of memory to peek'/> |
| 685 |
<arg name='size' type='size_t' info='size of memory to peek'/> |
| 686 |
<arg name='flags' type='unsigned int' info='an OR'ed set of virDomainMemoryFlags'/> |
| 687 |
<return type='char *' info='the returned buffer or None in case of error'/> |
| 688 |
</function> |
| 689 |
<function name='virDomainGetDiskErrors' file='python'> |
| 690 |
<info>Extract errors on disk devices.</info> |
| 691 |
<return type='char *' info='dictionary of disks and their errors or None in case of error'/> |
| 692 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 693 |
<arg name='flags' type='unsigned int' info='unused, always pass 0'/> |
| 694 |
</function> |
| 695 |
<function name='virNodeSetMemoryParameters' file='python'> |
| 696 |
<info>Change the node memory tunables</info> |
| 697 |
<return type='int' info='-1 in case of error, 0 in case of success.'/> |
| 698 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 699 |
<arg name='params' type='virTypedParameterPtr' info='pointer to the memory tunable objects'/> |
| 700 |
<arg name='flags' type='int' info='unused, always pass 0'/> |
| 701 |
</function> |
| 702 |
<function name='virNodeGetMemoryParameters' file='python'> |
| 703 |
<info>Get the node memory parameters</info> |
| 704 |
<return type='char *' info='None in case of error, returns a dictionary of params'/> |
| 705 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 706 |
<arg name='flags' type='int' info='unused, always pass 0'/> |
| 707 |
</function> |
| 708 |
<function name='virNodeGetCPUMap' file='python'> |
| 709 |
<info>Get node CPU information</info> |
| 710 |
<return type='char *' info='(cpunum, cpumap, online) on success, None on error'/> |
| 711 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 712 |
<arg name='flags' type='int' info='unused, pass 0'/> |
| 713 |
</function> |
| 714 |
<function name="virNodeGetFreePages" file='python'> |
| 715 |
<info>Returns the number of available pages for a list of cells and page sizes</info> |
| 716 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 717 |
<arg name='pages' type='char *' info='list of desired page sizes'/> |
| 718 |
<arg name='startCell' type='int' info='first cell in the list'/> |
| 719 |
<arg name='maxCells' type='int' info='number of cell in the list'/> |
| 720 |
<arg name='flags' type='int' info='unused, pass 0'/> |
| 721 |
<return type='char *' info='the list available memory in the cells'/> |
| 722 |
</function> |
| 723 |
<function name="virNetworkGetDHCPLeases" file='python'> |
| 724 |
<info>Returns a list of dhcp leases for interfaces connected to the given virtual network</info> |
| 725 |
<arg name='network' type='virNetworkPtr' info='a network object'/> |
| 726 |
<arg name='mac' type='const char *' info='optional mac address'/> |
| 727 |
<arg name='flags' type='unsigned int' info='unused, pass 0'/> |
| 728 |
<return type='char *' info="list of leases"/> |
| 729 |
</function> |
| 730 |
<function name="virDomainBlockCopy" file="python"> |
| 731 |
<info>Copy the guest-visible contents of a disk image to a new file described by destxml</info> |
| 732 |
<arg name='dom' type='virDomainPtr' info='pointer to domain object'/> |
| 733 |
<arg name='disk' type='const char *' info='path to the block device, or device shorthand'/> |
| 734 |
<arg name='destxml' type='const char *' info='XML description of the copy destination'/> |
| 735 |
<arg name='params' type='virTypedParameterPtr' info='optional pointer to block copy parameter object, or NULL'/> |
| 736 |
<arg name='flags' type='unsigned int' info='bitwise-OR of virDomainBlockCopyFlags'/> |
| 737 |
<return type='int' info='0 if the operation has started, -1 on failure'/> |
| 738 |
</function> |
| 739 |
<function name="virNodeAllocPages" file='python'> |
| 740 |
<info>Allocate or free some pages in the huge pages pool</info> |
| 741 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 742 |
<arg name='pages' type='char *' info='dictionary of desired page sizes, key is page size, value is page count'/> |
| 743 |
<arg name='startCell' type='int' info='optional first cell in the list'/> |
| 744 |
<arg name='cellCount' type='int' info='optional number of cell in the list'/> |
| 745 |
<arg name='flags' type='unsigned int' info='an OR'ed set of virNodeAllocPagesFlags'/> |
| 746 |
<return type='int' info='the number of nodes successfully adjusted or -1 in case of an error'/> |
| 747 |
</function> |
| 748 |
<function name="virDomainGetFSInfo" file='python'> |
| 749 |
<info>Get a list of mapping information for each mounted file systems within the specified guest and the disks.</info> |
| 750 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 751 |
<arg name='flags' type='unsigned int' info='unused, pass 0'/> |
| 752 |
<return type='char *' info="list of mounted filesystems information"/> |
| 753 |
</function> |
| 754 |
<function name='virDomainInterfaceAddresses' file='python'> |
| 755 |
<info>returns a dictionary of domain interfaces along with their MAC and IP addresses</info> |
| 756 |
<arg name='dom' type='virDomainPtr' info='pointer to the domain'/> |
| 757 |
<arg name='source' type='unsigned int' info='the data source'/> |
| 758 |
<arg name='flags' type='unsigned int' info='extra flags; not used yet, so callers should always pass 0'/> |
| 759 |
<return type='char *' info="dictionary of domain interfaces along with their MAC and IP addresses"/> |
| 760 |
</function> |
| 761 |
<function name='virDomainGetGuestVcpus' file='python'> |
| 762 |
<info>returns a dictionary containing information regarding guest vcpus</info> |
| 763 |
<arg name='dom' type='virDomainPtr' info='pointer to the domain'/> |
| 764 |
<arg name='flags' type='unsigned int' info='extra flags; not used yet, so callers should always pass 0'/> |
| 765 |
<return type='int' info="dictionary of vcpu data returned by the guest agent"/> |
| 766 |
</function> |
| 767 |
<function name='virConnectBaselineHypervisorCPU' file='python'> |
| 768 |
<info>Computes the most feature-rich CPU which is compatible with all given CPUs and can be provided by the specified hypervisor.</info> |
| 769 |
<return type='char *' info='XML description of the computed CPU or NULL on error.'/> |
| 770 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 771 |
<arg name='emulator' type='const char *' info='path to the emulator binary'/> |
| 772 |
<arg name='arch' type='const char *' info='CPU architecture'/> |
| 773 |
<arg name='machine' type='const char *' info='machine type'/> |
| 774 |
<arg name='virttype' type='const char *' info='virtualization type'/> |
| 775 |
<arg name='xmlCPUs' type='const char **' info='array of XML descriptions of CPUs'/> |
| 776 |
<arg name='flags' type='unsigned int' info='bitwise-OR of virConnectBaselineCPUFlags'/> |
| 777 |
</function> |
| 778 |
<function name='virDomainGetLaunchSecurityInfo' file='python'> |
| 779 |
<info>Get launch security info for a domain</info> |
| 780 |
<return type='char *' info='None in case of error, returns a dictionary of params'/> |
| 781 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 782 |
<arg name='flags' type='int' info='unused, always pass 0'/> |
| 783 |
</function> |
| 784 |
<function name='virNodeGetSEVInfo' file='python'> |
| 785 |
<info>Get platform specific information from the SEV firmware</info> |
| 786 |
<return type='char *' info='None in case of error, returns a dictionary of params'/> |
| 787 |
<arg name='conn' type='virConnectPtr' info='pointer to hypervisor connection'/> |
| 788 |
<arg name='flags' type='int' info='unused, always pass 0'/> |
| 789 |
</function> |
| 790 |
<function name='virConnectGetDomainCapabilities' file='libvirt-domain' module='libvirt-domain'> |
| 791 |
<info>Query domain capabilities</info> |
| 792 |
<return type='char *' info='NULL in case of error or an XML string defining the capabilities.'/> |
| 793 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 794 |
<arg name='emulatorbin' type='const char *' info='optional path to emulator'/> |
| 795 |
<arg name='arch' type='const char *' info='optional domain architecture'/> |
| 796 |
<arg name='machine' type='const char *' info='optional machine type'/> |
| 797 |
<arg name='virttype' type='const char *' info='optional virtualization type'/> |
| 798 |
<arg name='flags' type='int' info='unused, always pass 0'/> |
| 799 |
</function> |
| 800 |
<function name='virNetworkPortSetParameters' file='python'> |
| 801 |
<info>Change the port tunables</info> |
| 802 |
<return type='int' info='-1 in case of error, 0 in case of success.'/> |
| 803 |
<arg name='port' type='virNetworkPortPtr' info='pointer to network port object'/> |
| 804 |
<arg name='params' type='virTypedParameterPtr' info='pointer to tunable objects'/> |
| 805 |
<arg name='flags' type='int' info='unused, always pass 0'/> |
| 806 |
</function> |
| 807 |
<function name='virNetworkPortGetParameters' file='python'> |
| 808 |
<info>Get the port parameters</info> |
| 809 |
<return type='char *' info='None in case of error, returns a dictionary of params'/> |
| 810 |
<arg name='port' type='virNetworkPortPtr' info='pointer to network port object'/> |
| 811 |
<arg name='flags' type='int' info='unused, always pass 0'/> |
| 812 |
</function> |
| 813 |
<function name='virDomainGetGuestInfo' file='python'> |
| 814 |
<info>Get aggregated info from guest agent</info> |
| 815 |
<return type='char *' info='None in case of error, returns a dictionary of params'/> |
| 816 |
<arg name='dom' type='virDomainPtr' info='pointer to the domain'/> |
| 817 |
<arg name='types' type='int' info='optional binary-OR of virDomainGuestInfoTypes'/> |
| 818 |
<arg name='flags' type='int' info='unused, always pass 0'/> |
| 819 |
</function> |
| 820 |
<function name='virConnectSetIdentity' file='libvirt-host' module='libvirt-host'> |
| 821 |
<info>Override the default identity information associated with the connection.</info> |
| 822 |
<return type='int' info='0 if the identity change was accepted, -1 on error'/> |
| 823 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 824 |
<arg name='params' type='virTypedParameterPtr' info='parameters containing the identity attributes'/> |
| 825 |
<arg name='flags' type='unsigned int' info='currently unused, pass 0'/> |
| 826 |
</function> |
| 827 |
<function name='virDomainAuthorizedSSHKeysGet' file='python'> |
| 828 |
<info>Fetch list of public SSH authorized keys for given user in domain.</info> |
| 829 |
<return type='char *' info='list of authorized keys'/> |
| 830 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 831 |
<arg name='user' type='const char *' info='user'/> |
| 832 |
<arg name='flags' type='unsigned int' info='optional fine-tuning flags, currently unused, pass 0.'/> |
| 833 |
</function> |
| 834 |
<function name='virDomainAuthorizedSSHKeysSet' file='python'> |
| 835 |
<info>Manipulate set of public SSH authorized keys for given user in domain.</info> |
| 836 |
<return type='int' info='0 in case of success, -1 in case of failure.'/> |
| 837 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 838 |
<arg name='user' type='const char *' info='user'/> |
| 839 |
<arg name='keys' type='char *' info='optional list of authorized keys to set/append/remove'/> |
| 840 |
<arg name='flags' type='int' info='optional OR'ed set of virDomainAuthorizedSSHKeysSetFlags'/> |
| 841 |
</function> |
| 842 |
<function name='virDomainGetMessages' file='python'> |
| 843 |
<info>Fetch list of messages reported against domain.</info> |
| 844 |
<return type='char *' info='list of messages'/> |
| 845 |
<arg name='domain' type='virDomainPtr' info='a domain object'/> |
| 846 |
<arg name='flags' type='unsigned int' info='optional fine-tuning flags'/> |
| 847 |
</function> |
| 848 |
<function name='virDomainSetLaunchSecurityState' file='python'> |
| 849 |
<info>Set a launch security secret in the guest's memory.</info> |
| 850 |
<return type='int' info='0 in case of success, -1 in case of failure.'/> |
| 851 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 852 |
<arg name='params' type='virTypedParameterPtr' info='pointer to launch security state objects'/> |
| 853 |
<arg name='flags' type='unsigned int' info='currently used, set to 0.'/> |
| 854 |
</function> |
| 855 |
<function name='virDomainSaveParams' file='python'> |
| 856 |
<info>This method will suspend a domain and save its memory contents to a file on disk.</info> |
| 857 |
<return type='int' info='0 in case of success and -1 in case of failure'/> |
| 858 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 859 |
<arg name='params' type='virTypedParameterPtr' info='pointer to save parameter objects'/> |
| 860 |
<arg name='flags' type='int' info='an OR'ed set of virDomainSaveRestoreFlags'/> |
| 861 |
</function> |
| 862 |
<function name='virDomainRestoreParams' file='python'> |
| 863 |
<info>This method will restore a domain saved to disk.</info> |
| 864 |
<return type='int' info='0 in case of success and -1 in case of failure'/> |
| 865 |
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> |
| 866 |
<arg name='params' type='virTypedParameterPtr' info='pointer to save parameter objects'/> |
| 867 |
<arg name='flags' type='int' info='an OR'ed set of virDomainSaveRestoreFlags'/> |
| 868 |
</function> |
| 869 |
<function name='virDomainGetAutostartOnce' file='python'> |
| 870 |
<info>Provides a boolean value indicating whether the domain is configured to be automatically started the next time the host machine boots only.</info> |
| 871 |
<return type='int' info='the autostart flag, or None in case of error'/> |
| 872 |
<arg name='domain' type='virDomainPtr' info='a network object'/> |
| 873 |
</function> |
| 874 |
<function name='virDomainSetThrottleGroup' file='python'> |
| 875 |
<info>Add throttlegroup or change all of the throttlegroup options within specific domain.</info> |
| 876 |
<return type='int' info='0 in case of success and -1 in case of failure'/> |
| 877 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 878 |
<arg name='group' type='const char *' info='throttle group name'/> |
| 879 |
<arg name='params' type='virTypedParameterPtr' info='pointer to blkio parameter objects'/> |
| 880 |
<arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/> |
| 881 |
</function> |
| 882 |
<function name='virDomainAnnounceInterface' file='python'> |
| 883 |
<info>Cause this domain to "announce" its network interfaces by injecting a series of "gratuitous ARP" packets into the outgoing data stream for the interface matching @device (or all interfaces).</info> |
| 884 |
<return type='int' info='0 in case of success and -1 in case of failure'/> |
| 885 |
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> |
| 886 |
<arg name='device' type='const char *' info='the interface name or mac address, or None to announce all interfaces'/> |
| 887 |
<arg name='params' type='virTypedParameterPtr' info='parameters containing announce attributes'/> |
| 888 |
<arg name='flags' type='unsigned int' info='currently unused, pass 0'/> |
| 889 |
</function> |
| 890 |
</symbols> |
| 891 |
</api> |