List space owners
Returns the list of owners of a specific space.
Space owners are members (users) of the space that have absolute power regarding the space API and files (analogical to "root", but in the scope of one space). Being an owner means that user privileges are essentially ignored and all API operations are allowed.
This operation requires any of the following authentication:
- as user who has
space_viewprivilege in the space ({id}), - as provider that supports the space (
{id}), - as user who has
oz_spaces_viewadmin privilege.
Example cURL requests
Get space owners
curl -u username:password -X GET \
https://$HOST/api/v3/onezone/spaces/$SPACE_ID/owners
{
"users": [
"a5b469a2b0516b662a49da74d6d7d7bc"
]
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Space Id. |
Request Examples
onezone-rest-cli listSpaceOwners id=b752ceafabb662b4e5728b2ded25cdd1Responses
The list of all user Ids that are owners of the space.
| Property | Type & Description |
|---|---|
users array of strings The list of user Ids. | |
Example
{
"users": [
"1d24c36707d99197c6cd995810a43aca",
"6825604b0eb6a47b8b7a04b6369eb24d"
]
}Invalid request.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authentication error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authorization error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Resource not found.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Internal server Error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}