Ce contenu n'est pas disponible dans la langue sélectionnée.
12.7. Glance Image Storage Domains
12.7.1. Glance Image Storage Domains Copier lienLien copié sur presse-papiers!
Image represent instances of an OpenStack image service that has been added to the Red Hat Virtualization environment as an external provider. These Glance image storage domains contain an images sub-collection with virtual machine images that have been exported to or can be imported from that Glance image storage domain.
Example 12.12. Listing the images sub-collection of a Glance image storage domain
GET /ovirt-engine/api/storagedomains/00000000-0000-0000-0000-000000000000/images
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<images>
<image href="/ovirt-engine/api/storagedomains/00000000-0000-0000-0000-000000000000/images/
00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000">
<actions>
<link href="/ovirt-engine/api/storagedomains/00000000-0000-0000-0000-000000000000/images/
00000000-0000-0000-0000-000000000000/import" rel="import"/>
</actions>
<name>RHEL_65_Disk_001</name>
<storage_domain href="/ovirt-engine/api/storagedomains/00000000-0000-0000-0000-000000000000"
id="00000000-0000-0000-0000-000000000000"/>
</image>
<image href="/ovirt-engine/api/storagedomains/00000000-0000-0000-0000-000000000000/images/
00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000">
<actions>
<link href="/ovirt-engine/api/storagedomains/00000000-0000-0000-0000-000000000000/images/
00000000-0000-0000-0000-000000000000/import" rel="import"/>
</actions>
<name>RHEL_65_Disk_002</name>
<storage_domain href="/ovirt-engine/api/storagedomains/00000000-0000-0000-0000-000000000000"
id="00000000-0000-0000-0000-000000000000"/>
</image>
</images>
import action imports a virtual machine image from a Glance image storage domain. The destination storage domain is specified with a storage_domain reference, and the destination cluster with a cluster reference.
name element to give the virtual machine or template a specific name.
Example 12.13. Action to import a virtual machine from a Glance image storage domain
POST /ovirt-engine/api/storagedomains/00000000-0000-0000-000000000000/images/
00000000-0000-0000-000000000000/import HTTP/1.1
Accept: application/xml
Content-type: application/xml
<action>
<storage_domain>
<name>images0</name>
</storage_domain>
<cluster>
<name>images0</name>
</cluster>
</action>
import_as_template reference:
Example 12.14. Action to import a virtual machine from a Glance image storage domain as a template
POST /ovirt-engine/api/storagedomains/00000000-0000-0000-000000000000/images/
00000000-0000-0000-000000000000/import HTTP/1.1
Accept: application/xml
Content-type: application/xml
<action>
<storage_domain>
<name>images0</name>
</storage_domain>
<cluster>
<name>images0</name>
</cluster>
</import_as_template>true</import_as_template>
</action>