Onedata API Reference

REST API references for Onezone, Oneprovider, and Onepanel.

Modify pool params

PATCH /provider/ceph/pools/{name}

Modifies the pool redundancy settings.

Path parameters

Parameter Type & Description
name required
string

The name of the pool to describe.

Request body

application/json
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.

Responses

application/json
204

The settings have been changed.

400

Invalid request.

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."
  }
}
401

Unauthorized request.

403

Forbidden request.

404

The pool 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."
  }
}
503

Services needed to fulfill this request are not running.