Add space to harvester
Adds space {sid} as member of harvester {id}.
This operation requires harvester_add_space privilege in the harvester and
space_add_harvester privilege in the space.
For administrator who does not belong to the space / harvester,
oz_spaces_add_relationships and oz_harvesters_add_relationships privileges
are required.
Example cURL requests
Add space to harvester
curl -u username:password -H "Content-type: application/json" -X PUT \
https://$HOST/api/v3/onezone/harvesters/$HARVESTER_ID/spaces/$SPACE_ID
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Harvester Id. |
| sid required | string Space Id. |
Request body
No schema provided.
Request Examples
[
"harvester_view",
"harvester_update",
"harvester_delete",
"harvester_view_privileges",
"harvester_set_privileges",
"harvester_add_user",
"harvester_remove_user",
"harvester_add_group",
"harvester_remove_group",
"harvester_add_space",
"harvester_remove_space"
]Responses
The space was added to the harvester.
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."
}
}