Interface PortForwardingService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
PortForwardingServiceImpl
public interface PortForwardingService extends RestService
Provides floating IP port forwarding service.- Author:
- zjluo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PortForwarding
create(String floatingIpId, PortForwarding portForwarding)
Creates a floating IP port forwardingActionResponse
delete(String floatingIpId, String id)
Deletes floating IP port forwarding by id.PortForwarding
get(String floatingIpId, String id)
Gets a floating IP port forwarding by id.List<? extends PortForwarding>
list(String floatingIpId)
Returns list of floating IP port forwarding.List<? extends PortForwarding>
list(String floatingIpId, Map<String,String> filteringParams)
Returns list of floating IP port forwarding filtered by parameters.
-
-
-
Method Detail
-
list
List<? extends PortForwarding> list(String floatingIpId)
Returns list of floating IP port forwarding.- Parameters:
floatingIpId
- the floating ip identifier- Returns:
- List of port forwarding
-
list
List<? extends PortForwarding> list(String floatingIpId, Map<String,String> filteringParams)
Returns list of floating IP port forwarding filtered by parameters.- Parameters:
floatingIpId
- the floating ip identifierfilteringParams
- map (name, value) of filtering parameters- Returns:
- list of floating IP port forwarding
-
get
PortForwarding get(String floatingIpId, String id)
Gets a floating IP port forwarding by id.- Parameters:
floatingIpId
- the floating ip identifierid
- the port_forwarding identifier- Returns:
- a floating IP port forwarding
-
delete
ActionResponse delete(String floatingIpId, String id)
Deletes floating IP port forwarding by id.- Parameters:
floatingIpId
- the floating ip identifierid
- id the port forwarding identifier- Returns:
- the action response
-
create
PortForwarding create(String floatingIpId, PortForwarding portForwarding)
Creates a floating IP port forwarding- Parameters:
floatingIpId
- the floating ip identifierportForwarding
- the floating IP port forwarding- Returns:
- the floating IP port forwarding
-
-