https://ovirt.mydomains/ovirt-engine/apidoc/#/ is not working (page is blank, 
has ovirt horizontal menu, but content is empty).

You may mean the page 
https://ovirt.mydomains/ovirt-engine/apidoc/#/services/disk/methods/update

It works for me, but the information I see on it seems insufficient (unusable) 
to me:

update

This operation updates the disk with the appropriate parameters. The only field 
that can be updated is qcow_version.

For example, disk update can be done using the following request:

PUT /ovirt-engine/api/disks/123

With a request body like this:

<disk>
  <qcow_version>qcow2_v3</qcow_version>
</disk>

Since the backend operation is asynchronous, the disk element that is returned 
to the user might not be synced with the changed properties.

I have HTTP Error 400: Bad Request  Request syntactically incorrect. But syntax 
is OK:

Ansible:

---

  - name: REST call w XML body 
    uri: 
      url: https://ovirt.{{ domain }}/ovirt-engine/api/disks/{{ diskid }}
      user: {{ user }}
      password: {{ password }}
      method: PUT
      validate_certs: no
      headers: 
        Content-Type: "application/xml"
      #body_format: raw
      body: "{{lookup('file','put.xml')}}" 
    register: result

put.xml:

<disk>
        <provisioned_size>18737418240</provisioned_size>
</disk>
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/QG2MORLKB3UJ6YQ4ZHW57724PMKWY4FS/

Reply via email to