Package org.ovirt.engine.sdk4.services
Interface NetworkService
-
- All Superinterfaces:
Service
- All Known Implementing Classes:
NetworkServiceImpl
public interface NetworkService extends Service
A service managing a network
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
NetworkService.GetRequest
Gets a logical network.static interface
NetworkService.GetResponse
Gets a logical network.static interface
NetworkService.RemoveRequest
Removes a logical network, or the association of a logical network to a data center.static interface
NetworkService.RemoveResponse
Removes a logical network, or the association of a logical network to a data center.static interface
NetworkService.UpdateRequest
Updates a logical network.static interface
NetworkService.UpdateResponse
Updates a logical network.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NetworkService.GetRequest
get()
Gets a logical network.NetworkLabelsService
networkLabelsService()
Reference to the service that manages the network labels assigned to this network.AssignedPermissionsService
permissionsService()
Reference to the service that manages the permissions assigned to this network.NetworkService.RemoveRequest
remove()
Removes a logical network, or the association of a logical network to a data center.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.NetworkService.UpdateRequest
update()
Updates a logical network.AssignedVnicProfilesService
vnicProfilesService()
Reference to the service that manages the vNIC profiles assigned to this network.
-
-
-
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 1500
-
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.
-
-