Project

General

Profile

Actions

User story #4578

closed

Add information from inventory when looking for Nodes through Rest API

Added by Vincent MEMBRÉ over 10 years ago. Updated over 10 years ago.

Status:
Released
Priority:
2
Category:
API
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

Informations given on Nodes by using the Rest API are really thin ...

We only get informations about:

  "action":"acceptedNodeDetails",
  "result":"success",
  "data":{
    "nodes":[{
      "id":"root",
      "status":"accepted",
      "hostname":"server.rudder.local",
      "osName":"Debian",
      "osVersion":"6.0.7",
      "machineType":"Virtual" 
    }]

We should be able to get all informations from the inventory about Nodes.

There should be three levels of details:

  • Minimal:
    • nodeid
    • hostname
      **status
  • Default : Minimal
    • description
    • policyServerId
    • OS
      • type
      • name
      • version
      • servicePack
      • fullName
      • kernelName
      • kernelVersion
    • machine
      • type (physical, virtual, container, cloud instance...)
      • provider (EC2, Dell, HP, IBM, QEMU/KVM...)
      • id (serial number for phyiscal, instance id for cloud, etc)
    • ram (in MB)
    • ipAddresses (list)
    • managementTechnology
      • name
      • agentVersion
    • architectureDescription
    • lastInventoryDate
  • Full : All informations about the inventory

We should also be able to add some fields with the inventory, ie, you only need the information about video display, but don't need to get the full inventory, juste be able to get the minimal inventory + video informations.

Parameter to choose level will be "include"

usage : "include=minimal,video" will be what you need to get minimal + video info


Subtasks 2 (0 open2 closed)

User story #4579: Add inventory detail to GET /api/nodes/id method API Rest methodReleasedFrançois ARMAND2014-03-10Actions
User story #4616: Add new function to get size of a data in MbReleasedFrançois ARMAND2014-03-13Actions

Related issues 1 (0 open1 closed)

Related to Rudder - Bug #4796: Node API version 4 can only get Node detailsReleasedFrançois ARMAND2014-04-30Actions
Actions

Also available in: Atom PDF