Open
Description
SUMMARY
GET /ip/{ip} type call
- and -
PUT /ip/{ip}/mac type call
ISSUE TYPE
- Implement a module to perform GET /ip/{ip} type call. This mainly intended to get the separate_mac field of an additional ip adress. This is especially useful if we have another module to set this seperate mac.
- Implement a module to perform PUT /ip/{ip}/mac type call and a DELETE /ip/{ip}/mac type call. With this it would be possible to request a seperate mac for an aditional server ip. This is required for additional virtual machines, for example.
COMPONENT NAME
ip_info module
- and -
ip module
ADDITIONAL INFORMATION
These are examples of the requests mentioned, including the corresponding responses:
curl -u "user:password" https://robot-ws.your-server.de/ip/123.123.123.123
{
"ip":{
"ip":"123.123.123.123",
"gateway":"123.123.123.97",
"mask":27,
"broadcast":"123.123.123.127",
"server_ip":"123.123.123.123",
"server_number":321,
"locked":false,
"separate_mac":null,
"traffic_warnings":false,
"traffic_hourly":50,
"traffic_daily":50,
"traffic_monthly":8
}
}
curl -u "user:password" https://robot-ws.your-server.de/ip/123.123.123.123/mac -X PUT
{
"mac":{
"ip":"123.123.123.123",
"mac":"00:21:85:62:3e:9c"
}
}
curl -u "user:password" https://robot-ws.your-server.de/ip/123.123.123.123/mac -X DELETE
{
"mac":{
"ip":"123.123.123.123",
"mac":null
}
}