@@ -19,10 +19,10 @@ Configuration
19
19
The CouchDB Server Configuration API provide an interface to query and update
20
20
the various configuration values within a running CouchDB instance.
21
21
22
- ``/_config ``
23
- ============
22
+ ``/_node/{node-name}/ _config ``
23
+ ==============================
24
24
25
- .. http :get :: /_config
25
+ .. http :get :: /_node/{node-name}/ _config
26
26
:synopsis: Obtains a list of the entire server configuration
27
27
28
28
Returns the entire CouchDB server configuration as a JSON structure. The
@@ -40,7 +40,7 @@ the various configuration values within a running CouchDB instance.
40
40
41
41
.. code-block :: http
42
42
43
- GET /_config HTTP/1.1
43
+ GET /_node/nonode@nohost/ _config HTTP/1.1
44
44
Accept: application/json
45
45
Host: localhost:5984
46
46
@@ -153,12 +153,15 @@ the various configuration values within a running CouchDB instance.
153
153
}
154
154
}
155
155
156
+ .. versionchanged: 2.0.0 The config endpoint from ``/_config`` to
157
+ ``/_node/{node-name}/_config``.
158
+
156
159
.. _api/config/section :
157
160
158
- ``/_config/section ``
159
- ====================
161
+ ``_node/{node-name} /_config/section ``
162
+ =====================================
160
163
161
- .. http :get :: /_config/{section}
164
+ .. http :get :: /_node/{node-name}/ _config/{section}
162
165
:synopsis: Returns all the configuration values for the specified section
163
166
164
167
Gets the configuration structure for a single section.
@@ -175,7 +178,7 @@ the various configuration values within a running CouchDB instance.
175
178
176
179
.. code-block :: http
177
180
178
- GET /_config/httpd HTTP/1.1
181
+ GET /_node/nonode@nohost/ _config/httpd HTTP/1.1
179
182
Accept: application/json
180
183
Host: localhost:5984
181
184
@@ -204,10 +207,10 @@ the various configuration values within a running CouchDB instance.
204
207
205
208
.. _api/config/section/key :
206
209
207
- ``/_config/section/key ``
208
- ========================
210
+ ``/_node/node/ _config/section/key ``
211
+ ===================================
209
212
210
- .. http :get :: /_config/{section}/{key}
213
+ .. http :get :: /_node/{node-name}/ _config/{section}/{key}
211
214
:synopsis: Returns a specific section/configuration value
212
215
213
216
Gets a single configuration value from within a specific configuration
@@ -226,7 +229,7 @@ the various configuration values within a running CouchDB instance.
226
229
227
230
.. code-block :: http
228
231
229
- GET /_config/log/level HTTP/1.1
232
+ GET /_node/nonode@nohost/ _config/log/level HTTP/1.1
230
233
Accept: application/json
231
234
Host: localhost:5984
232
235
@@ -248,7 +251,7 @@ the various configuration values within a running CouchDB instance.
248
251
or numeric value, or an array or object. Some client environments may
249
252
not parse simple strings or numeric values as valid JSON.
250
253
251
- .. http :put :: /_config/{section}/{key}
254
+ .. http :put :: /_node/{node-name}/ _config/{section}/{key}
252
255
:synopsis: Sets the specified configuration value
253
256
254
257
Updates a configuration value. The new value should be supplied in the
@@ -272,7 +275,7 @@ the various configuration values within a running CouchDB instance.
272
275
273
276
.. code-block :: http
274
277
275
- PUT /_config/log/level HTTP/1.1
278
+ PUT /_node/nonode@nohost/ _config/log/level HTTP/1.1
276
279
Accept: application/json
277
280
Content-Length: 7
278
281
Content-Type: application/json
@@ -293,7 +296,7 @@ the various configuration values within a running CouchDB instance.
293
296
294
297
"debug"
295
298
296
- .. http :delete :: /_config/{section}/{key}
299
+ .. http :delete :: /_node/{node-name}/ _config/{section}/{key}
297
300
:synopsis: Removes the current setting
298
301
299
302
Deletes a configuration value. The returned JSON will be the value of the
@@ -313,7 +316,7 @@ the various configuration values within a running CouchDB instance.
313
316
314
317
.. code-block :: http
315
318
316
- DELETE /_config/log/level HTTP/1.1
319
+ DELETE /_node/nonode@nohost/ _config/log/level HTTP/1.1
317
320
Accept: application/json
318
321
Host: localhost:5984
319
322
0 commit comments