Project

General

Profile

Feature #7285

add ability to allocate an IP address via the API

Added by Greg Petras about 7 years ago. Updated about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

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


Related issues

Related to Foreman - Feature #11223: Make subnets/freeip available through the APIDuplicate2015-07-27

History

#1 Updated by Dominic Cleal about 7 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.

#2 Updated by Dominic Cleal about 6 years ago

  • Related to Feature #11223: Make subnets/freeip available through the API added

Also available in: Atom PDF