Project

General

Profile

Actions

Feature #7285

open

add ability to allocate an IP address via the API

Added by Greg Petras over 9 years ago. Updated over 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
Triaged:
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 1 (0 open1 closed)

Related to Foreman - Feature #11223: Make subnets/freeip available through the APIDuplicate07/27/2015Actions
Actions #1

Updated by Dominic Cleal over 9 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.

Actions #2

Updated by Dominic Cleal over 8 years ago

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

Also available in: Atom PDF