Interface NetworksService.AddRequest

  • All Superinterfaces:
    Request<NetworksService.AddRequest,​NetworksService.AddResponse>
    Enclosing interface:
    NetworksService

    public static interface NetworksService.AddRequest
    extends Request<NetworksService.AddRequest,​NetworksService.AddResponse>
    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 ----