Onedata API Reference

REST API references for Onezone, Oneprovider, and Onepanel.

Modify space details

PATCH /provider/spaces/{id}

Modifies the space import/update strategies.

Path parameters

Parameter Type & Description
id required
string

The Id of a space which details should be modified.

Request body

application/json
PropertyType & Description
size
integer

The storage space size in bytes that provider is willing to assign to the space.

autoStorageImportConfig
object (AutoStorageImportConfig)

Configuration of auto storage import mechanism. The auto import is based on scans - gradual traversing of the file system and registration of files and directories.

maxDepth
integer

Maximum depth of filesystem tree that will be traversed during the scan.

syncAcl
boolean

Flag that enables synchronization of NFSv4 ACLs.

continuousScan
boolean

With this option enabled the storage will be scanned periodically and direct changes on the storage will be reflected in the assigned Onedata space (upon the consecutive scan).

scanInterval
integer

Period between subsequent scans in seconds (counted from end of one scan till beginning of the following). This parameter is relevant only for continuous scans.

detectModifications
boolean

Flag determining that modifications of files on the synchronized storage will be detected. If disabled, the storage will be treated as immutable (only creations and deletions of files on storage will be detected). This parameter is relevant only for continuous scans.

detectDeletions
boolean

Flag determining that deletions of files from the synchronized storage will be detected. This parameter is relevant only for continuous scans.

Responses

application/json
204

The space details has been successfully 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 user 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.