Interface NetworkService

    • Method Detail

      • get

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

        NetworkService.RemoveRequest remove()
        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.
      • update

        NetworkService.UpdateRequest update()
        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.
      • networkLabelsService

        NetworkLabelsService networkLabelsService()
        Reference to the service that manages the network labels assigned to this network.
      • permissionsService

        AssignedPermissionsService permissionsService()
        Reference to the service that manages the permissions assigned to this network.
      • vnicProfilesService

        AssignedVnicProfilesService vnicProfilesService()
        Reference to the service that manages the vNIC profiles assigned to this network.
      • service

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