Get harvester index stats
Returns details about harvesting stats of a specific index in the 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 stats
curl -u username:password -X GET \
https://$HOST/api/v3/onezone/harvesters/$HARVESTER_ID/indices/$INDEX_ID
{
$SPACE_ID1 : {
$PROVIDER_ID1 : {
"currentSeq" : 5,
"maxSeq" : 8,
"error" : null,
"lastUpdate" : 1557928576,
"archival" : false
},
$PROVIDER_ID2 : {
"currentSeq" : 8,
"maxSeq" : 13,
"error" : "Service unavailable: temporary failure.",
"lastUpdate" : 1557928576,
"archival" : false
}
},
$SPACE_ID2 : {
$PROVIDER_ID1 : {
"currentSeq" : 13,
"maxSeq" : 21,
"error" : null,
"lastUpdate" : 1557928576,
"archival" : false
},
$PROVIDER_ID3 : {
"currentSeq" : 21,
"maxSeq" : 34,
"error" : null,
"lastUpdate" : 1557928576,
"archival" : true
}
}
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Harvester Id. |
| idx required | string Index Id. |
Request Examples
onezone-rest-cli getHarvesterIndexStats id=b752ceafabb662b4e5728b2ded25cdd1 idx=f1c8b1a37aa7447b22eb65a742d40524Responses
JSON with an index harvesting stats.
| Property | Type & Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
space_id object
| |||||||||||||
Example
{
"$SPACE_ID1": {
"$PROVIDER_ID1": {
"currentSeq": 5,
"maxSeq": 8,
"error": null,
"lastUpdate": 1557928576,
"archival": false
},
"$PROVIDER_ID2": {
"currentSeq": 8,
"maxSeq": 13,
"error": "Service unavailable: temporary failure",
"lastUpdate": 1557928576,
"archival": false
}
},
"$SPACE_ID2": {
"$PROVIDER_ID1": {
"currentSeq": 13,
"maxSeq": 21,
"error": null,
"lastUpdate": 1557928576,
"archival": false
},
"$PROVIDER_ID3": {
"currentSeq": 21,
"maxSeq": 34,
"error": null,
"lastUpdate": 1557928576,
"archival": true
}
}
}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."
}
}