Ce contenu n'est pas disponible dans la langue sélectionnée.
2.12. Example: Activating Storage Domains using Python
Once you have added storage domains to Red Hat Virtualization and attached them to a data center you must activate them before they will be ready for use.
Example 2.11. Activating storage domains using Python
This Python example activates a data storage domain named
data1
, and an ISO storage domain named iso1
. Both storage domains are attached to the Default
data center. The activate action is facilitated by the activate
method of the storage domain.
If the
activate
requests are successful then the script will output:
Activated data storage domain 'data1' in data center 'Default' (Status: active). Activated ISO storage domain 'iso1' in data center 'Default' (Status: active).
Activated data storage domain 'data1' in data center 'Default' (Status: active).
Activated ISO storage domain 'iso1' in data center 'Default' (Status: active).
Note that the
status
reflects that the storage domains have been activated.