Project

General

Profile

Actions

Feature #3046

closed

API for NICs / interfaces, IPMI boot and power actions

Added by Dominic Cleal almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

This is an extension to the foreman API that allows users to perform operations on their interfaces, just BMC as of now, but it's easily extensible. In addition to that, it also allows users to create/show/update/delete BMC interfaces associated to hosts, which in turn makes massive installations of physical machines in foreman with these interfaces significantly easier.

Calls should be done to /api/hosts/:host_id_or_name/interfaces as explained in app/controllers/api/v2/interfaces_controller.rb, power operations for instance go like

PUT api/hosts/:host_id_or_name/power, { "power_action" : "cycle" }
POST api/hosts/:host_id_or_name/boot, { "device" : "pxe" }

https://github.com/theforeman/foreman/pull/762

Actions

Also available in: Atom PDF