Este conteúdo não está disponível no idioma selecionado.
2.9. Example: Approving a Host using Python
Red Hat Enterprise Virtualization Hypervisor hosts are added to the Red Hat Enterprise Virtualization Manager during their configuration. Once you have added a Hypervisor it requires approval in the Manager before it can actually be used in the environment.
Example 2.8. Approving a host using Python
This Python example calls the
approve
method for a host named Atlantic
.
If the
approve
request is successful then the script will output:
Host 'Atlantic' approved (Status: Up).
Host 'Atlantic' approved (Status: Up).
Note that the
status
reflects that the host has been approved and is now considered to be up
.