ironic/api-ref/source/baremetal-api-v1-nodes-inventory.inc
Dmitry Tantsur c0460efd06 Add missing include for inventory API reference
Also fix up the title and make sure the linter checks API ref files.

Change-Id: I360fd4fab699e732ac03dc07faab33e18fe2bf13
2023-02-23 18:38:19 +01:00

45 lines
963 B
ReStructuredText

.. -*- rst -*-
==============
Node inventory
==============
.. versionadded:: 1.81
Given a Node identifier, the API provides access to the introspection data
associated to the Node via ``v1/nodes/{node_ident}/inventory`` endpoint.
The format inventory comes from ironic-python-agent and is currently documented
in the `agent inventory documentation
<https://docs.openstack.org/ironic-python-agent/latest/admin/how_it_works.html#hardware-inventory>`_.
Show Node Inventory
===================
.. rest_method:: GET /v1/nodes/{node_ident}/inventory
Normal response code: 200
Error codes:
- 404 (NodeNotFound, InventoryNotRecorded)
Request
-------
.. rest_parameters:: parameters.yaml
- node_ident: node_ident
Response
--------
.. rest_parameters:: parameters.yaml
- inventory: n_inventory
- plugin_data: n_plugin_data
**Example of inventory from a node:**
.. literalinclude:: samples/node-inventory-response.json
:language: javascript