Skip to content

need help/explanation about implementing GET _dbs_info startkey (json) #5300

Answered by big-r81
bugsysBugs asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

how did you query your DB?

I can't reproduce this. For example, i have two dbs.

Request:

curl -s -u a:a "http://127.0.0.1:15984/_all_dbs"

Response:

[
  "_replicator",
  "_users"
]

If I want only the '_users' db in the result, I would do the following.

Request:

curl -s -u a:a 'http://127.0.0.1:15984/_dbs_info?startkey="_users"'

Response:

[
  {
    "key": "_users",
    "info": {
      "instance_start_time": "1728841527",
      "db_name": "_users",
      "purge_seq": "0-g1AAAABTeJzLYWBgYMpgTmHgz8tPSTV0MDQy1zMAQsMckEQeC5BkaABS_4EgK5EBp8pEhqR6iJIsACz0Fj4",
      "update_seq": "1-g1AAAACTeJzLYWBgYMpgTmHgz8tPSTV0MDQy1zMAQsMckEQeC5BkaABS_4EgK4M5kSEXKMCeapZmnmxoiakLp0mJDEn1UCMYwUaYGJqZp5qkYS…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bugsysBugs
Comment options

@bugsysBugs
Comment options

Answer selected by bugsysBugs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants