GoVirt.Proxy¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Use REST API as an admin |
||
r/w |
Virt CA certificate to use for HTTPS REST communication |
||
r/w |
oVirt/RHEV JSESSIONID |
||
r/w |
oVirt/RHEV SSO token |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GoVirt.Proxy(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- fetch_api()¶
- Raises:
- Return type:
- fetch_api_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
orNone
) – completion callback
- fetch_api_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – async method result- Raises:
- Returns:
an
GoVirt.Api
instance to interact with oVirt/RHEV REST API.- Return type:
- fetch_ca_certificate()¶
- Raises:
- Return type:
- fetch_ca_certificate_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
orNone
) –
- fetch_ca_certificate_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) –- Raises:
- Return type:
- fetch_vms()¶
- Raises:
- Return type:
- fetch_vms_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
orNone
) – completion callback
- fetch_vms_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – async method result- Raises:
- Returns:
the list of
GoVirt.Vm
associated withGoVirt.Proxy
. The returned list should be freed with g_list_free(), and can become invalid any time aGoVirt.Proxy
call completes.- Return type:
- get_api()¶
- Returns:
an
GoVirt.Api
instance used to interact with oVirt REST API.- Return type:
Gets the api entry point to access remote oVirt resources and collections. This method does not initiate any network activity, the remote API entry point must have been fetched with
GoVirt.Proxy.fetch_api
() orGoVirt.Proxy.fetch_api_async
() before calling this function.
- get_vms()¶
- Returns:
the list of
GoVirt.Vm
associated withGoVirt.Proxy
. The returned list should be freed with g_list_free(), and can become invalid any time aGoVirt.Proxy
call completes.- Return type:
Gets the list of remote VMs from the proxy object. This method does not initiate any network activity, the remote VM list must have been fetched with
GoVirt.Proxy.fetch_vms
() orGoVirt.Proxy.fetch_vms_async
() before calling this function.
- lookup_vm(vm_name)¶
- Parameters:
vm_name (
str
) – name of the virtual machine to lookup- Returns:
- Return type:
Looks up a virtual machine whose name is name. If it cannot be found,
None
is returned. This method does not initiate any network activity, the remote VM list must have been fetched withGoVirt.Proxy.fetch_vms
() orGoVirt.Proxy.fetch_vms_async
() before calling this function.
Property Details¶
- GoVirt.Proxy.props.admin¶
-
Indicates whether to connect to the REST API as an admin, or as a regular user. Different content will be shown for the same user depending on if they connect as an admin or not. Connecting as an admin requires to have admin priviledges on the oVirt instance.
New in version 0.0.2.
- GoVirt.Proxy.props.ca_cert¶
- Name:
ca-cert
- Type:
- Default Value:
- Flags:
Path to a file containing the CA certificates to use for the HTTPS REST API communication with the oVirt instance
- GoVirt.Proxy.props.session_id¶
-
jsessionid cookie value. This allows to use the REST API without authenticating first. This was used by oVirt 3.6 and is now replaced by
GoVirt.Proxy
:sso-token
.New in version 0.3.1.