return "POOL_ID [param=value]";
}
@Override
protected boolean execute() throws Exception {
BeesClient client = getBeesClient(BeesClient.class);
Map<String, String> settings = getSettings();
if (elasticIP != null) {
settings.put("public_ip", elasticIP);
// TODO remove server_key
settings.put("server_key", elasticIP.replace('.','_'));
}
settings.put("plan", getPlan());
ServerInfo serverInfo = client.serverCreate(getParameterID(), getSettings());
if (isTextOutput()) {
System.out.println("Server ID : " + serverInfo.getId());
System.out.println("size : " + serverInfo.getSize());
System.out.println("state : " + serverInfo.getState());
System.out.println("pool ID : " + serverInfo.getPoolId());