The ironic.api.controllers.v1.driver Module

class ironic.api.controllers.v1.driver.Driver(**kw)[source]

Bases: ironic.api.controllers.base.APIBase

API representation of a driver.

classmethod sample()[source]
class ironic.api.controllers.v1.driver.DriverList(**kw)[source]

Bases: ironic.api.controllers.base.APIBase

API representation of a list of drivers.

classmethod sample()[source]
class ironic.api.controllers.v1.driver.DriverPassthruController[source]

Bases: pecan.rest.RestController

REST controller for driver passthru.

This controller allow vendors to expose cross-node functionality in the Ironic API. Ironic will merely relay the message from here to the specified driver, no introspection will be made in the message body.

methods(*args, **kwargs)[source]

Retrieve information about vendor methods of the given driver.

Parameters:driver_name – name of the driver.
Returns:dictionary with <vendor method name>:<method metadata> entries.
Raises:DriverNotFound if the driver name is invalid or the driver cannot be loaded.
class ironic.api.controllers.v1.driver.DriversController[source]

Bases: pecan.rest.RestController

REST controller for Drivers.

get_all(*args, **kwargs)[source]

Retrieve a list of drivers.

get_one(*args, **kwargs)[source]

Retrieve a single driver.

properties(*args, **kwargs)[source]

Retrieve property information of the given driver.

Parameters:driver_name – name of the driver.
Returns:dictionary with <property name>:<property description> entries.
Raises:DriverNotFound (HTTP 404) if the driver name is invalid or the driver cannot be loaded.

This Page