# services

Manage services, this includes both Ceph services and croit-specific services running on both the ceph servers and management node.
Set management node URL:

# POST /services/{type}/{id}/start

Start a service.

# Parameters

  • typestringpath[osds, mons, radosgws, mds, mgrs, nfs_gateways, iscsis, smbs]
  • idintegerpath-

# Endpoint

curl -X POST http://mgmt-node:8080/api/services/{type}/{id}/start

# POST /services/{type}/{id}/stop

Stop a service.

# Parameters

  • typestringpath[osds, mons, radosgws, mds, mgrs, nfs_gateways, iscsis, smbs]
  • idintegerpath-

# Endpoint

curl -X POST http://mgmt-node:8080/api/services/{type}/{id}/stop

# GET /services

List of all services across all servers.

# Parameters

  • No parameters...

# Endpoint

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

# Response 200

  • idstringoptional-
  • typestringoptional[osd, mon, mgr, radosgw, mds, nfs_gateway, iscsi, smb, unknown]
  • statestringoptional[creating, enabled, disabled, creation_failed]
  • serverintegeroptional-
  • ipstringoptional-
  • runningbooleanoptional-

# Example response

[
  {
    "id": "string",
    "type": "osd",
    "state": "creating",
    "server": 0,
    "ip": "string",
    "running": true
  }
]

# DELETE /services/{serviceId}

Delete a service.

# Parameters

  • serviceIdintegerpath-

# Endpoint

curl -X DELETE http://mgmt-node:8080/api/services/{serviceId}

# POST /services/{type}/{id}/restart

Restart a service.

# Parameters

  • typestringpath[osds, mons, radosgws, mds, mgrs, nfs_gateways, iscsis, smbs]
  • idintegerpath-

# Endpoint

curl -X POST http://mgmt-node:8080/api/services/{type}/{id}/restart