ironic/releasenotes/notes/node-traits-2d950b62eea24491.yaml
John Garbutt 864331a94b API: Node Traits API
Adds basic CRUD on traits, including set and delete of individual
traits.

Bumps the API microversion to 1.37.

NOTE: This patch does not implement the advanced filtering outlined in
the OpenStack API working group's tags guidelines[1]. That will be
implemented in a separate microversion as a follow up patch.

[1] http://specs.openstack.org/openstack/api-wg/guidelines/tags.html

Change-Id: I313fa01fbf20bf0ff19f102ea63b02e72ac2b856
Partial-Bug: #1722194
Co-Authored-By: Mark Goddard <mark@stackhpc.com>
2018-01-25 00:11:44 +00:00

29 lines
1.0 KiB
YAML

---
features:
- |
Adds a ``traits`` field to the node resource, which will be used by the
Compute service to define which nodes may match a Compute flavor using
qualitative attributes.
The following new endpoints have been added to the Bare Metal REST API in
version 1.37:
* ``GET /v1/nodes/<node identifier>/traits`` lists the traits for a node.
* ``PUT /v1/nodes/<node identifier>/traits`` sets all traits for a node.
* ``PUT /v1/nodes/<node identifier>/traits/<trait>`` adds a trait to a
node.
* ``DELETE /v1/nodes/<node identifier>/traits`` removes all traits from a
node.
* ``DELETE /v1/nodes/<node identifier>/traits/<trait>`` removes a trait
from a node.
A node's traits are also included in the following node query and list
responses:
* ``GET /v1/nodes/<node identifier>``
* ``GET /v1/nodes/detail``
* ``GET /v1/nodes?fields=traits``
Traits cannot be specified on node creation, nor can they be updated via a
``PATCH`` request on the node.