Class InterfaceServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.compute.internal.BaseComputeServices
-
- org.openstack4j.openstack.compute.internal.ext.InterfaceServiceImpl
-
- All Implemented Interfaces:
InterfaceService,RestService
public class InterfaceServiceImpl extends BaseComputeServices implements InterfaceService
API to Create, list, get details for, and delete port interfaces on a Server Instance- Author:
- Jeremy Unruh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description InterfaceServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InterfaceAttachmentcreate(String serverId, String portId)Creates and uses a port interface to attach the port to a server instance.ActionResponsedetach(String serverId, String attachmentId)Detaches a specified port interfaceInterfaceAttachmentget(String serverId, String attachmentId)Shows information about a specified port interfaceList<? extends InterfaceAttachment>list(String serverId)List the port interfaces for the specifiedserverId-
Methods inherited from class org.openstack4j.openstack.compute.internal.BaseComputeServices
invokeAction, invokeActionWithResponse
-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
create
public InterfaceAttachment create(String serverId, String portId)
Description copied from interface:InterfaceServiceCreates and uses a port interface to attach the port to a server instance.- Specified by:
createin interfaceInterfaceService- Parameters:
serverId- the server idportId- the port id to attach- Returns:
- the attached interface
-
list
public List<? extends InterfaceAttachment> list(String serverId)
Description copied from interface:InterfaceServiceList the port interfaces for the specifiedserverId- Specified by:
listin interfaceInterfaceService- Parameters:
serverId- the server id- Returns:
- List of interface attachments
-
get
public InterfaceAttachment get(String serverId, String attachmentId)
Description copied from interface:InterfaceServiceShows information about a specified port interface- Specified by:
getin interfaceInterfaceService- Parameters:
serverId- the server idattachmentId- the attachment identifier- Returns:
- the interface attachment
-
detach
public ActionResponse detach(String serverId, String attachmentId)
Description copied from interface:InterfaceServiceDetaches a specified port interface- Specified by:
detachin interfaceInterfaceService- Parameters:
serverId- the server idattachmentId- the attachment identifier- Returns:
- the action response indicating success or failure
-
-