Onedata API Reference

REST API references for Onezone, Oneprovider, and Onepanel.

Modify current Onezone policies

PATCH /zone/policies

Modifies restrictions placed on Onezone operations such as registering providers.

Request body

application/json

New values for Onezone policies.

PropertyType & Description
oneproviderRegistration
string

Indicates policy enforced during provider registration. Possible options are: open - anyone can acquire a registration token and register a new Oneprovider restricted - requires an administrative privilege 'oz_providers_invite' to generate a Oneprovider registration token. The token can be issued for someone else.

Enum:
openrestricted
subdomainDelegation
boolean

If true, Oneproviders are allowed to request subdomains of the Onezone domain for use as their domains.

guiPackageVerification
boolean

When this value is true, GUI packages uploaded by services operating under Onezone or by harvester admins are checked against known SHA-256 checksums using the compatibility registry. Setting this value to false disables the verification. WARNING: disabling GUI package verification poses a severe security threat, allowing Oneprovider owners to upload arbitrary GUI to Onezone (which is then hosted in Onezone's domain).

harvesterGuiPackageVerification
boolean

This policy can be used to disable GUI package verification for harvester plugins only. See "guiPackageVerification" for detailed description. This setting has no effect if "guiPackageVerification" is set to false.

Request Examples

application/json
{
  "subdomainDelegation": true,
  "guiPackageVerification": true,
  "harvesterGuiPackageVerification": false
}

Responses

application/json
204

Policies have been successfully modified.

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

Onezone cluster is not configured.

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