@Beta
@Consumes(value="application/json")
@Path(value="/servers")
public interface AttachInterfaceApi
Modifier and Type | Method and Description |
---|---|
InterfaceAttachment |
create(String serverId,
String portId)
Creates a new port interface and associate with the given port
|
boolean |
delete(String serverId,
String attachmentId)
Deletes a port interface for given server, return true if successful,
false if server or interface not found
|
InterfaceAttachment |
get(String serverId,
String attachmentId)
Returns information about a specified port interface for given server
|
com.google.common.collect.FluentIterable<InterfaceAttachment> |
list(String serverId)
Returns list of port interfaces for given server
|
@Named(value="attachInterface:list") @GET @Path(value="/{serverId}/os-interface") com.google.common.collect.FluentIterable<InterfaceAttachment> list(@PathParam(value="serverId") String serverId)
serverId
- The Server ID@Named(value="attachInterface:get") @GET @Path(value="/{serverId}/os-interface/{attachmentId}") @Nullable InterfaceAttachment get(@PathParam(value="serverId") String serverId, @PathParam(value="attachmentId") String attachmentId)
serverId
- The Server IDattachmentId
- The interface ID@Named(value="attachInterface:create") @POST @Path(value="/{serverId}/os-interface") @Produces(value="application/json") InterfaceAttachment create(@PathParam(value="serverId") String serverId, String portId)
portId
- The port ID@Named(value="attachInterface:delete") @DELETE @Path(value="/{serverId}/os-interface/{attachmentId}") boolean delete(@PathParam(value="serverId") String serverId, @PathParam(value="attachmentId") String attachmentId)
serverId
- The Server IDattachmentId
- The interface IDCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.