Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
DOC-2020-S5-Mar22, DOC-2020-S6-Apr05
-
1
Description
The REST API and fields in rebalance report need to be documented.
The rest API that need to use get the latest rebalance report is given by lastReportURI field in tasks API.
$ curl -sX GET -u Administrator:asdasd http://localhost:9002/pools/default/tasks | jq . |
[
|
{
|
"statusId": "3ca3e97d2354d89e385d3a5f00d81057", |
"type": "rebalance", |
"status": "notRunning", |
"statusIsStale": false, |
"masterRequestTimedOut": false, |
"lastReportURI": "/logs/rebalanceReport?reportID=5de0f65ff9cfca045fb67479d2130942" |
}
|
]
|
The report can be obtained as below,
$ curl -sX GET -u Administrator:asdasd http://localhost:9002/logs/rebalanceReport?reportID=5de0f65ff9cfca045fb67479d2130942 | jq . > ~/Downloads/report.json |
I have attached the sample report. report.json
Attachments
Issue Links
- relates to
-
DOC-6429 tasks API page has missing information
- Resolved