Interface NetworksService

  • All Superinterfaces:
    Service
    All Known Implementing Classes:
    NetworksServiceImpl

    public interface NetworksService
    extends Service
    Manages logical networks. The engine creates a default `ovirtmgmt` network on installation. This network acts as the management network for access to hypervisor hosts. This network is associated with the `Default` cluster and is a member of the `Default` data center.
    • Method Detail

      • add

        NetworksService.AddRequest add()
        Creates a new logical network, or associates an existing network with a data center. Creation of a new network requires the `name` and `data_center` elements. For example, to create a network named `mynetwork` for data center `123` send a request like this: [source] ---- POST /ovirt-engine/api/networks ---- With a request body like this: [source,xml] ---- mynetwork ---- To associate the existing network `456` with the data center `123` send a request like this: [source] ---- POST /ovirt-engine/api/datacenters/123/networks ---- With a request body like this: [source,xml] ---- ovirtmgmt ---- To create a network named `exnetwork` on top of an external _OpenStack_ network provider `456` send a request like this: [source] ---- POST /ovirt-engine/api/networks ---- [source,xml] ---- exnetwork ----
      • list

        NetworksService.ListRequest list()
        List logical networks. For example: [source] ---- GET /ovirt-engine/api/networks ---- Will respond: [source,xml] ---- ovirtmgmt Default Management Network 0 false vm ... ---- The order of the returned list of networks is guaranteed only if the `sortby` clause is included in the `search` parameter.
      • networkService

        NetworkService networkService​(String id)
        Reference to the service that manages a specific network.
      • service

        Service service​(String path)
        Service locator method, returns individual service on which the URI is dispatched.