# survey

undefined
Set management node URL:

# GET /survey

Get survey configuration

# Parameters

  • No parameters...

# Endpoint

curl -X GET http://mgmt-node:8080/api/survey 

# Response 200

  • enabledboolean-

# Example response

{
  "enabled": true
}

# PATCH /survey

Enable or disable the croit hardware survey.

# Parameters

  • bodyobject-
    • enabledboolean-

# Endpoint

curl -X PATCH http://mgmt-node:8080/api/survey 

# Example body

{
  "enabled": true
}

# GET /survey/preview

Preview what is sent to croit.io if survey is enabled.

# Parameters

  • No parameters...

# Endpoint

curl -X GET http://mgmt-node:8080/api/survey/preview 

# Response 200

  • servicesarray-
    • typestring[osd, mon, mgr, radosgw, mds, nfs_gateway, iscsi, smb, unknown]
    • serverinteger-
    • osdDiskinteger-
  • disksarray-
    • idinteger-
    • serverinteger-
    • rolestring[unassigned, mon, osd, journal, other, raid, deleting, updating, mon_unused, old_osd, old_mon]
    • sizeGBinteger-
    • namestring-
    • deviceClassstring[hdd, ssd, nvme]
    • partitionsinteger-
    • usedPartitionsinteger-
    • journalDiskinteger-
    • smartobject-
      • statusstring-
      • detailsstring-
    • missingboolean-
    • bluestoreboolean-
  • serversarray-
    • idinteger-
    • ramnumber-
    • cpustring-
    • cpusinteger-
    • coresPerCpuinteger-
    • mainboardstring-
    • runningImagestring-
    • uptimenumberDuration in seconds.
  • nicsarray-
    • serverinteger-
    • speednumber-
    • namestring-
    • typestring[normal, bond]
    • bondSizeinteger-
    • numVlansinteger-
    • hasLldpInfoboolean-
  • cephobject-
    • numOsdsinteger-
    • numInOsdsinteger-
    • sizeGBnumber-
    • rawCapacityGBnumber-
    • fullPercentnumber-
    • poolsarray-
      • idinteger-
      • erasureCodingboolean-
      • pgNuminteger-
      • minSizeinteger-
      • sizeinteger-
      • dataChunksinteger-
      • parityChunksinteger-
      • sizeGBnumber-
      • objectsinteger-
      • applicationstring-
    • rgwBucketsarray-
      • sizeGBnumber-
      • objectsinteger-
    • cephFsStatsobject-
      • sizeGBnumber-
      • filesinteger-
      • dirsinteger-

# Example response

{
  "services": [
    {
      "type": "osd",
      "server": 0,
      "osdDisk": 0
    }
  ],
  "disks": [
    {
      "id": 0,
      "server": 0,
      "role": "unassigned",
      "sizeGB": 0,
      "name": "string",
      "deviceClass": "hdd",
      "partitions": 0,
      "usedPartitions": 0,
      "journalDisk": 0,
      "smart": {
        "status": "string",
        "details": "string"
      },
      "missing": true,
      "bluestore": true
    }
  ],
  "servers": [
    {
      "id": 0,
      "ram": ,
      "cpu": "string",
      "cpus": 0,
      "coresPerCpu": 0,
      "mainboard": "string",
      "runningImage": "string",
      "uptime": 
    }
  ],
  "nics": [
    {
      "server": 0,
      "speed": ,
      "name": "string",
      "type": "normal",
      "bondSize": 0,
      "numVlans": 0,
      "hasLldpInfo": true
    }
  ],
  "ceph": {
    "numOsds": 0,
    "numInOsds": 0,
    "sizeGB": ,
    "rawCapacityGB": ,
    "fullPercent": ,
    "pools": [
      {
        "id": 0,
        "erasureCoding": true,
        "pgNum": 0,
        "minSize": 0,
        "size": 0,
        "dataChunks": 0,
        "parityChunks": 0,
        "sizeGB": ,
        "objects": 0,
        "application": "string"
      }
    ],
    "rgwBuckets": [
      {
        "sizeGB": ,
        "objects": 0
      }
    ],
    "cephFsStats": {
      "sizeGB": ,
      "files": 0,
      "dirs": 0
    }
  }
}