List harvester indices
Returns the list of indices in specific harvester.
For users who are members of harvester it requires harvester_view.
For administrators who do not have to be members of this harvester,
oz_harvesters_view privilege is required.
Example cURL requests
Get harvester index
curl -u admin:password -X GET \
https://$HOST/api/v3/onezone/harvesters/$HARVESTER_ID/indices
{
"indices": [
"MDAxNmxvYZjUGlIcGkweGZta1ZOdEp00eUNINVNvR2001Wl"
]
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Harvester Id. |
Request Examples
onezone-rest-cli listHarvesterIndices id=b752ceafabb662b4e5728b2ded25cdd1Responses
The list of all index Ids that are in a specific harvester.
| Property | Type & Description |
|---|---|
harvesters array of strings The list of harvester indices Ids. | |
Example
{
"indices": [
"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."
}
}