crush

CRUSH map and rule management.

post /crush/rules/ssdPrimary

Arguments
  • bodyoptional

    -

Definition
post /crush/rules/ssdPrimary

get /crush/ec-profiles

Arguments
  • No arguments...

Definition
get /crush/ec-profiles
Attributes
Example response
{}

get /crush/destroyed-osd-ids

Arguments
  • No arguments...

Definition
get /crush/destroyed-osd-ids
Attributes
  • destroyedOsdsarray

    -

    • idinteger

      -

    • hoststring

      -

Example response
{ "destroyedOsds": [ { "id": 0, "host": "string" } ] }

get /crush

Arguments
  • No arguments...

Definition
get /crush
Attributes
  • nodesarray

    -

    • idinteger

      -

    • namestring

      -

    • statusstring

      [UP, DOWN, DESTROYED, UNKNOWN]

    • typestring

      [OSD, HOST, CHASSIS, RACK, ROW, PDU, POD, ROOM, DATACENTER, ZONE, REGION, ROOT, UNKNOWN]

    • childrenarray

      -

    • deviceClassstring

      -

    • sizeinteger

      -

    • usedinteger

      -

    • reweightnumber

      -

    • diskIdinteger

      -

    • serverIdinteger

      -

  • strayarray

    -

    • idinteger

      -

    • namestring

      -

    • statusstring

      [UP, DOWN, DESTROYED, UNKNOWN]

    • typestring

      [OSD, HOST, CHASSIS, RACK, ROW, PDU, POD, ROOM, DATACENTER, ZONE, REGION, ROOT, UNKNOWN]

    • childrenarray

      -

    • deviceClassstring

      -

    • sizeinteger

      -

    • usedinteger

      -

    • reweightnumber

      -

    • diskIdinteger

      -

    • serverIdinteger

      -

Example response
{ "nodes": [ { "id": 0, "name": "string", "status": "UP", "type": "OSD", "children": [ 0 ], "deviceClass": "string", "size": 0, "used": 0, "reweight": , "diskId": 0, "serverId": 0 } ], "stray": [ { "id": 0, "name": "string", "status": "UP", "type": "OSD", "children": [ 0 ], "deviceClass": "string", "size": 0, "used": 0, "reweight": , "diskId": 0, "serverId": 0 } ] }

post /crush

Arguments
  • bodyoptional

    -

Definition
post /crush
Attributes
  • idinteger

    -

  • descriptionstring

    -

  • createdByobject

    -

    • idinteger

      -

    • namestring

      -

  • affectedObjectstring

    -

  • changesarray

    -

    • typestring

      -

  • statestring

    [PENDING, APPROVED, REJECTED]

Example response
{ "id": 0, "description": "string", "createdBy": { "id": 0, "name": "string" }, "affectedObject": "string", "changes": [ { "type": "string" } ], "state": "PENDING" }

get /crush/rules

Arguments
  • No arguments...

Definition
get /crush/rules
Attributes
  • idinteger

    -

  • namestring

    -

  • typestring

    [REPLICATED, ERASURE]

  • minSizeinteger

    -

  • maxSizeinteger

    -

  • stepsarray

    -

    • opstring

      [TAKE, CHOOSE, CHOOSE_INDEP, CHOOSELEAF, CHOOSELEAF_INDEP, EMIT, NOOP, UNKNOWN, TUNING]

    • crushMapTextFormatstring

      -

Example response
[ { "id": 0, "name": "string", "type": "REPLICATED", "minSize": 0, "maxSize": 0, "steps": [ { "op": "TAKE", "crushMapTextFormat": "string" } ] } ]

get /crush/rules/classes

Arguments
  • No arguments...

Definition
get /crush/rules/classes
Attributes
Example response
[ "string" ]

delete /crush/rules/{name}

Arguments
  • namerequiredstring

    -

Definition
delete /crush/rules/{name}

post /crush/rules/simple

Arguments
  • bodyoptional

    -

Definition
post /crush/rules/simple