@@ -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
@@ -152,12 +152,15 @@ the various configuration values within a running CouchDB instance.
152
152
}
153
153
}
154
154
155
+ .. versionchanged: 2.0.0 The config endpoint from ``/_config`` to
156
+ ``/_node/{node-name}/_config``.
157
+
155
158
.. _api/config/section :
156
159
157
- ``/_config/section ``
158
- ====================
160
+ ``_node/{node-name} /_config/section ``
161
+ =====================================
159
162
160
- .. http :get :: /_config/{section}
163
+ .. http :get :: /_node/{node-name}/ _config/{section}
161
164
:synopsis: Returns all the configuration values for the specified section
162
165
163
166
Gets the configuration structure for a single section.
@@ -174,7 +177,7 @@ the various configuration values within a running CouchDB instance.
174
177
175
178
.. code-block :: http
176
179
177
- GET /_config/httpd HTTP/1.1
180
+ GET /_node/nonode@nohost/ _config/httpd HTTP/1.1
178
181
Accept: application/json
179
182
Host: localhost:5984
180
183
@@ -203,10 +206,10 @@ the various configuration values within a running CouchDB instance.
203
206
204
207
.. _api/config/section/key :
205
208
206
- ``/_config/section/key ``
207
- ========================
209
+ ``/_node/node/ _config/section/key ``
210
+ ===================================
208
211
209
- .. http :get :: /_config/{section}/{key}
212
+ .. http :get :: /_node/{node-name}/ _config/{section}/{key}
210
213
:synopsis: Returns a specific section/configuration value
211
214
212
215
Gets a single configuration value from within a specific configuration
@@ -225,7 +228,7 @@ the various configuration values within a running CouchDB instance.
225
228
226
229
.. code-block :: http
227
230
228
- GET /_config/log/level HTTP/1.1
231
+ GET /_node/nonode@nohost/ _config/log/level HTTP/1.1
229
232
Accept: application/json
230
233
Host: localhost:5984
231
234
@@ -247,7 +250,7 @@ the various configuration values within a running CouchDB instance.
247
250
or numeric value, or an array or object. Some client environments may
248
251
not parse simple strings or numeric values as valid JSON.
249
252
250
- .. http :put :: /_config/{section}/{key}
253
+ .. http :put :: /_node/{node-name}/ _config/{section}/{key}
251
254
:synopsis: Sets the specified configuration value
252
255
253
256
Updates a configuration value. The new value should be supplied in the
@@ -271,7 +274,7 @@ the various configuration values within a running CouchDB instance.
271
274
272
275
.. code-block :: http
273
276
274
- PUT /_config/log/level HTTP/1.1
277
+ PUT /_node/nonode@nohost/ _config/log/level HTTP/1.1
275
278
Accept: application/json
276
279
Content-Length: 7
277
280
Content-Type: application/json
@@ -292,7 +295,7 @@ the various configuration values within a running CouchDB instance.
292
295
293
296
"debug"
294
297
295
- .. http :delete :: /_config/{section}/{key}
298
+ .. http :delete :: /_node/{node-name}/ _config/{section}/{key}
296
299
:synopsis: Removes the current setting
297
300
298
301
Deletes a configuration value. The returned JSON will be the value of the
@@ -312,7 +315,7 @@ the various configuration values within a running CouchDB instance.
312
315
313
316
.. code-block :: http
314
317
315
- DELETE /_config/log/level HTTP/1.1
318
+ DELETE /_node/nonode@nohost/ _config/log/level HTTP/1.1
316
319
Accept: application/json
317
320
Host: localhost:5984
318
321
0 commit comments