"http://localhost/api/admin/datacenters/1/remoteservices/nodecollector"));
return remoteService;
}
public static MachineDto machinePut() {
MachineDto machine = machinePost();
machine.setId(1);
machine.addLink(new RESTLink("edit", "http://localhost/api/admin/datacenters/1/racks/1/machines/1"));
machine.addLink(new RESTLink("rack", "http://localhost/api/admin/datacenters/1/racks/1"));
machine.addLink(new RESTLink("checkstate",
"http://localhost/api/admin/datacenters/1/racks/1/machines/1/action/checkstate"));
machine.addLink(new RESTLink("checkipmistate",
"http://localhost/api/admin/datacenters/1/racks/1/machines/1/action/checkipmistate"));
machine.addLink(new RESTLink("led", "http://localhost/api/admin/datacenters/1/racks/1/machines/1/led"));
machine.addLink(new RESTLink("ledoff",
"http://localhost/api/admin/datacenters/1/racks/1/machines/1/action/ledoff"));
machine
.addLink(new RESTLink("ledon", "http://localhost/api/admin/datacenters/1/racks/1/machines/1/action/ledon"));
machine.addLink(new RESTLink("logicserver",
"http://localhost/api/admin/datacenters/1/racks/1/machines/1/logicserver"));
machine.addLink(new RESTLink("poweroff",
"http://localhost/api/admin/datacenters/1/racks/1/machines/1/action/poweroff"));
machine.addLink(new RESTLink("poweron",
"http://localhost/api/admin/datacenters/1/racks/1/machines/1/action/poweron"));
machine.addLink(new RESTLink("virtualmachines",
"http://localhost/api/admin/datacenters/1/racks/1/machines/1/virtualmachines"));
machine.setVirtualCpuCores(5);
return machine;
}