v2

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

Update pending node status

Accept or refuse a pending node

post/nodes/pending/{nodeId}

Path parameters

nodeIdstring uuid (or "root") required
Example:9a1773c9-0889-40b6-be89-f6504443ac1b

Id of the target node

Request body

status'accepted' | 'refused'

New status of the pending node

Example request

{
  "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"
      }
    ]
  }
}