summaryrefslogtreecommitdiff
path: root/releasenotes/notes/node-traits-2d950b62eea24491.yaml
blob: 8e576fd691c9dbd0c08dd4b1ffd50e95946e1ce6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
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.