Modifier and Type | Method and Description |
---|---|
IpDetails |
addToServer(String ipAddress,
String serverId)
Add an IP address to an server.
|
IpDetails |
get(String ipAddress)
Get details about the given IP address such as gateway and netmask.
|
com.google.common.collect.FluentIterable<IpDetails> |
list(ListIpOptions... options)
Get IP addresses associated with your account (reserved, assigned to servers, etc)
|
com.google.common.collect.FluentIterable<String> |
listFree(int ipVersion,
String datacenter,
String platform)
Get a set of all IP addresses that are available and not used on any account or server.
|
IpDetails |
release(String ipAddress)
Return an unused IP address to the pool of free ips.
|
IpDetails |
removeFromServer(String ipAddress,
String serverId)
Remove an IP address from a server.
|
IpDetails |
removeFromServerAndRelease(String ipAddress,
String serverId)
Remove an IP address from a server and release it back to GleSYS pool of free ips.
|
IpDetails |
resetPtr(String ipAddress)
Resets PTR data for an IP back to the default value
|
IpDetails |
setPtr(String ipAddress,
String ptr)
Sets PTR data for an IP.
|
IpDetails |
take(String ipAddress)
Take a free IP address and add it to this account.
|
@Named(value="ip:listfree") @GET @Path(value="/ip/listfree/ipversion/{ipversion}/datacenter/{datacenter}/platform/{platform}/format/json") @Consumes(value="application/json") com.google.common.collect.FluentIterable<String> listFree(@PathParam(value="ipversion") int ipVersion, @PathParam(value="datacenter") String datacenter, @PathParam(value="platform") String platform)
ipVersion
- 4 or 6, for IPV4 or IPV6, respectivelydatacenter
- the datacenterplatform
- the platform@Named(value="ip:take") @POST @Path(value="/ip/take/format/json") @Consumes(value="application/json") IpDetails take(@FormParam(value="ipaddress") String ipAddress)
ipAddress
- the IP address to be add to this account (reserve)@Named(value="ip:release") @POST @Path(value="/ip/release/format/json") @Consumes(value="application/json") IpDetails release(@FormParam(value="ipaddress") String ipAddress)
ipAddress
- the IP address to be released@Named(value="ip:listown") @GET @Path(value="/ip/listown/format/json") @Consumes(value="application/json") com.google.common.collect.FluentIterable<IpDetails> list(ListIpOptions... options)
options
- options to filter the results (by IPV4/6, serverId, etc)@Named(value="ip:details") @GET @Path(value="/ip/details/ipaddress/{ipaddress}/format/json") @Consumes(value="application/json") IpDetails get(@PathParam(value="ipaddress") String ipAddress)
ipAddress
- the ip address@Named(value="ip:add") @POST @Path(value="/ip/add/format/json") @Consumes(value="application/json") IpDetails addToServer(@FormParam(value="ipaddress") String ipAddress, @FormParam(value="serverid") String serverId)
ipAddress
- the IP address to removeserverId
- the server to add the IP address to@Named(value="ip:remove") @POST @Path(value="/ip/remove/format/json") @Consumes(value="application/json") IpDetails removeFromServer(@FormParam(value="ipaddress") String ipAddress, @FormParam(value="serverid") String serverId)
ipAddress
- the IP address to removeserverId
- the server to remove the IP address fromremoveFromServerAndRelease(java.lang.String, java.lang.String)
@Named(value="ip:remove:release") @POST @Path(value="/ip/remove/format/json") @Consumes(value="application/json") IpDetails removeFromServerAndRelease(@FormParam(value="ipaddress") String ipAddress, @FormParam(value="serverid") String serverId)
ipAddress
- the IP address to removeserverId
- the server to remove the IP address fromremoveFromServer(java.lang.String, java.lang.String)
@Named(value="ip:setptr") @POST @Path(value="/ip/setptr/format/json") @Consumes(value="application/json") IpDetails setPtr(@FormParam(value="ipaddress") String ipAddress, @FormParam(value="data") String ptr)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.