Onedata API Reference

REST API references for Onezone, Oneprovider, and Onepanel.

Get space provider details

GET /spaces/{id}/providers/{pid}

Returns details about a specific provider supporting the space.

This operation requires any of the following authentication:

  • as user who has space_view privilege in the space ({id}),
  • as provider that supports the space ({id}),
  • as user who has oz_providers_view admin privilege.

Example cURL requests

Get space provider details

curl -u username:password -X GET \
https://$HOST/api/v3/onezone/spaces/$SPACE_ID/providers/$PROVIDER_ID

{
  "providerId": "H8ez0CwDZ7JMYRWn1ipmBpgJHPXzIXj0-upGkf9tk",
  "name": "example",
  "domain": "195.216.97.151",
  "latitude": 50.068968,
  "longitude": 19.909444
}

Path parameters

Parameter Type & Description
id required
string

Space Id.

pid required
string

Provider Id.

Request Examples

Shell
onezone-rest-cli getSpaceProvider id=b752ceafabb662b4e5728b2ded25cdd1 pid=f1c8b1a37aa7447b22eb65a742d40524

Responses

application/json
200

Details about a specific provider supporting a space.

PropertyType & Description
providerId
string

The Oneprovider Id.

name
string

Oneprovider name.

domain
string

The fully qualified domain name of the Oneprovider or its IP address (only for single-node deployments or clusters with a reverse proxy).

latitude
number

The geographical latitude of the Oneprovider's data center location.

longitude
number

The geographical longitude of the Oneprovider's data center location.

cluster
string

The Id of the corresponding Oneprovider cluster.

online
boolean

True if this Oneprovider is online - connected to Onezone.

Example

application/json
{
  "providerId": "6b9bc70630547d925861a27e1f050dfe",
  "name": "Example provider",
  "domain": "provider1.example.com",
  "latitude": 50.0647,
  "longitude": 19.945,
  "cluster": "16a0e017d184d7d4512f441e72848fff",
  "online": true
}
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

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

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

Resource not found.

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