33
33
:>header Content-Type: - :mimetype: `application/json `
34
34
- :mimetype: `text/plain; charset=utf-8 `
35
35
:code 200: Request completed successfully
36
+ :code 401: Unauthorized request to a protected API
37
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
36
38
37
39
**Request **:
38
40
103
105
:>json number updated_on: Unix timestamp of last operation update
104
106
:code 200: Request completed successfully
105
107
:code 401: CouchDB Server Administrator privileges required
108
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
106
109
107
110
**Request **:
108
111
206
209
:>header Content-Type: - :mimetype: `application/json `
207
210
- :mimetype: `text/plain; charset=utf-8 `
208
211
:code 200: Request completed successfully
212
+ :code 401: Unauthorized request to a protected API
213
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
209
214
210
215
**Request **:
211
216
264
269
:>header Content-Type: - :mimetype: `application/json `
265
270
- :mimetype: `text/plain; charset=utf-8 `
266
271
:code 200: Request completed successfully
272
+ :code 401: Unauthorized request to a protected API
273
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
267
274
268
275
**Request **:
269
276
324
331
:<json array keys: Array of database names to be requested
325
332
:code 200: Request completed successfully
326
333
:code 400: Missing keys or exceeded keys in request
334
+ :code 401: Unauthorized request to a protected API
335
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
327
336
328
337
**Request **:
329
338
431
440
:>json string state: Current ``state `` of the node and/or cluster (see
432
441
below)
433
442
:code 200: Request completed successfully
443
+ :code 401: Unauthorized request to a protected API
444
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
434
445
435
446
The ``state `` returned indicates the current node or cluster state, and
436
447
is one of the following:
525
536
:<json array ensure_dbs_exist: List of system databases to ensure exist
526
537
on the node/cluster. Defaults to
527
538
``["_users","_replicator"] ``.
539
+ :code 200: Request completed successfully
540
+ :code 401: Unauthorized request to a protected API
541
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
528
542
529
- *No example request/response included here. For a worked example, please
543
+ *No example request/response included here. For a working example, please
530
544
see * :ref: `cluster/setup/api `.
531
545
532
546
.. _api/server/db_updates :
574
588
:>json string last_seq: The last sequence ID reported.
575
589
:code 200: Request completed successfully
576
590
:code 401: CouchDB Server Administrator privileges required
591
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
577
592
578
593
The ``results `` field of database updates:
579
594
633
648
:>header Content-Type: - :mimetype: `application/json `
634
649
- :mimetype: `text/plain; charset=utf-8 `
635
650
:code 200: Request completed successfully
651
+ :code 401: Unauthorized request to a protected API
652
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
636
653
637
654
**Request **:
638
655
732
749
:code 202: Continuous replication request has been accepted
733
750
:code 400: Invalid JSON data
734
751
:code 401: CouchDB Server Administrator privileges required
752
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
735
753
:code 404: Either the source or target DB is not found or attempt to
736
754
cancel unknown replication task
737
755
:code 500: JSON specification was invalid
@@ -1065,6 +1083,8 @@ error.
1065
1083
:>json string start_time: Timestamp of when the replication was started
1066
1084
:code 200: Request completed successfully
1067
1085
:code 401: CouchDB Server Administrator privileges required
1086
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
1087
+
1068
1088
1069
1089
**Request **:
1070
1090
@@ -1219,6 +1239,7 @@ error.
1219
1239
replication is not making progress.
1220
1240
:code 200: Request completed successfully
1221
1241
:code 401: CouchDB Server Administrator privileges required
1242
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
1222
1243
1223
1244
The ``info `` field of a scheduler doc:
1224
1245
@@ -1364,6 +1385,7 @@ error.
1364
1385
replication is not making progress.
1365
1386
:code 200: Request completed successfully
1366
1387
:code 401: CouchDB Server Administrator privileges required
1388
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
1367
1389
1368
1390
The ``info `` field of a scheduler doc:
1369
1391
@@ -1472,6 +1494,7 @@ error.
1472
1494
replication is not making progress.
1473
1495
:code 200: Request completed successfully
1474
1496
:code 401: CouchDB Server Administrator privileges required
1497
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
1475
1498
1476
1499
The ``info `` field of a scheduler doc:
1477
1500
@@ -1559,6 +1582,8 @@ error.
1559
1582
:>header Content-Type: - :mimetype: `application/json `
1560
1583
- :mimetype: `text/plain; charset=utf-8 `
1561
1584
:code 200: Request completed successfully
1585
+ :code 401: Unauthorized request to a protected API
1586
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
1562
1587
1563
1588
**Request **:
1564
1589
@@ -1613,6 +1638,8 @@ error.
1613
1638
:>header Content-Type: - :mimetype: `application/json `
1614
1639
- :mimetype: `text/plain; charset=utf-8 `
1615
1640
:code 200: Request completed successfully
1641
+ :code 401: Unauthorized request to a protected API
1642
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
1616
1643
1617
1644
**Request **:
1618
1645
@@ -1733,6 +1760,10 @@ containing only the requested individual statistic.
1733
1760
determined by `Prometheus <https://prometheus.io/docs/introduction/overview/ >`_.
1734
1761
The format version is 2.0.
1735
1762
1763
+ :code 200: Request completed successfully
1764
+ :code 401: Unauthorized request to a protected API
1765
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
1766
+
1736
1767
**Request **:
1737
1768
1738
1769
.. code-block :: http
@@ -1935,6 +1966,7 @@ See :ref:`Configuration of Prometheus Endpoint <config/prometheus>` for details.
1935
1966
1936
1967
:code 200: Request completed successfully
1937
1968
:code 401: CouchDB Server Administrator privileges required
1969
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
1938
1970
1939
1971
**Request **:
1940
1972
@@ -2043,6 +2075,8 @@ See :ref:`Configuration of Prometheus Endpoint <config/prometheus>` for details.
2043
2075
:>header Content-Type: - :mimetype: `application/json `
2044
2076
- :mimetype: `text/plain; charset=utf-8 `
2045
2077
:code 200: Request completed successfully
2078
+ :code 401: Unauthorized request to a protected API
2079
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
2046
2080
2047
2081
**Request **:
2048
2082
@@ -2083,6 +2117,8 @@ See :ref:`Configuration of Prometheus Endpoint <config/prometheus>` for details.
2083
2117
it is not meant to be used in production
2084
2118
2085
2119
:code 200: Request completed successfully
2120
+ :code 401: Unauthorized request to a protected API
2121
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
2086
2122
2087
2123
.. _api/server/versions :
2088
2124
@@ -2107,6 +2143,8 @@ See :ref:`Configuration of Prometheus Endpoint <config/prometheus>` for details.
2107
2143
- :mimetype: `text/plain `
2108
2144
:>header Content-Type: - :mimetype: `application/json `
2109
2145
:code 200: Request completed successfully
2146
+ :code 401: Unauthorized request to a protected API
2147
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
2110
2148
2111
2149
**Request **:
2112
2150
@@ -2172,6 +2210,8 @@ See :ref:`Configuration of Prometheus Endpoint <config/prometheus>` for details.
2172
2210
:param text: Analyzer token you want to test
2173
2211
:code 200: Request completed successfully
2174
2212
:code 400: Request body is wrong (malformed or missing one of the mandatory fields)
2213
+ :code 401: Unauthorized request to a protected API
2214
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
2175
2215
:code 500: A server error (or other kind of error) occurred
2176
2216
2177
2217
**Request **:
@@ -2219,6 +2259,8 @@ See :ref:`Configuration of Prometheus Endpoint <config/prometheus>` for details.
2219
2259
:param text: Analyzer token you want to test
2220
2260
:code 200: Request completed successfully
2221
2261
:code 400: Request body is wrong (malformed or missing one of the mandatory fields)
2262
+ :code 401: Unauthorized request to a protected API
2263
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
2222
2264
:code 500: A server error (or other kind of error) occurred
2223
2265
2224
2266
**Request **:
@@ -2261,6 +2303,8 @@ See :ref:`Configuration of Prometheus Endpoint <config/prometheus>` for details.
2261
2303
:>header Content-Type: :mimetype: `text/html `
2262
2304
:>header Last-Modified: Static files modification timestamp
2263
2305
:code 200: Request completed successfully
2306
+ :code 401: Unauthorized request to a protected API
2307
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
2264
2308
2265
2309
.. _api/server/up :
2266
2310
@@ -2279,6 +2323,8 @@ See :ref:`Configuration of Prometheus Endpoint <config/prometheus>` for details.
2279
2323
2280
2324
:>header Content-Type: :mimetype: `application/json `
2281
2325
:code 200: Request completed successfully
2326
+ :code 401: Unauthorized request to a protected API
2327
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
2282
2328
:code 404: The server is unavailable for requests at this time.
2283
2329
2284
2330
**Response **:
@@ -2319,6 +2365,8 @@ See :ref:`Configuration of Prometheus Endpoint <config/prometheus>` for details.
2319
2365
:code 200: Request completed successfully
2320
2366
:code 400: Requested more UUIDs than is :config:option: `allowed
2321
2367
<uuids/max_count> ` to retrieve
2368
+ :code 401: Unauthorized request to a protected API
2369
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
2322
2370
2323
2371
**Request **:
2324
2372
@@ -2398,6 +2446,8 @@ You can verify the change by obtaining a list of UUIDs:
2398
2446
2399
2447
:>header Content-Type: :mimetype: `image/x-icon `
2400
2448
:code 200: Request completed successfully
2449
+ :code 401: Unauthorized request to a protected API
2450
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
2401
2451
:code 404: The requested content could not be found
2402
2452
2403
2453
.. _api/server/reshard :
@@ -2428,6 +2478,7 @@ You can verify the change by obtaining a list of UUIDs:
2428
2478
2429
2479
:code 200: Request completed successfully
2430
2480
:code 401: CouchDB Server Administrator privileges required
2481
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
2431
2482
2432
2483
**Request **:
2433
2484
@@ -2468,6 +2519,7 @@ You can verify the change by obtaining a list of UUIDs:
2468
2519
2469
2520
:code 200: Request completed successfully
2470
2521
:code 401: CouchDB Server Administrator privileges required
2522
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
2471
2523
2472
2524
**Request **:
2473
2525
@@ -2510,6 +2562,7 @@ You can verify the change by obtaining a list of UUIDs:
2510
2562
:code 200: Request completed successfully
2511
2563
:code 400: Invalid request. Could be a bad or missing state name.
2512
2564
:code 401: CouchDB Server Administrator privileges required
2565
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
2513
2566
2514
2567
**Request **:
2515
2568
@@ -2554,6 +2607,7 @@ You can verify the change by obtaining a list of UUIDs:
2554
2607
2555
2608
:code 200: Request completed successfully
2556
2609
:code 401: CouchDB Server Administrator privileges required
2610
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
2557
2611
2558
2612
**Request **:
2559
2613
@@ -2634,6 +2688,7 @@ You can verify the change by obtaining a list of UUIDs:
2634
2688
2635
2689
:code 200: Request completed successfully
2636
2690
:code 401: CouchDB Server Administrator privileges required
2691
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
2637
2692
2638
2693
**Request **:
2639
2694
@@ -2722,6 +2777,7 @@ You can verify the change by obtaining a list of UUIDs:
2722
2777
:code 201: One or more jobs were successfully created
2723
2778
:code 400: Invalid request. Parameter validation might have failed.
2724
2779
:code 401: CouchDB Server Administrator privileges required
2780
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
2725
2781
:code 404: Db, node, range or shard was not found
2726
2782
2727
2783
**Request **:
@@ -2769,6 +2825,7 @@ You can verify the change by obtaining a list of UUIDs:
2769
2825
2770
2826
:code 200: The job was removed successfully
2771
2827
:code 401: CouchDB Server Administrator privileges required
2828
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
2772
2829
:code 404: The job was not found
2773
2830
2774
2831
**Request **:
@@ -2804,6 +2861,7 @@ You can verify the change by obtaining a list of UUIDs:
2804
2861
2805
2862
:code 200: Request completed successfully
2806
2863
:code 401: CouchDB Server Administrator privileges required
2864
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
2807
2865
:code 404: The job was not found
2808
2866
2809
2867
**Request **:
@@ -2848,6 +2906,7 @@ You can verify the change by obtaining a list of UUIDs:
2848
2906
:code 200: Request completed successfully
2849
2907
:code 400: Invalid request. Could be a bad state name, for example.
2850
2908
:code 401: CouchDB Server Administrator privileges required
2909
+ :code 403: Insufficient permissions / :ref: `Too many requests with invalid credentials<error/403> `
2851
2910
:code 404: The job was not found
2852
2911
2853
2912
**Request **:
0 commit comments