services

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

get /services

List of all services across all servers.

Arguments
  • No arguments...

Definition
get /services
Attributes
  • idstring

    -

  • typestring

    [osd, mon, mgr, radosgw, mds, nfs_gateway, iscsi, smb, unknown]

  • statestring

    [creating, enabled, disabled, creation_failed]

  • serverinteger

    -

  • ipstring

    -

  • runningboolean

    -

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

delete /services/{serviceId}

Delete a service.

Arguments
  • serviceIdrequiredinteger

    -

Definition
delete /services/{serviceId}

post /services/{type}/{id}/start

Start a service.

Arguments
  • typerequiredstring

    -

  • idrequiredinteger

    -

  • serveroptionalinteger

    Required for multi-server services

Definition
post /services/{type}/{id}/start

post /services/{type}/{id}/stop

Stop a service.

Arguments
  • typerequiredstring

    -

  • idrequiredinteger

    -

  • serveroptionalinteger

    Required for multi-server services

Definition
post /services/{type}/{id}/stop

post /services/{type}/{id}/restart

Restart a service.

Arguments
  • typerequiredstring

    -

  • idrequiredinteger

    -

  • serveroptionalinteger

    Required for multi-server services

Definition
post /services/{type}/{id}/restart

post /services/start

Start services.

Arguments
  • bodyoptional

    -

Definition
post /services/start

post /services/stop

Stop services.

Arguments
  • bodyoptional

    -

Definition
post /services/stop

post /services/restart

Restart services.

Arguments
  • bodyoptional

    -

Definition
post /services/restart

post /services/rolling-restart

Restart services.

Arguments
  • bodyoptional

    -

Definition
post /services/rolling-restart
Attributes
  • namestring

    -

  • idinteger

    -

  • statestring

    [WAITING, RUNNING, FINISHED, FAILED, CANCELED]

  • resultobject

    -

  • doneboolean

    -

  • statusCodeinteger

    -

  • startedAtinteger

    -

  • startedBystring

    -

  • objectstring

    -

  • outputstring

    -

Example response
{ "name": "string", "id": 0, "state": "WAITING", "result": {}, "done": true, "statusCode": 0, "startedAt": 0, "startedBy": "string", "object": "string", "output": "string" }