Actions
Feature #7285
openadd ability to allocate an IP address via the API
Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Description
I'd like to be able to add an interface to a host using the v2 API at /api/hosts/<host>/interfaces. I'd also like to be able to use this API to assign a free IP from one of the specified networks. Please extend the API to support this ability. Perhaps a subnet parameter could be added when creating an interface on a host, and if the IP address is left null then it retrieves one from the smart proxy for that subnet.
Thanks!
Greg
Updated by Dominic Cleal over 10 years ago
Yeah, I think automatically retrieving it would be the correct behaviour as this is already the case for hosts. Interfaces should follow the same pattern I guess.
Updated by Dominic Cleal over 9 years ago
- Related to Feature #11223: Make subnets/freeip available through the API added
Actions