Feature pages are design documents that developers have created while collaborating on oVirt.

Most of them areoutdated, but provide historical design context.

They arenotuser documentation and should not be treated as such.

Documentation is available here.

Api Data Center Networks

API Networks Subcollection Under Data Center

Summary

“Api Data Center Networks” provides a way to add, delete, retrieve and update the networks attached to a data center using rest api.

Owner

  • Name: Ravi Nori (RNori)
  • Email: rnori@redhat.com

Current status

  • Currently merged (http://gerrit.ovirt.org/#/c/11707)

Detailed Description

Adds new api rest end points to retrieve and maniplutale the networks attached to a data center.

The following are the list of new rest end points

  1. List All Networks attached to a data center: wget -O - –auth-no-challenge –http-user=admin@internal –http-passwd=’' head='Accept: application/xml' http://127.0.0.1:8080/api/datacenters//networks

  2. List Details of a Network attached to a data center: wget -O - –auth-no-challenge –http-user=admin@internal –http-passwd=’' head='Accept: application/xml' http://127.0.0.1:8080/api/datacenters//networks/

  3. Add new network to Data Center: curl -X POST –data ‘test2’ -u admin@internal: -H "Accept: application/xml" -H "Content-Type: application/xml" http://127.0.0.1:8080/api/datacenters//networks

  4. Update a network attached to a data center: curl -X PUT –data ‘test_update’ -u admin@internal: -H "Accept: application/xml" -H "Content-Type: application/xml" http://127.0.0.1:8080/api/datacenters//networks/

  5. Delete a network attached to a datacenter: curl -X DELETE -u admin@internal: -H "Accept: application/xml" -H "Content-Type: application/xml" http://127.0.0.1:8080/api/datacenters//networks/