Onedata API Reference

REST API references for Onezone, Oneprovider, and Onepanel.

Get details of a Ceph pool.

GET /provider/ceph/pools/{name}

Returns object describng single Ceph pool specified by name.

Path parameters

Parameter Type & Description
name required
string

The name of the pool to describe.

Request Examples

Shell
onepanel-rest-cli -u onepanel:$PASSPHRASE getCephPool name=$POOL_NAME --host https://$HOST:9443

Responses

application/json
200

The pool details.

PropertyType & Description
name
string

Name of the pool.

copiesNumber
integer

Desired number of object replicas in the pool. When below this number the pool still may be used in 'degraded' mode. Defaults to 2 if there are at least 2 OSDs, 1 otherwise.

minCopiesNumber
integer

Minimum number of object replicas in the pool. Below this threshold any I/O for the pool is disabled. Must be lower or equal to 'copiesNumber'. Defaults to min(2, copiesNumber) if there are at least 2 OSDs, 1 otherwise.

401

Unauthorized request.

403

Forbidden request.

404

Pool with given name does not exist.

500

Internal server error.

PropertyType & Description
error
object

Object describing an error.

id required
string

String identifying the error type. Does not change between error instances.

description required
string

Human readable error description. May contain information specific to given error instance.

details
object

Details about the error instance. The object schema is specific to each error type.

Example

application/json
{
  "error": {
    "id": "badValueString",
    "details": {
      "key": "name"
    },
    "description": "Bad value: provided \"name\" must be a string."
  }
}