Confluence Content Reindexing using Rest API

Navya_Shetty May 8, 2020

Hello Team,

we wanted to automate confluence re-indexing when ever we do a data replication replication between prod to INT or when we go on up gradation.

We are using Confluence version - 6.13.X . I'm using the below mentioned Rest call to trigger the content indexing.

http://localhost:8090/rest/prototype/1/index/reindex 

With this rest api , i'm able to trigger reindexing. but i wanted to add next step to check the progress of indexing. how can i do it.? Is there any rest api to check the progress ? 

Please suggest.

2 answers

0 votes
Vamsi Kandala
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 10, 2024

Hi,

You can use this to get the progress of the content indexing:

https://<instance url>/rest/rebuildindex/latest/job

Then you can use this curl command with jq to get the value of progress:

curl -s -H "Authorization: <Credentials>" -X GET "https://<instance url>/rest/rebuildindex/latest/job |jq -r '.progress'

Hope this helps!

Thanks,
Vamsi

 

0 votes
Brant Schroeder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 19, 2021

@Navya_Shetty 

This KB is for the latest version but I believe it will still work for your version.  https://confluence.atlassian.com/confkb/how-to-monitor-re-indexing-progress-through-rest-api-1005328489.html

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events