Class NetworkServiceImpl

    • Constructor Detail

    • Method Detail

      • get

        public NetworkService.GetRequest get()
        Description copied from interface: NetworkService
        Gets a logical network. For example: [source] ---- GET /ovirt-engine/api/networks/123 ---- Will respond: [source,xml] ---- ovirtmgmt Default Management Network 0 false vm ----
        Specified by:
        get in interface NetworkService
      • remove

        public NetworkService.RemoveRequest remove()
        Description copied from interface: NetworkService
        Removes a logical network, or the association of a logical network to a data center. For example, to remove the logical network `123` send a request like this: [source] ---- DELETE /ovirt-engine/api/networks/123 ---- Each network is bound exactly to one data center. So if we disassociate network with data center it has the same result as if we would just remove that network. However it might be more specific to say we're removing network `456` of data center `123`. For example, to remove the association of network `456` to data center `123` send a request like this: [source] ---- DELETE /ovirt-engine/api/datacenters/123/networks/456 ---- NOTE: To remove an external logical network, the network has to be removed directly from its provider by https://developer.openstack.org/api-ref/network[OpenStack Networking API]. The entity representing the external network inside {product-name} is removed automatically, if <> is enabled for the provider, otherwise the entity has to be removed using this method.
        Specified by:
        remove in interface NetworkService
      • update

        public NetworkService.UpdateRequest update()
        Description copied from interface: NetworkService
        Updates a logical network. The `name`, `description`, `ip`, `vlan`, `stp` and `display` attributes can be updated. For example, to update the description of the logical network `123` send a request like this: [source] ---- PUT /ovirt-engine/api/networks/123 ---- With a request body like this: [source,xml] ---- My updated description ---- The maximum transmission unit of a network is set using a PUT request to specify the integer value of the `mtu` attribute. For example, to set the maximum transmission unit send a request like this: [source] ---- PUT /ovirt-engine/api/datacenters/123/networks/456 ---- With a request body like this: [source,xml] ---- 1500 ---- NOTE: Updating external networks is not propagated to the provider.
        Specified by:
        update in interface NetworkService