11.4. Methods

11.4.1. Creating a Network Resource

Creation of a new network requires the name and datacenter elements.

Example 11.3. Creating a network resource

POST /ovirt-engine/api/networks HTTP/1.1
Accept: application/xml
Content-type: application/xml

<network>
    <name>network 1</name>
    <data_center id="00000000-0000-0000-0000-000000000000"/>
</network>

11.4.2. Updating a Network Resource

The name, description, ip, vlan, stp and display elements are updatable post-creation.

Example 11.4. Updating a network resource

PUT /ovirt-engine/api/networks/00000000-0000-0000-0000-000000000000 HTTP/1.1
Accept: application/xml
Content-type: application/xml

<network>
    <description>Network 1</description>
</network>

11.4.3. Removing a Network Resource

Removal of a network requires a DELETE request.

Example 11.5. Removing a network

DELETE /ovirt-engine/api/networks/00000000-0000-0000-0000-000000000000 HTTP/1.1

HTTP/1.1 204 No Content