v2

latestOpenAPI 3.1.0CC-BY-SA 2.02026-07-2617789528.6 KB
Nodes

Update pending nodes status

Accept or refuse one or many pending nodes

post/nodes/pending

Request body

nodeIdstring[]

List of nodes to change status

status'accepted' | 'refused'

New status of the pending node

Example request

{
  "nodeId": [
    "109142a2-40eb-4e6d-84b4-7ebe3670474c"
  ],
  "status": "accepted"
}

Response

Nodes

result'success' | 'error' required

Result of the request

action'changePendingNodeStatus' required

The id of the action

Example response

{
  "data": {
    "nodes": [
      {
        "id": "9a1773c9-0889-40b6-be89-f6504443ac1b",
        "hostname": "node1.example.com",
        "status": "accepted",
        "osName": "Centos",
        "osVersion": "7.6.1810"
      }
    ]
  }
}