Listing Services

1
GET /services

Lists services on compute nodes in the PowerPanel database.

Request example:

1
2
# curl -s -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://<controller_hostname>/api/v1/services

Response example:

 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
29
30
31
32
[
  {
    "binary": "vzapi-compute",
    "created_at": "2020-12-14T10:49:55.000000",
    "disabled": false,
    "version": 1,
    "host_id": "59d7a0ea5e994e33a955b868472aadac",
    "last_seen_up": "2020-12-22T08:28:26.000000",
    "disabled_reason": null,
    "id": 6
  },
  {
    "binary": "vzapi-compute",
    "created_at": "2020-12-14T10:50:06.000000",
    "disabled": false,
    "version": 1,
    "host_id": "64acae36796c4db7b5be65544464c8b3",
    "last_seen_up": "2020-12-22T08:28:23.000000",
    "disabled_reason": null,
    "id": 7
  },
  {
    "binary": "vzapi-api",
    "created_at": "2020-12-18T08:08:13.000000",
    "disabled": false,
    "version": 1,
    "host_id": "705242071d344935810d9d2f6599b63c",
    "last_seen_up": null,
    "disabled_reason": null,
    "id": 8
  }
]