Reputation: 907
I want to retrieve the list of local documents an my Cloudant Bluemix CouchDB.
Under CouchDB 2 i can GET /db/_local_docs
to get a listing similar to _all_docs.
Unfortunately Cloudant returns following error when i call the endpoint:
{"error":"forbidden","reason":"server_admin access is required for this request"}
I tried to access the endpoint while logged in as account owner into the Cloudant Dashboard as well as authenticated with an API key.
I event tried to add an API key with the role server admin but without success
How can i access a list of local docs in Cloudant?
Upvotes: 3
Views: 230
Reputation: 339
I turned this into an issue. See here https://github.com/ibm-cloud-docs/Cloudant/issues. This should allow tracking its progress.
In the documentation https://cloud.ibm.com/docs/services/Cloudant?topic=cloudant-comparison-of-ibm-cloudant-and-couchdb-api-endpoints it shows that in CouchDB 1.6 only individual local documents can be accessed, and Couch DB 2.0 introduces the /db/_local_docs endpoint to list all local documents.
If you click on the Cloudant icon in that table, the documentation for /db/_local is missing. It appears that that functionality should be in Cloudant, but something is amiss.
Upvotes: 2