public class InterfaceServiceImpl extends BaseComputeServices implements InterfaceService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
InterfaceServiceImpl() |
Modifier and Type | Method and Description |
---|---|
InterfaceAttachment |
create(String serverId,
String portId)
Creates and uses a port interface to attach the port to a server instance.
|
ActionResponse |
detach(String serverId,
String attachmentId)
Detaches a specified port interface
|
InterfaceAttachment |
get(String serverId,
String attachmentId)
Shows information about a specified port interface
|
List<? extends InterfaceAttachment> |
list(String serverId)
List the port interfaces for the specified
serverId |
invokeAction, invokeActionWithResponse
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public InterfaceAttachment create(String serverId, String portId)
InterfaceService
create
in interface InterfaceService
serverId
- the server idportId
- the port id to attachpublic List<? extends InterfaceAttachment> list(String serverId)
InterfaceService
serverId
list
in interface InterfaceService
serverId
- the server idpublic InterfaceAttachment get(String serverId, String attachmentId)
InterfaceService
get
in interface InterfaceService
serverId
- the server idattachmentId
- the attachment identifierpublic ActionResponse detach(String serverId, String attachmentId)
InterfaceService
detach
in interface InterfaceService
serverId
- the server idattachmentId
- the attachment identifierCopyright © 2017. All rights reserved.