blob: 6596eda5bacc414c5c9589338c6bd5a3a69c2d35 [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= Gerrit Code Review - /config/ REST API
David Ostrovsky28b8ea62013-06-09 02:16:57 +02002
3This page describes the config related REST endpoints.
4Please also take note of the general information on the
5link:rest-api.html[REST API].
6
7[[config-endpoints]]
8Config Endpoints
9---------------
10
Edwin Kempinf2e3fe62013-07-04 16:03:32 +020011[[get-version]]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080012=== Get Version
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080013--
Edwin Kempinf2e3fe62013-07-04 16:03:32 +020014'GET /config/server/version'
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080015--
Edwin Kempinf2e3fe62013-07-04 16:03:32 +020016
17Returns the version of the Gerrit server.
18
19.Request
20----
21 GET /config/server/version HTTP/1.0
22----
23
24.Response
25----
26 HTTP/1.1 200 OK
David Pursehouse56bf1cb2015-01-06 15:44:00 +090027 Content-Type: application/json; charset=UTF-8
Edwin Kempinf2e3fe62013-07-04 16:03:32 +020028
29 )]}'
30 "2.7"
31----
32
Edwin Kempinb8590bd2015-04-30 12:55:34 +020033[[get-info]]
34=== Get Server Info
35--
36'GET /config/server/info'
37--
38
39Returns the information about the Gerrit server configuration.
40
41.Request
42----
43 GET /config/server/info HTTP/1.0
44----
45
46As result a link:#server-info[ServerInfo] entity is returned.
47
48.Response
49----
50 HTTP/1.1 200 OK
51 Content-Type: application/json; charset=UTF-8
52
53 )]}'
54 {
Edwin Kempinf0dacbd2017-08-30 16:17:17 +020055 "accounts": {
56 "visibility": "ALL"
57 },
Edwin Kempinb8590bd2015-04-30 12:55:34 +020058 "auth": {
59 "auth_type": "LDAP",
David Pursehousecc046732016-08-22 20:08:52 +090060 "use_contributor_agreements": true,
61 "contributor_agreements": [
62 {
63 "name": "Individual",
64 "description": "If you are going to be contributing code on your own, this is the one you want. You can sign this one online.",
65 "url": "static/cla_individual.html"
66 }
67 ],
Edwin Kempinb8590bd2015-04-30 12:55:34 +020068 "editable_account_fields": [
69 "FULL_NAME",
70 "REGISTER_NEW_EMAIL"
71 ]
72 },
73 "download": {
Adrian Görler266f9592015-10-08 16:56:51 +020074 "schemes": {
Edwin Kempin132d28e2015-05-07 15:30:35 +020075 "anonymous http": {
76 "url": "http://gerrithost:8080/${project}",
Edwin Kempinb8590bd2015-04-30 12:55:34 +020077 "commands": {
Edwin Kempin132d28e2015-05-07 15:30:35 +020078 "Checkout": "git fetch http://gerrithost:8080/${project} ${ref} \u0026\u0026 git checkout FETCH_HEAD",
79 "Format Patch": "git fetch http://gerrithost:8080/${project} ${ref} \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD",
80 "Pull": "git pull http://gerrithost:8080/${project} ${ref}",
81 "Cherry Pick": "git fetch http://gerrithost:8080/${project} ${ref} \u0026\u0026 git cherry-pick FETCH_HEAD"
Edwin Kempineafde882015-05-11 15:40:44 +020082 },
83 "clone_commands": {
Adrian Görler266f9592015-10-08 16:56:51 +020084 "Clone": "git clone http://gerrithost:8080/${project}",
Edwin Kempineafde882015-05-11 15:40:44 +020085 "Clone with commit-msg hook": "git clone http://gerrithost:8080/${project} \u0026\u0026 scp -p -P 29418 jdoe@gerrithost:hooks/commit-msg ${project}/.git/hooks/"
Edwin Kempinb8590bd2015-04-30 12:55:34 +020086 }
87 },
Edwin Kempin132d28e2015-05-07 15:30:35 +020088 "http": {
Edwin Kempinb8590bd2015-04-30 12:55:34 +020089 "url": "http://jdoe@gerrithost:8080/${project}",
90 "is_auth_required": true,
91 "is_auth_supported": true,
92 "commands": {
93 "Checkout": "git fetch http://jdoe@gerrithost:8080/${project} ${ref} \u0026\u0026 git checkout FETCH_HEAD",
94 "Format Patch": "git fetch http://jdoe@gerrithost:8080/${project} ${ref} \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD",
95 "Pull": "git pull http://jdoe@gerrithost:8080/${project} ${ref}",
96 "Cherry Pick": "git fetch http://jdoe@gerrithost:8080/${project} ${ref} \u0026\u0026 git cherry-pick FETCH_HEAD"
Edwin Kempineafde882015-05-11 15:40:44 +020097 },
98 "clone_commands": {
99 "Clone": "git clone http://jdoe@gerrithost:8080/${project}",
100 "Clone with commit-msg hook": "git clone http://jdoe@gerrithost:8080/${project} \u0026\u0026 scp -p -P 29418 jdoe@gerrithost:hooks/commit-msg ${project}/.git/hooks/"
Edwin Kempinb8590bd2015-04-30 12:55:34 +0200101 }
102 },
Edwin Kempin132d28e2015-05-07 15:30:35 +0200103 "ssh": {
104 "url": "ssh://jdoe@gerrithost:29418/${project}",
105 "is_auth_required": true,
106 "is_auth_supported": true,
Edwin Kempinb8590bd2015-04-30 12:55:34 +0200107 "commands": {
Edwin Kempin132d28e2015-05-07 15:30:35 +0200108 "Checkout": "git fetch ssh://jdoe@gerrithost:29418/${project} ${ref} \u0026\u0026 git checkout FETCH_HEAD",
109 "Format Patch": "git fetch ssh://jdoe@gerrithost:29418/${project} ${ref} \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD",
110 "Pull": "git pull ssh://jdoe@gerrithost:29418/${project} ${ref}",
111 "Cherry Pick": "git fetch ssh://jdoe@gerrithost:29418/${project} ${ref} \u0026\u0026 git cherry-pick FETCH_HEAD"
Edwin Kempineafde882015-05-11 15:40:44 +0200112 },
113 "clone_commands": {
114 "Clone": "git clone ssh://jdoe@gerrithost:29418/${project}",
115 "Clone with commit-msg hook": "git clone ssh://jdoe@gerrithost:29418/${project} \u0026\u0026 scp -p -P 29418 jdoe@gerrithost:hooks/commit-msg ${project}/.git/hooks/"
Edwin Kempinb8590bd2015-04-30 12:55:34 +0200116 }
117 }
Adrian Görler266f9592015-10-08 16:56:51 +0200118 },
Edwin Kempinb8590bd2015-04-30 12:55:34 +0200119 "archives": [
Edwin Kempinf5c88792015-05-20 09:20:30 +0200120 "tgz",
121 "tar",
122 "tbz2",
123 "txz"
Edwin Kempinb8590bd2015-04-30 12:55:34 +0200124 ]
125 },
126 "gerrit": {
127 "all_projects": "All-Projects",
128 "all_users": "All-Users"
Dave Borowitzf4599a02016-09-19 21:51:51 +0200129 "doc_search": true,
130 "web_uis": [
131 "gwt"
132 ]
Edwin Kempin50570542015-05-08 15:31:56 +0200133 },
Edwin Kempina3188e12015-05-12 13:34:42 +0200134 "sshd": {},
Edwin Kempin50570542015-05-08 15:31:56 +0200135 "suggest": {
136 "from": 0
137 },
138 "user": {
139 "anonymous_coward_name": "Anonymous Coward"
Edwin Kempinb8590bd2015-04-30 12:55:34 +0200140 }
141 }
142----
143
Edwin Kempin54fd1d32017-03-24 15:32:03 +0100144[[check-consistency]]
145=== Check Consistency
146--
Edwin Kempin2ee52f82017-04-25 11:04:28 +0200147'POST /config/server/check.consistency'
Edwin Kempin54fd1d32017-03-24 15:32:03 +0100148--
149
150Runs consistency checks and returns detected problems.
151
152Input for the consistency checks that should be run must be provided in
153the request body inside a
154link:#consistency-check-input[ConsistencyCheckInput] entity.
155
156.Request
157----
Edwin Kempin2ee52f82017-04-25 11:04:28 +0200158 POST /config/server/check.consistency HTTP/1.0
Edwin Kempin54fd1d32017-03-24 15:32:03 +0100159 Content-Type: application/json; charset=UTF-8
160
161 {
Edwin Kempin6396d6d2017-05-30 10:41:28 +0200162 "check_accounts": {},
Edwin Kempin54fd1d32017-03-24 15:32:03 +0100163 "check_account_external_ids": {}
164 }
165----
166
167As result a link:#consistency-check-info[ConsistencyCheckInfo] entity
168is returned that contains detected consistency problems.
169
170.Response
171----
172 HTTP/1.1 200 OK
173 Content-Type: application/json; charset=UTF-8
174
175 )]}'
176 {
Edwin Kempin6396d6d2017-05-30 10:41:28 +0200177 "check_accounts_result": {
178 "problems": [
179 {
180 "status": "ERROR",
181 "message": "Account \u00271000024\u0027 has no external ID for its preferred email \u0027foo.bar@example.com\u0027"
182 }
183 ]
184 }
Edwin Kempindadd3032017-05-30 09:46:44 +0200185 "check_account_external_ids_result": {
186 "problems": [
187 {
188 "status": "ERROR",
189 "message": "External ID \u0027uuid:ccb8d323-1361-45aa-8874-41987a660c46\u0027 belongs to account that doesn\u0027t exist: 1000012"
190 }
191 ]
Edwin Kempin54fd1d32017-03-24 15:32:03 +0100192 }
193 }
194----
195
Han-Wen Nienhuyse04df7e2017-04-25 17:41:58 +0200196
Edwin Kempined846572015-07-24 14:17:11 +0200197[[confirm-email]]
198=== Confirm Email
199--
200'PUT /config/server/email.confirm'
201--
202
203Confirms that the user owns an email address.
204
205The email token must be provided in the request body inside
206an link:#email-confirmation-input[EmailConfirmationInput] entity.
207
208.Request
209----
210 PUT /config/server/email.confirm HTTP/1.0
211 Content-Type: application/json; charset=UTF-8
212
213 {
214 "token": "Enim+QNbAo6TV8Hur8WwoUypI6apG7qBPvF+bw==$MTAwMDAwNDp0ZXN0QHRlc3QuZGU="
215 }
216----
217
218The response is "`204 No Content`".
219
220If the token is invalid or if it's the token of another user the
221request fails and the response is "`422 Unprocessable Entity`".
222
Edwin Kempinb8590bd2015-04-30 12:55:34 +0200223
Edwin Kempin42c9cf62014-05-23 08:45:56 +0200224[[list-caches]]
225=== List Caches
226--
227'GET /config/server/caches/'
228--
229
230Lists the caches of the server. Caches defined by plugins are included.
231
Dave Borowitz664d0402015-06-11 15:35:48 -0400232The caller must be a member of a group that is granted one of the
233following capabilities:
234
235* link:access-control.html#capability_viewCaches[View Caches]
236* link:access-control.html#capability_maintainServer[Maintain Server]
237* link:access-control.html#capability_administrateServer[Administrate Server]
Edwin Kempin42c9cf62014-05-23 08:45:56 +0200238
239As result a map of link:#cache-info[CacheInfo] entities is returned.
240
241The entries in the map are sorted by cache name.
242
243.Request
244----
245 GET /config/server/caches/ HTTP/1.0
246----
247
248.Response
249----
250 HTTP/1.1 200 OK
David Pursehouse56bf1cb2015-01-06 15:44:00 +0900251 Content-Type: application/json; charset=UTF-8
Edwin Kempin42c9cf62014-05-23 08:45:56 +0200252
253 )]}'
254 {
255 "accounts": {
Edwin Kempinf11eadc2014-06-24 15:23:52 +0200256 "type": "MEM",
Edwin Kempin42c9cf62014-05-23 08:45:56 +0200257 "entries": {
258 "mem": 4
259 },
260 "average_get": "2.5ms",
261 "hit_ratio": {
262 "mem": 94
263 }
264 },
Edwin Kempin42c9cf62014-05-23 08:45:56 +0200265 "adv_bases": {
Edwin Kempinf11eadc2014-06-24 15:23:52 +0200266 "type": "MEM",
Edwin Kempin42c9cf62014-05-23 08:45:56 +0200267 "entries": {},
268 "hit_ratio": {}
269 },
270 "change_kind": {
271 "type": "DISK",
272 "entries": {
273 "space": "0.00k"
274 },
275 "hit_ratio": {}
276 },
277 "changes": {
Edwin Kempinf11eadc2014-06-24 15:23:52 +0200278 "type": "MEM",
Edwin Kempin42c9cf62014-05-23 08:45:56 +0200279 "entries": {},
280 "hit_ratio": {}
281 },
282 "conflicts": {
283 "type": "DISK",
284 "entries": {
285 "mem": 2,
286 "disk": 3,
287 "space": "2.75k"
288 },
289 "hit_ratio": {
290 "mem": 0,
291 "disk": 100
292 }
293 },
294 "diff": {
295 "type": "DISK",
296 "entries": {
297 "mem": 177,
298 "disk": 253,
299 "space": "170.97k"
300 },
301 "average_get": "1.1ms",
302 "hit_ratio": {
303 "mem": 67,
304 "disk": 100
305 }
306 },
307 "diff_intraline": {
308 "type": "DISK",
309 "entries": {
310 "mem": 1,
311 "disk": 1,
312 "space": "0.37k"
313 },
314 "average_get": "6.8ms",
315 "hit_ratio": {
316 "mem": 0
317 }
318 },
319 "git_tags": {
320 "type": "DISK",
321 "entries": {
322 "space": "0.00k"
323 },
324 "hit_ratio": {}
325 },
326 groups": {
Edwin Kempinf11eadc2014-06-24 15:23:52 +0200327 "type": "MEM",
Edwin Kempin42c9cf62014-05-23 08:45:56 +0200328 "entries": {
329 "mem": 27
330 },
331 "average_get": "183.2us",
332 "hit_ratio": {
333 "mem": 12
334 }
335 },
336 "groups_byinclude": {
Edwin Kempinf11eadc2014-06-24 15:23:52 +0200337 "type": "MEM",
Edwin Kempin42c9cf62014-05-23 08:45:56 +0200338 "entries": {},
339 "hit_ratio": {}
340 },
341 "groups_byname": {
Edwin Kempinf11eadc2014-06-24 15:23:52 +0200342 "type": "MEM",
Edwin Kempin42c9cf62014-05-23 08:45:56 +0200343 "entries": {},
344 "hit_ratio": {}
345 },
346 "groups_byuuid": {
Edwin Kempinf11eadc2014-06-24 15:23:52 +0200347 "type": "MEM",
Edwin Kempin42c9cf62014-05-23 08:45:56 +0200348 "entries": {
349 "mem": 25
350 },
351 "average_get": "173.4us",
352 "hit_ratio": {
353 "mem": 13
354 }
355 },
356 "groups_external": {
Edwin Kempinf11eadc2014-06-24 15:23:52 +0200357 "type": "MEM",
Edwin Kempin42c9cf62014-05-23 08:45:56 +0200358 "entries": {},
359 "hit_ratio": {}
360 },
361 groups_members": {
Edwin Kempinf11eadc2014-06-24 15:23:52 +0200362 "type": "MEM",
Edwin Kempin42c9cf62014-05-23 08:45:56 +0200363 "entries": {
364 "mem": 4
365 },
366 "average_get": "697.8us",
367 "hit_ratio": {
368 "mem": 82
369 }
370 },
371 "permission_sort": {
Edwin Kempinf11eadc2014-06-24 15:23:52 +0200372 "type": "MEM",
Edwin Kempin42c9cf62014-05-23 08:45:56 +0200373 "entries": {
374 "mem": 16
375 },
376 "hit_ratio": {
377 "mem": 96
378 }
379 },
380 "plugin_resources": {
Edwin Kempinf11eadc2014-06-24 15:23:52 +0200381 "type": "MEM",
Edwin Kempin42c9cf62014-05-23 08:45:56 +0200382 "entries": {
383 "mem": 2
384 },
385 "hit_ratio": {
386 "mem": 83
387 }
388 },
389 "project_list": {
Edwin Kempinf11eadc2014-06-24 15:23:52 +0200390 "type": "MEM",
Edwin Kempin42c9cf62014-05-23 08:45:56 +0200391 "entries": {
392 "mem": 1
393 },
394 "average_get": "18.6ms",
395 "hit_ratio": {
396 "mem": 0
397 }
398 },
399 "projects": {
Edwin Kempinf11eadc2014-06-24 15:23:52 +0200400 "type": "MEM",
Edwin Kempin42c9cf62014-05-23 08:45:56 +0200401 "entries": {
402 "mem": 35
403 },
404 "average_get": "8.6ms",
405 "hit_ratio": {
406 "mem": 99
407 }
408 },
409 "quota-repo_size": {
410 "type": "DISK",
411 "entries": {
412 "space": "0.00k"
413 },
414 "hit_ratio": {}
415 },
416 "sshkeys": {
Edwin Kempinf11eadc2014-06-24 15:23:52 +0200417 "type": "MEM",
Edwin Kempin42c9cf62014-05-23 08:45:56 +0200418 "entries": {
419 "mem": 1
420 },
421 "average_get": "3.2ms",
422 "hit_ratio": {
423 "mem": 50
424 }
425 },
426 "web_sessions": {
427 "type": "DISK",
428 "entries": {
429 "mem": 1,
430 "disk": 2,
431 "space": "0.78k"
432 },
433 "hit_ratio": {
434 "mem": 82
435 }
436 }
437 }
438----
439
Edwin Kempin8dd94122014-05-28 12:04:17 +0200440It is possible to get different output formats by specifying the
441`format` option:
442
443* `LIST`:
444+
445Returns the cache names as JSON list.
446+
David Pursehouse33a3c252016-11-15 16:55:33 -0800447The cache names are lexicographically sorted.
Edwin Kempin8dd94122014-05-28 12:04:17 +0200448+
449.Request
450----
451 GET /config/server/caches/?format=LIST HTTP/1.0
452----
453+
454.Response
455----
456 HTTP/1.1 200 OK
David Pursehouse56bf1cb2015-01-06 15:44:00 +0900457 Content-Type: application/json; charset=UTF-8
Edwin Kempin8dd94122014-05-28 12:04:17 +0200458
459 )]}'
460 [
461 "accounts",
Edwin Kempin8dd94122014-05-28 12:04:17 +0200462 "adv_bases",
463 "change_kind",
464 "changes",
465 "conflicts",
466 "diff",
467 "diff_intraline",
468 "git_tags",
469 "groups",
470 "groups_byinclude",
471 "groups_byname",
472 "groups_byuuid",
473 "groups_external",
474 "groups_members",
475 "permission_sort",
476 "plugin_resources",
477 "project_list",
478 "projects",
479 "quota-repo_size",
480 "sshkeys",
481 "web_sessions"
482 ]
483----
484
485* `TEXT_LIST`:
486+
487Returns the cache names as a UTF-8 list that is base64 encoded. The
488cache names are delimited by '\n'.
489+
490The cache names are lexicographically sorted.
491+
492.Request
493----
494 GET /config/server/caches/?format=TEXT_LIST HTTP/1.0
495----
496+
497.Response
498----
499 HTTP/1.1 200 OK
David Pursehouse56bf1cb2015-01-06 15:44:00 +0900500 Content-Type: text/plain; charset=UTF-8
Edwin Kempin8dd94122014-05-28 12:04:17 +0200501
502 YWNjb3VudHMKYW...ViX3Nlc3Npb25z
503----
504+
505E.g. this could be used to flush all caches:
506+
507----
Han-Wen Nienhuys84d830b2017-02-15 16:36:04 +0100508 for c in $(curl --user jdoe:TNAuLkXsIV7w http://gerrit/a/config/server/caches/?format=TEXT_LIST | base64 -D)
Edwin Kempin8dd94122014-05-28 12:04:17 +0200509 do
Han-Wen Nienhuys84d830b2017-02-15 16:36:04 +0100510 curl --user jdoe:TNAuLkXsIV7w -X POST http://gerrit/a/config/server/caches/$c/flush
Edwin Kempin8dd94122014-05-28 12:04:17 +0200511 done
512----
513
David Pursehousea012b012014-07-10 14:00:40 +0900514[[cache-operations]]
Edwin Kempina4286832014-05-28 14:17:22 +0200515=== Cache Operations
516--
517'POST /config/server/caches/'
518--
519
520Executes a cache operation that is specified in the request body in a
521link:#cache-operation-input[CacheOperationInput] entity.
522
523[[flush-all-caches]]
524==== Flush All Caches
525
526.Request
527----
528 POST /config/server/caches/ HTTP/1.0
David Pursehouse56bf1cb2015-01-06 15:44:00 +0900529 Content-Type: application/json; charset=UTF-8
Edwin Kempina4286832014-05-28 14:17:22 +0200530
531 {
532 "operation": "FLUSH_ALL"
533 }
534----
535
536.Response
537----
538 HTTP/1.1 200 OK
539----
540
Edwin Kempina3c6d032014-05-28 14:46:44 +0200541[[flush-several-caches]]
542==== Flush Several Caches At Once
543
544.Request
545----
546 POST /config/server/caches/ HTTP/1.0
David Pursehouse56bf1cb2015-01-06 15:44:00 +0900547 Content-Type: application/json; charset=UTF-8
Edwin Kempina3c6d032014-05-28 14:46:44 +0200548
549 {
Adrian Görler25125102014-08-13 15:00:44 +0200550 "operation": "FLUSH",
Edwin Kempina3c6d032014-05-28 14:46:44 +0200551 "caches": [
552 "projects",
553 "project_list"
554 ]
555 }
556----
557
558.Response
559----
560 HTTP/1.1 200 OK
561----
562
Edwin Kempin57a46822014-05-23 10:24:41 +0200563[[get-cache]]
564=== Get Cache
565--
566'GET /config/server/caches/link:#cache-name[\{cache-name\}]'
567--
568
569Retrieves information about a cache.
570
Dave Borowitz664d0402015-06-11 15:35:48 -0400571The caller must be a member of a group that is granted one of the
572following capabilities:
573
574* link:access-control.html#capability_viewCaches[View Caches]
575* link:access-control.html#capability_maintainServer[Maintain Server]
576* link:access-control.html#capability_administrateServer[Administrate Server]
Edwin Kempin57a46822014-05-23 10:24:41 +0200577
578As result a link:#cache-info[CacheInfo] entity is returned.
579
580.Request
581----
582 GET /config/server/caches/projects HTTP/1.0
583----
584
585.Response
586----
587 HTTP/1.1 200 OK
David Pursehouse56bf1cb2015-01-06 15:44:00 +0900588 Content-Type: application/json; charset=UTF-8
Edwin Kempin57a46822014-05-23 10:24:41 +0200589
590 )]}'
591 {
592 "name": "projects",
Edwin Kempinf11eadc2014-06-24 15:23:52 +0200593 "type": "MEM",
Edwin Kempin57a46822014-05-23 10:24:41 +0200594 "entries": {
595 "mem": 35
596 },
597 "average_get": " 8.6ms",
598 "hit_ratio": {
599 "mem": 99
600 }
601 }
602----
603
Edwin Kempin37cc41a2014-05-23 10:52:20 +0200604[[flush-cache]]
605=== Flush Cache
606--
607'POST /config/server/caches/link:#cache-name[\{cache-name\}]/flush'
608--
609
610Flushes a cache.
611
Dave Borowitz664d0402015-06-11 15:35:48 -0400612The caller must be a member of a group that is granted one of the
613following capabilities:
Edwin Kempin37cc41a2014-05-23 10:52:20 +0200614
Dave Borowitz664d0402015-06-11 15:35:48 -0400615* link:access-control.html#capability_flushCaches[Flush Caches] (any cache
616 except "web_sessions")
617* link:access-control.html#capability_maintainServer[Maintain Server] (any cache
618 including "web_sessions")
619* link:access-control.html#capability_administrateServer[Administrate Server]
620 (any cache including "web_sessions")
Edwin Kempin37cc41a2014-05-23 10:52:20 +0200621
622.Request
623----
624 POST /config/server/caches/projects/flush HTTP/1.0
625----
626
627.Response
628----
629 HTTP/1.1 200 OK
630----
631
Edwin Kempind905e582014-05-28 16:54:36 +0200632[[get-summary]]
633=== Get Summary
634--
635'GET /config/server/summary'
636--
637
638Retrieves a summary of the current server state.
639
640The caller must be a member of a group that is granted the
641link:access-control.html#capability_administrateServer[Administrate
642Server] capability.
643
644The following options are supported:
645
646* `jvm`:
647+
648Includes a JVM summary.
649
650* `gc`:
651+
652Requests a Java garbage collection before computing the information
653about the Java memory heap.
654
655.Request
656----
657 GET /config/server/summary?jvm HTTP/1.0
658----
659
660As result a link:#summary-info[SummaryInfo] entity is returned.
661
662.Response
663----
664 HTTP/1.1 200 OK
David Pursehouse56bf1cb2015-01-06 15:44:00 +0900665 Content-Type: application/json; charset=UTF-8
Edwin Kempind905e582014-05-28 16:54:36 +0200666
667 )]}'
668 {
669 "task_summary": {
670 "total": 2,
671 "sleeping": 2
672 },
673 "mem_summary": {
674 "total": "341.06m",
675 "used": "57.16m",
676 "free": "283.90m",
677 "buffers": "0.00k",
678 "max": "1.67g",
679 }
680 "thread_summary": {
681 "cpus": 8,
682 "threads": 44,
683 "counts": {
684 "HTTP": {
685 "RUNNABLE": 3,
686 "TIMED_WAITING": 2
687 },
688 "SSH-Interactive-Worker": {
689 "WAITING": 1
690 },
691 "Other": {
692 "WAITING": 10,
693 "RUNNABLE": 2,
694 "TIMED_WAITING": 25
695 },
696 "SshCommandStart": {
697 "WAITING": 1
698 }
699 }
700 },
701 "jvm_summary": {
702 "vm_vendor": "Oracle Corporation",
703 "vm_name": "Java HotSpot(TM) 64-Bit Server VM",
704 "vm_version": "23.25-b01",
705 "os_name": "Mac OS X",
706 "os_version": "10.8.5",
707 "os_arch": "x86_64",
708 "user": "gerrit",
709 "host": "GERRIT",
710 "current_working_directory": "/Users/gerrit/site",
711 "site": "/Users/gerrit/site"
712 }
713 }
714----
715
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200716[[list-capabilities]]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -0800717=== List Capabilities
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -0800718--
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200719'GET /config/server/capabilities'
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -0800720--
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200721
David Pursehouse538a1b92013-06-12 10:45:54 +0200722Lists the capabilities that are available in the system. There are two
723kinds of capabilities: core and plugin-owned capabilities.
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200724
David Pursehouse538a1b92013-06-12 10:45:54 +0200725As result a map of link:#capability-info[CapabilityInfo] entities is
726returned.
727
728The entries in the map are sorted by capability ID.
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200729
730.Request
731----
732 GET /config/server/capabilities/ HTTP/1.0
733----
734
735.Response
736----
737 HTTP/1.1 200 OK
David Pursehouse56bf1cb2015-01-06 15:44:00 +0900738 Content-Type: application/json; charset=UTF-8
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200739
740 )]}'
741 {
742 "accessDatabase": {
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200743 "id": "accessDatabase",
744 "name": "Access Database"
745 },
746 "administrateServer": {
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200747 "id": "administrateServer",
748 "name": "Administrate Server"
749 },
750 "createAccount": {
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200751 "id": "createAccount",
752 "name": "Create Account"
753 },
754 "createGroup": {
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200755 "id": "createGroup",
756 "name": "Create Group"
757 },
758 "createProject": {
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200759 "id": "createProject",
760 "name": "Create Project"
761 },
762 "emailReviewers": {
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200763 "id": "emailReviewers",
764 "name": "Email Reviewers"
765 },
766 "flushCaches": {
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200767 "id": "flushCaches",
768 "name": "Flush Caches"
769 },
770 "killTask": {
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200771 "id": "killTask",
772 "name": "Kill Task"
773 },
774 "priority": {
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200775 "id": "priority",
776 "name": "Priority"
777 },
778 "queryLimit": {
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200779 "id": "queryLimit",
780 "name": "Query Limit"
781 },
782 "runGC": {
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200783 "id": "runGC",
784 "name": "Run Garbage Collection"
785 },
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200786 "streamEvents": {
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200787 "id": "streamEvents",
788 "name": "Stream Events"
789 },
790 "viewCaches": {
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200791 "id": "viewCaches",
792 "name": "View Caches"
793 },
794 "viewConnections": {
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200795 "id": "viewConnections",
796 "name": "View Connections"
797 },
Edwin Kempin362b14d12014-05-09 14:18:12 +0200798 "viewPlugins": {
Edwin Kempin362b14d12014-05-09 14:18:12 +0200799 "id": "viewPlugins",
800 "name": "View Plugins"
801 },
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200802 "viewQueue": {
David Ostrovsky28b8ea62013-06-09 02:16:57 +0200803 "id": "viewQueue",
804 "name": "View Queue"
805 }
806 }
807----
808
Edwin Kempin49098b82014-06-10 22:55:13 +0200809[[list-tasks]]
810=== List Tasks
811--
812'GET /config/server/tasks/'
813--
814
815Lists the tasks from the background work queues that the Gerrit daemon
816is currently performing, or will perform in the near future.
817
818Gerrit contains an internal scheduler, similar to cron, that it uses to
819queue and dispatch both short and long term tasks.
820
821Tasks that are completed or canceled exit the queue very quickly once
822they enter this state, but it can be possible to observe tasks in these
823states.
824
825End-users may see a task only if they can also see the project the task
826is associated with. Tasks operating on other projects, or that do not
827have a specific project, are hidden.
828
Dave Borowitz664d0402015-06-11 15:35:48 -0400829The caller must be a member of a group that is granted one of the
830following capabilities:
831
832* link:access-control.html#capability_viewQueue[View Queue]
833* link:access-control.html#capability_maintainServer[Maintain Server]
834* link:access-control.html#capability_administrateServer[Administrate Server]
Edwin Kempin49098b82014-06-10 22:55:13 +0200835
836As result a list of link:#task-info[TaskInfo] entities is returned.
837
838The entries in the list are sorted by task state, remaining delay and
839command.
840
841.Request
842----
843 GET /config/server/tasks/ HTTP/1.0
844----
845
846.Response
847----
848 HTTP/1.1 200 OK
David Pursehouse56bf1cb2015-01-06 15:44:00 +0900849 Content-Type: application/json; charset=UTF-8
Edwin Kempin49098b82014-06-10 22:55:13 +0200850
851 )]}'
852 [
853 {
854 "id": "1e688bea",
855 "state": "SLEEPING",
856 "start_time": "2014-06-11 12:58:51.991000000",
857 "delay": 3453,
858 "command": "Reload Submit Queue"
859 },
860 {
861 "id": "3e6d4ffa",
862 "state": "SLEEPING",
863 "start_time": "2014-06-11 12:58:51.508000000",
864 "delay": 3287966,
865 "command": "Log File Compressor"
866 }
867 ]
868----
869
Edwin Kempin32e3a522014-07-08 12:10:31 +0200870[[get-task]]
871=== Get Task
872--
873'GET /config/server/tasks/link:#task-id[\{task-id\}]'
874--
875
876Retrieves a task from the background work queue that the Gerrit daemon
877is currently performing, or will perform in the near future.
878
879End-users may see a task only if they can also see the project the task
880is associated with. Tasks operating on other projects, or that do not
881have a specific project, are hidden.
882
Dave Borowitz664d0402015-06-11 15:35:48 -0400883The caller must be a member of a group that is granted one of the
884following capabilities:
885
886* link:access-control.html#capability_viewQueue[View Queue]
887* link:access-control.html#capability_maintainServer[Maintain Server]
888* link:access-control.html#capability_administrateServer[Administrate Server]
Edwin Kempin32e3a522014-07-08 12:10:31 +0200889
890As result a link:#task-info[TaskInfo] entity is returned.
891
892.Request
893----
894 GET /config/server/tasks/1e688bea HTTP/1.0
895----
896
897.Response
898----
899 HTTP/1.1 200 OK
David Pursehouse56bf1cb2015-01-06 15:44:00 +0900900 Content-Type: application/json; charset=UTF-8
Edwin Kempin32e3a522014-07-08 12:10:31 +0200901
902 )]}'
903 {
904 "id": "1e688bea",
905 "state": "SLEEPING",
906 "start_time": "2014-06-11 12:58:51.991000000",
907 "delay": 3453,
908 "command": "Reload Submit Queue"
909 }
910----
911
Edwin Kempin7e283812014-07-08 12:49:03 +0200912[[delete-task]]
913=== Delete Task
914--
915'DELETE /config/server/tasks/link:#task-id[\{task-id\}]'
916--
917
918Kills a task from the background work queue that the Gerrit daemon
919is currently performing, or will perform in the near future.
920
Dave Borowitz664d0402015-06-11 15:35:48 -0400921The caller must be a member of a group that is granted one of the
922following capabilities:
923
924* link:access-control.html#capability_kill[Kill Task]
925* link:access-control.html#capability_maintainServer[Maintain Server]
926* link:access-control.html#capability_administrateServer[Administrate Server]
Edwin Kempin7e283812014-07-08 12:49:03 +0200927
928End-users may see a task only if they can also see the project the task
929is associated with. Tasks operating on other projects, or that do not
930have a specific project, are hidden.
931
Dave Borowitz664d0402015-06-11 15:35:48 -0400932Members of a group granted one of the following capabilities may view
933all tasks:
934
935* link:access-control.html#capability_viewQueue[View Queue]
936* link:access-control.html#capability_maintainServer[Maintain Server]
937* link:access-control.html#capability_administrateServer[Administrate Server]
Edwin Kempin7e283812014-07-08 12:49:03 +0200938
939.Request
940----
941 DELETE /config/server/tasks/1e688bea HTTP/1.0
942----
943
944.Response
945----
946 HTTP/1.1 204 No Content
947----
948
Dariusz Luksza589ba00aa2013-05-07 17:21:23 +0200949[[get-top-menus]]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -0800950=== Get Top Menus
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -0800951--
Dariusz Luksza589ba00aa2013-05-07 17:21:23 +0200952'GET /config/server/top-menus'
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -0800953--
Dariusz Luksza589ba00aa2013-05-07 17:21:23 +0200954
955Returns the list of additional top menu entries.
956
957.Request
958----
959 GET /config/server/top-menus HTTP/1.0
960----
961
962As response a list of the additional top menu entries as
963link:#top-menu-entry-info[TopMenuEntryInfo] entities is returned.
964
965.Response
966----
967 HTTP/1.1 200 OK
David Pursehouse56bf1cb2015-01-06 15:44:00 +0900968 Content-Type: application/json; charset=UTF-8
Dariusz Luksza589ba00aa2013-05-07 17:21:23 +0200969
970 )]}'
971 [
972 {
973 "name": "Top Menu Entry",
974 "items": [
975 {
976 "url": "http://gerrit.googlecode.com/",
977 "name": "Gerrit",
978 "target": "_blank"
979 }
980 ]
981 }
982 ]
983----
984
Edwin Kempine9f5da32016-06-03 17:08:34 +0200985[[get-user-preferences]]
986=== Get Default User Preferences
987--
988'GET /config/server/preferences'
989--
990
991Returns the default user preferences for the server.
992
993.Request
994----
995 GET /a/config/server/preferences HTTP/1.0
996----
997
998As response a link:rest-api-accounts.html#preferences-info[
999PreferencesInfo] is returned.
1000
1001.Response
1002----
1003 HTTP/1.1 200 OK
1004 Content-Type: application/json; charset=UTF-8
1005
1006 )]}'
1007 {
1008 "changes_per_page": 25,
1009 "show_site_header": true,
1010 "use_flash_clipboard": true,
1011 "download_command": "CHECKOUT",
1012 "date_format": "STD",
1013 "time_format": "HHMM_12",
1014 "diff_view": "SIDE_BY_SIDE",
1015 "size_bar_in_change_table": true,
1016 "review_category_strategy": "NONE",
1017 "mute_common_path_prefixes": true,
Dave Borowitzd6ee48e2017-04-27 10:32:42 -04001018 "publish_comments_on_push": true,
Edwin Kempine9f5da32016-06-03 17:08:34 +02001019 "my": [
1020 {
1021 "url": "#/dashboard/self",
1022 "name": "Changes"
1023 },
1024 {
1025 "url": "#/q/owner:self+is:draft",
1026 "name": "Drafts"
1027 },
1028 {
1029 "url": "#/q/has:draft",
1030 "name": "Draft Comments"
1031 },
1032 {
1033 "url": "#/q/has:edit",
1034 "name": "Edits"
1035 },
1036 {
1037 "url": "#/q/is:watched+is:open",
1038 "name": "Watched Changes"
1039 },
1040 {
1041 "url": "#/q/is:starred",
1042 "name": "Starred Changes"
1043 },
1044 {
1045 "url": "#/groups/self",
1046 "name": "Groups"
1047 }
1048 ],
1049 "email_strategy": "ENABLED"
1050 }
1051----
1052
1053[[set-user-preferences]]
1054=== Set Default User Preferences
1055
1056--
1057'PUT /config/server/preferences'
1058--
1059
1060Sets the default user preferences for the server.
1061
1062The new user preferences must be provided in the request body as a
1063link:rest-api-accounts.html#preferences-input[PreferencesInput]
1064entity.
1065
1066To be allowed to set default preferences, a user must be a member of
1067a group that is granted the
1068link:access-control.html#capability_administrateServer[
1069Administrate Server] capability.
1070
1071.Request
1072----
1073 PUT /a/config/server/preferences HTTP/1.0
1074 Content-Type: application/json; charset=UTF-8
1075
1076 {
1077 "changes_per_page": 50
1078 }
1079----
1080
1081As response a link:rest-api-accounts.html#preferences-info[
1082PreferencesInfo] is returned.
1083
1084.Response
1085----
1086 HTTP/1.1 200 OK
1087 Content-Type: application/json; charset=UTF-8
1088
1089 )]}'
1090 {
1091 "changes_per_page": 50,
1092 "show_site_header": true,
1093 "use_flash_clipboard": true,
1094 "download_command": "CHECKOUT",
1095 "date_format": "STD",
1096 "time_format": "HHMM_12",
1097 "diff_view": "SIDE_BY_SIDE",
1098 "size_bar_in_change_table": true,
1099 "review_category_strategy": "NONE",
1100 "mute_common_path_prefixes": true,
Dave Borowitzd6ee48e2017-04-27 10:32:42 -04001101 "publish_comments_on_push": true,
Edwin Kempine9f5da32016-06-03 17:08:34 +02001102 "my": [
1103 {
1104 "url": "#/dashboard/self",
1105 "name": "Changes"
1106 },
1107 {
1108 "url": "#/q/owner:self+is:draft",
1109 "name": "Drafts"
1110 },
1111 {
1112 "url": "#/q/has:draft",
1113 "name": "Draft Comments"
1114 },
1115 {
1116 "url": "#/q/has:edit",
1117 "name": "Edits"
1118 },
1119 {
1120 "url": "#/q/is:watched+is:open",
1121 "name": "Watched Changes"
1122 },
1123 {
1124 "url": "#/q/is:starred",
1125 "name": "Starred Changes"
1126 },
1127 {
1128 "url": "#/groups/self",
1129 "name": "Groups"
1130 }
1131 ],
1132 "email_strategy": "ENABLED"
1133 }
1134----
1135
Sven Selbergc60abbd2016-05-17 15:26:33 +02001136[[get-diff-preferences]]
Edwin Kempinc8b90342016-06-23 13:20:52 +02001137=== Get Default Diff Preferences
Sven Selbergc60abbd2016-05-17 15:26:33 +02001138
1139--
1140'GET /config/server/preferences.diff'
1141--
1142
1143Returns the default diff preferences for the server.
1144
1145.Request
1146----
1147 GET /a/config/server/preferences.diff HTTP/1.0
1148----
1149
1150As response a link:rest-api-accounts.html#diff-preferences-info[
1151DiffPreferencesInfo] is returned.
1152
1153.Response
1154----
1155 HTTP/1.1 200 OK
1156 Content-Type: application/json; charset=UTF-8
1157
1158 )]}'
1159 {
1160 "context": 10,
1161 "tab_size": 8,
1162 "line_length": 100,
1163 "cursor_blink_rate": 0,
1164 "intraline_difference": true,
1165 "show_line_endings": true,
1166 "show_tabs": true,
1167 "show_whitespace_errors": true,
1168 "syntax_highlighting": true,
1169 "auto_hide_diff_table_header": true,
1170 "theme": "DEFAULT",
1171 "ignore_whitespace": "IGNORE_NONE"
1172 }
1173----
1174
1175[[set-diff-preferences]]
Edwin Kempinc8b90342016-06-23 13:20:52 +02001176=== Set Default Diff Preferences
Sven Selbergc60abbd2016-05-17 15:26:33 +02001177
1178--
1179'PUT /config/server/preferences.diff'
1180--
1181
Edwin Kempinc8b90342016-06-23 13:20:52 +02001182Sets the default diff preferences for the server.
1183
1184The new diff preferences must be provided in the request body as a
1185link:rest-api-accounts.html#diff-preferences-input[
1186DiffPreferencesInput] entity.
1187
1188To be allowed to set default diff preferences, a user must be a member
1189of a group that is granted the
1190link:access-control.html#capability_administrateServer[
1191Administrate Server] capability.
Sven Selbergc60abbd2016-05-17 15:26:33 +02001192
1193.Request
1194----
1195 PUT /a/config/server/preferences.diff HTTP/1.0
1196 Content-Type: application/json; charset=UTF-8
1197
1198 {
1199 "context": 10,
1200 "tab_size": 8,
1201 "line_length": 80,
1202 "cursor_blink_rate": 0,
1203 "intraline_difference": true,
1204 "show_line_endings": true,
1205 "show_tabs": true,
1206 "show_whitespace_errors": true,
1207 "syntax_highlighting": true,
1208 "auto_hide_diff_table_header": true,
1209 "theme": "DEFAULT",
1210 "ignore_whitespace": "IGNORE_NONE"
1211 }
1212----
1213
1214As response a link:rest-api-accounts.html#diff-preferences-info[
1215DiffPreferencesInfo] is returned.
1216
1217.Response
1218----
1219 HTTP/1.1 200 OK
1220 Content-Type: application/json; charset=UTF-8
1221
1222 )]}'
1223 {
1224 "context": 10,
1225 "tab_size": 8,
1226 "line_length": 80,
1227 "cursor_blink_rate": 0,
1228 "intraline_difference": true,
1229 "show_line_endings": true,
1230 "show_tabs": true,
1231 "show_whitespace_errors": true,
1232 "syntax_highlighting": true,
1233 "auto_hide_diff_table_header": true,
1234 "theme": "DEFAULT",
1235 "ignore_whitespace": "IGNORE_NONE"
1236 }
1237----
1238
Dariusz Luksza589ba00aa2013-05-07 17:21:23 +02001239
Edwin Kempin57a46822014-05-23 10:24:41 +02001240[[ids]]
1241== IDs
1242
1243[[cache-name]]
1244=== \{cache-name\}
1245The name of the cache.
1246
1247If the cache is defined by a plugin the cache name must include the
1248plugin name: "<plugin-name>-<cache-name>".
1249
1250Gerrit core caches can optionally be prefixed with "gerrit":
1251"gerrit-<cache-name>".
1252
Edwin Kempin32e3a522014-07-08 12:10:31 +02001253[[task-id]]
1254=== \{task-id\}
1255The ID of the task (hex string).
1256
Edwin Kempin57a46822014-05-23 10:24:41 +02001257
Dariusz Luksza589ba00aa2013-05-07 17:21:23 +02001258[[json-entities]]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001259== JSON Entities
Dariusz Luksza589ba00aa2013-05-07 17:21:23 +02001260
Edwin Kempinf0dacbd2017-08-30 16:17:17 +02001261[[accounts-config-info]]
1262=== AccountsConfigInfo
1263The `AccountsConfigInfo` entity contains information about Gerrit
1264configuration from the link:config-gerrit.html#accounts[accounts]
1265section.
1266
1267[options="header",cols="1,6"]
1268|=============================
1269|Field Name |Description
1270|`visibility` |
1271link:config-gerrit.html#accounts.visibility[Visibility setting for
1272accounts].
1273|=============================
Han-Wen Nienhuyse04df7e2017-04-25 17:41:58 +02001274
Edwin Kempinb8590bd2015-04-30 12:55:34 +02001275[[auth-info]]
1276=== AuthInfo
1277The `AuthInfo` entity contains information about the authentication
1278configuration of the Gerrit server.
1279
1280[options="header",cols="1,^1,5"]
1281|==========================================
1282|Field Name ||Description
1283|`type` ||
1284The link:config-gerrit.html#auth.type[authentication type] that is
1285configured on the server. Can be `OPENID`, `OPENID_SSO`, `OAUTH`,
1286`HTTP`, `HTTP_LDAP`, `CLIENT_SSL_CERT_LDAP`, `LDAP`, `LDAP_BIND`,
1287`CUSTOM_EXTENSION` or `DEVELOPMENT_BECOME_ANY_ACCOUNT`.
1288|`use_contributor_agreements` |not set if `false`|
1289Whether link:config-gerrit.html#auth.contributorAgreements[contributor
1290agreements] are required.
David Pursehousecc046732016-08-22 20:08:52 +09001291|`contributor_agreements` |not set if `use_contributor_agreements` is `false`|
1292List of contributor agreements as link:rest-api-accounts.html#contributor-agreement-info[
1293ContributorAgreementInfo] entities.
Edwin Kempinb8590bd2015-04-30 12:55:34 +02001294|`editable_account_fields` ||
1295List of account fields that are editable. Possible values are
1296`FULL_NAME`, `USER_NAME` and `REGISTER_NEW_EMAIL`.
Edwin Kempin5a8c9e92015-05-08 10:59:01 +02001297|`login_url` |optional|
1298The link:config-gerrit.html#auth.loginUrl[login URL]. Only set if
1299link:config-gerrit.html#auth.type[authentication type] is `HTTP` or
1300`HTTP_LDAP`.
1301|`login_text` |optional|
1302The link:config-gerrit.html#auth.loginText[login text]. Only set if
1303link:config-gerrit.html#auth.type[authentication type] is `HTTP` or
1304`HTTP_LDAP`.
1305|`switch_account_url` |optional|
1306The link:config-gerrit.html#auth.switchAccountUrl[URL to switch
1307accounts].
1308|`register_url` |optional|
1309The link:config-gerrit.html#auth.registerUrl[register URL]. Only set if
1310link:config-gerrit.html#auth.type[authentication type] is `LDAP`,
1311`LDAP_BIND` or `CUSTOM_EXTENSION`.
1312|`register_text` |optional|
1313The link:config-gerrit.html#auth.registerText[register text]. Only set
1314if link:config-gerrit.html#auth.type[authentication type] is `LDAP`,
1315`LDAP_BIND` or `CUSTOM_EXTENSION`.
1316|`edit_full_name_url` |optional|
1317The link:config-gerrit.html#auth.editFullNameUrl[URL to edit the full
1318name]. Only set if link:config-gerrit.html#auth.type[authentication
1319type] is `LDAP`, `LDAP_BIND` or `CUSTOM_EXTENSION`.
1320|`http_password_url` |optional|
1321The link:config-gerrit.html#auth.httpPasswordUrl[URL to obtain an HTTP
1322password]. Only set if link:config-gerrit.html#auth.type[authentication
1323type] is `CUSTOM_EXTENSION`.
Hector Oswaldo Caballero2a9ad1f2016-09-15 18:24:42 -04001324|`git_basic_auth_policy` |optional|
1325The link:config-gerrit.html#auth.gitBasicAuthPolicy[policy] to authenticate
1326Git over HTTP and REST API requests when
David Pursehousecdc381e2017-03-01 17:42:06 +09001327link:config-gerrit.html#auth.type[authentication type] is `LDAP`.
Hector Oswaldo Caballero2a9ad1f2016-09-15 18:24:42 -04001328Can be `HTTP`, `LDAP` or `HTTP_LDAP`.
Edwin Kempinb8590bd2015-04-30 12:55:34 +02001329|==========================================
1330
Edwin Kempin42c9cf62014-05-23 08:45:56 +02001331[[cache-info]]
1332=== CacheInfo
1333The `CacheInfo` entity contains information about a cache.
1334
David Pursehouseae367192014-11-25 17:24:47 +09001335[options="header",cols="1,^1,5"]
Edwin Kempin42c9cf62014-05-23 08:45:56 +02001336|==================================
1337|Field Name ||Description
1338|`name` |
1339not set if returned in a map where the cache name is used as map key|
1340The cache name. If the cache is defined by a plugin the cache name
1341includes the plugin name: "<plugin-name>-<cache-name>".
Edwin Kempinf11eadc2014-06-24 15:23:52 +02001342|`type` ||
Edwin Kempin42c9cf62014-05-23 08:45:56 +02001343The type of the cache (`MEM`: in memory cache, `DISK`: disk cache).
1344|`entries` ||
1345Information about the entries in the cache as a
1346link:#entries-info[EntriesInfo] entity.
1347|`average_get` |optional|
1348The average duration of getting one entry from the cache. The value is
1349returned with a standard time unit abbreviation (`ns`: nanoseconds,
1350`us`: microseconds, `ms`: milliseconds, `s`: seconds).
1351|`hit_ratio` ||
1352Information about the hit ratio as a link:#hit-ration-info[
1353HitRatioInfo] entity.
1354|==================================
1355
Edwin Kempina4286832014-05-28 14:17:22 +02001356[[cache-operation-input]]
1357=== CacheOperationInput
1358The `CacheOperationInput` entity contains information about an
1359operation that should be executed on caches.
1360
David Pursehouseae367192014-11-25 17:24:47 +09001361[options="header",cols="1,^1,5"]
Edwin Kempina3c6d032014-05-28 14:46:44 +02001362|==================================
1363|Field Name ||Description
1364|`operation` ||
Edwin Kempina4286832014-05-28 14:17:22 +02001365The cache operation that should be executed:
1366
1367`FLUSH_ALL`: Flushes all caches, except the `web_sessions` cache.
Edwin Kempina3c6d032014-05-28 14:46:44 +02001368
1369`FLUSH`: Flushes the specified caches.
1370|`caches` |optional|
1371A list of cache names. This list defines the caches on which the
1372specified operation should be executed. Whether this list must be
1373specified depends on the operation being executed.
1374|==================================
Edwin Kempina4286832014-05-28 14:17:22 +02001375
Edwin Kempin521c1242015-01-23 12:44:44 +01001376[[capability-info]]
1377=== CapabilityInfo
1378The `CapabilityInfo` entity contains information about a capability.
1379
1380[options="header",cols="1,6"]
1381|=================================
1382|Field Name |Description
1383|`id` |capability ID
1384|`name` |capability name
1385|=================================
1386
Edwin Kempin50570542015-05-08 15:31:56 +02001387[[change-config-info]]
1388=== ChangeConfigInfo
1389The `ChangeConfigInfo` entity contains information about Gerrit
1390configuration from the link:config-gerrit.html#change[change]
1391section.
1392
1393[options="header",cols="1,^1,5"]
1394|=============================
Stefan Bellerbf2767c2015-06-29 16:02:28 -07001395|Field Name ||Description
Gabor Somossyb72d4c62015-10-20 23:40:07 +01001396|`allow_blame` |not set if `false`|
1397link:config-gerrit.html#change.allowBlame[Whether blame on side by side diff is
1398allowed].
Stefan Bellerbf2767c2015-06-29 16:02:28 -07001399|`allow_drafts` |not set if `false`|
Edwin Kempin50570542015-05-08 15:31:56 +02001400link:config-gerrit.html#change.allowDrafts[Whether draft workflow is
1401allowed].
Stefan Bellerbf2767c2015-06-29 16:02:28 -07001402|`large_change` ||
Edwin Kempin50570542015-05-08 15:31:56 +02001403link:config-gerrit.html#change.largeChange[Number of changed lines from
1404which on a change is considered as a large change].
Paladox none6f494e32017-08-04 12:04:53 +00001405|`private_by_default` |not set if `false`|
1406Returns true if changes are by default created as private.
1407See link:config-gerrit.html#change.privateByDefault[privateByDefault]
Stefan Bellerbf2767c2015-06-29 16:02:28 -07001408|`reply_label` ||
Edwin Kempin50570542015-05-08 15:31:56 +02001409link:config-gerrit.html#change.replyTooltip[Label name for the reply
1410button].
Stefan Bellerbf2767c2015-06-29 16:02:28 -07001411|`reply_tooltip` ||
Edwin Kempin50570542015-05-08 15:31:56 +02001412link:config-gerrit.html#change.replyTooltip[Tooltip for the reply
1413button].
Stefan Bellerbf2767c2015-06-29 16:02:28 -07001414|`update_delay` ||
Edwin Kempin50570542015-05-08 15:31:56 +02001415link:config-gerrit.html#change.updateDelay[How often in seconds the web
1416interface should poll for updates to the currently open change].
Stefan Bellerbf2767c2015-06-29 16:02:28 -07001417|`submit_whole_topic` ||
1418link:config-gerrit.html#change.submitWholeTopic[A configuration if
1419the whole topic is submitted].
Edwin Kempin50570542015-05-08 15:31:56 +02001420|=============================
1421
Edwin Kempin54fd1d32017-03-24 15:32:03 +01001422[[check-account-external-ids-input]]
1423=== CheckAccountExternalIdsInput
1424The `CheckAccountExternalIdsInput` entity contains input for the
1425account external IDs consistency check.
1426
1427Currently this entity contains no fields.
1428
1429[[check-account-external-ids-result-info]]
1430=== CheckAccountExternalIdsResultInfo
1431The `CheckAccountExternalIdsResultInfo` entity contains the result of
1432running the account external IDs consistency check.
1433
1434[options="header",cols="1,6"]
1435|======================
1436|Field Name|Description
1437|`problems`|A list of link:#consistency-problem-info[
1438ConsistencyProblemInfo] entities.
1439|======================
1440
1441[[consistency-check-info]]
1442=== ConsistencyCheckInfo
1443The `ConsistencyCheckInfo` entity contains the results of running
1444consistency checks.
1445
1446[options="header",cols="1,^1,5"]
1447|================================================
1448|Field Name ||Description
Edwin Kempin6396d6d2017-05-30 10:41:28 +02001449|`check_accounts_result` |optional|
1450The result of running the account consistency check as a
1451link:#check-accounts-result-info[CheckAccountsResultInfo] entity.
Edwin Kempin54fd1d32017-03-24 15:32:03 +01001452|`check_account_external_ids_result`|optional|
1453The result of running the account external ID consistency check as a
1454link:#check-account-external-ids-result-info[
1455CheckAccountExternalIdsResultInfo] entity.
1456|================================================
1457
1458[[consistency-check-input]]
1459=== ConsistencyCheckInput
1460The `ConsistencyCheckInput` entity contains information about which
1461consistency checks should be run.
1462
1463[options="header",cols="1,^1,5"]
1464|=========================================
1465|Field Name ||Description
Edwin Kempin6396d6d2017-05-30 10:41:28 +02001466|`check_accounts` |optional|
1467Input for the account consistency check as
1468link:#check-accounts-input[CheckAccountsInput] entity.
Edwin Kempin54fd1d32017-03-24 15:32:03 +01001469|`check_account_external_ids`|optional|
1470Input for the account external ID consistency check as
1471link:#check-account-external-ids-input[CheckAccountExternalIdsInput]
1472entity.
1473|=========================================
1474
1475[[consistency-problem-info]]
1476=== ConsistencyProblemInfo
1477The `ConsistencyProblemInfo` entity contains information about a
1478consistency problem.
1479
1480[options="header",cols="1,6"]
1481|======================
1482|Field Name|Description
1483|`status` |The status of the consistency problem. +
1484Possible values are `ERROR` and `WARNING`.
1485|`message` |Message describing the consistency problem.
1486|======================
1487
Edwin Kempinb8590bd2015-04-30 12:55:34 +02001488[[download-info]]
1489=== DownloadInfo
1490The `DownloadInfo` entity contains information about supported download
1491options.
1492
1493[options="header",cols="1,6"]
1494|=======================
1495|Field Name |Description
1496|`schemes` |
Edwin Kempin132d28e2015-05-07 15:30:35 +02001497The supported download schemes as a map which maps the scheme name to a
1498of link:#download-scheme-info[DownloadSchemeInfo] entity.
Edwin Kempinb8590bd2015-04-30 12:55:34 +02001499|`archives` |
Edwin Kempinf5c88792015-05-20 09:20:30 +02001500List of supported archive formats. Possible values are `tgz`, `tar`,
1501`tbz2` and `txz`.
Edwin Kempinb8590bd2015-04-30 12:55:34 +02001502|=======================
1503
1504[[download-scheme-info]]
1505=== DownloadSchemeInfo
1506The `DownloadSchemeInfo` entity contains information about a supported
1507download scheme and its commands.
1508
1509[options="header",cols="1,^1,5"]
1510|=================================
1511|Field Name ||Description
Edwin Kempinb8590bd2015-04-30 12:55:34 +02001512|`url` ||
1513The URL of the download scheme, where '${project}' is used as
1514placeholder for the project name.
1515|`is_auth_required` |not set if `false`|
1516Whether this download scheme requires authentication.
1517|`is_auth_supported` |not set if `false`|
1518Whether this download scheme supports authentication.
1519|`commands` ||
Edwin Kempina9554a52015-05-07 15:19:54 +02001520Download commands as a map which maps the command name to the download
1521command. In the download command '${project}' is used as
Edwin Kempinb8590bd2015-04-30 12:55:34 +02001522placeholder for the project name, and '${ref}' is used as
1523placeholder for the (change) ref.
1524
1525Empty, if accessed anonymously and the download scheme requires
1526authentication.
Edwin Kempineafde882015-05-11 15:40:44 +02001527|`clone_commands` ||
1528Clone commands as a map which maps the command name to the clone
1529command. In the clone command '${project}' is used as
Edwin Kempin4bf36ef2015-06-23 09:44:19 +02001530placeholder for the project name and '${project-base-name}' as name
1531for the project base name (e.g. for a project 'foo/bar' '${project}'
1532is a placeholder for 'foo/bar' and '${project-base-name}' is a
1533placeholder for 'bar').
Edwin Kempineafde882015-05-11 15:40:44 +02001534
1535Empty, if accessed anonymously and the download scheme requires
1536authentication.
Edwin Kempinb8590bd2015-04-30 12:55:34 +02001537|=================================
1538
Edwin Kempined846572015-07-24 14:17:11 +02001539[[email-confirmation-input]]
1540=== EmailConfirmationInput
1541The `EmailConfirmationInput` entity contains information for confirming
1542an email address.
1543
1544[options="header",cols="1,6"]
1545|=======================
1546|Field Name |Description
1547|`token` |
1548The token that was sent by mail to a newly registered email address.
1549|=======================
1550
Edwin Kempin42c9cf62014-05-23 08:45:56 +02001551[[entries-info]]
1552=== EntriesInfo
1553The `EntriesInfo` entity contains information about the entries in a
1554cache.
1555
David Pursehouseae367192014-11-25 17:24:47 +09001556[options="header",cols="1,^1,5"]
Edwin Kempin42c9cf62014-05-23 08:45:56 +02001557|==================================
1558|Field Name ||Description
1559|`mem` |optional|Number of cache entries that are held in memory.
1560|`disk` |optional|Number of cache entries on the disk. For non-disk
1561caches this value is not set; for disk caches it is only set if there
1562are entries in the cache.
1563|`space` |optional|
1564The space that is consumed by the cache on disk. The value is returned
1565with a unit abbreviation (`k`: kilobytes, `m`: megabytes,
1566`g`: gigabytes). Only set for disk caches.
1567|==================================
1568
Edwin Kempinb8590bd2015-04-30 12:55:34 +02001569[[gerrit-info]]
1570=== GerritInfo
1571The `GerritInfo` entity contains information about Gerrit
1572configuration from the link:config-gerrit.html#gerrit[gerrit] section.
1573
Edwin Kempin50570542015-05-08 15:31:56 +02001574[options="header",cols="1,^1,5"]
1575|=================================
1576|Field Name ||Description
1577|`all_projects_name` ||
Edwin Kempinb8590bd2015-04-30 12:55:34 +02001578Name of the link:config-gerrit.html#gerrit.allProjects[root project].
Edwin Kempin50570542015-05-08 15:31:56 +02001579|`all_users_name` ||
Edwin Kempinb8590bd2015-04-30 12:55:34 +02001580Name of the link:config-gerrit.html#gerrit.allUsers[project in which
1581meta data of all users is stored].
Yuxuan 'fishy' Wanged1596b2015-11-09 16:32:45 -08001582|`doc_search` ||
1583Whether documentation search is available.
Dave Borowitza5d3fec2015-07-09 14:24:02 -07001584|`doc_url` |optional|
1585Custom base URL where Gerrit server documentation is located.
1586(Documentation may still be available at /Documentation relative to the
1587Gerrit base path even if this value is unset.)
Dave Borowitza17a9842015-09-15 09:58:17 -04001588|`edit_gpg_keys` |not set if `false`|
1589Whether to enable the web UI for editing GPG keys.
Edwin Kempin50570542015-05-08 15:31:56 +02001590|`report_bug_url` |optional|
1591link:config-gerrit.html#gerrit.reportBugUrl[URL to report bugs].
1592|`report_bug_text` |optional, not set if default|
1593link:config-gerrit.html#gerrit.reportBugText[Display text for report
1594bugs link].
Dave Borowitzf4599a02016-09-19 21:51:51 +02001595|`web_uis` ||
1596List of web UIs supported by the HTTP server. Possible values are `GWT`
1597and `POLYGERRIT`.
Edwin Kempin50570542015-05-08 15:31:56 +02001598|=================================
Edwin Kempinb8590bd2015-04-30 12:55:34 +02001599
Edwin Kempin42c9cf62014-05-23 08:45:56 +02001600[[hit-ration-info]]
1601=== HitRatioInfo
1602The `HitRatioInfo` entity contains information about the hit ratio of a
1603cache.
1604
David Pursehouseae367192014-11-25 17:24:47 +09001605[options="header",cols="1,^1,5"]
Edwin Kempin42c9cf62014-05-23 08:45:56 +02001606|==================================
1607|Field Name ||Description
1608|`mem` ||
1609Hit ratio for cache entries that are held in memory (0 \<= value \<= 100).
1610|`disk` |optional|
1611Hit ratio for cache entries that are held on disk (0 \<= value \<= 100).
1612Only set for disk caches.
1613|==================================
1614
Edwin Kempind905e582014-05-28 16:54:36 +02001615[[jvm-summary-info]]
1616=== JvmSummaryInfo
1617The `JvmSummaryInfo` entity contains information about the JVM.
1618
David Pursehouseae367192014-11-25 17:24:47 +09001619[options="header",cols="1,^1,5"]
Edwin Kempind905e582014-05-28 16:54:36 +02001620|========================================
1621|Field Name ||Description
1622|`vm_vendor` ||The vendor of the virtual machine.
1623|`vm_name` ||The name of the virtual machine.
1624|`vm_version` ||The version of the virtual machine.
1625|`os_name` ||The name of the operating system.
1626|`os_version` ||The version of the operating system.
1627|`os_arch` ||The architecture of the operating system.
1628|`user` ||The user that is running Gerrit.
1629|`host` |optional|
1630The host on which Gerrit is running.
1631|`current_working_directory`||The current working directory.
1632|`site` ||The path to the review site.
1633|========================================
1634
1635[[mem-summary-info]]
1636=== MemSummaryInfo
1637The `MemSummaryInfo` entity contains information about the current
1638memory usage.
1639
David Pursehouseae367192014-11-25 17:24:47 +09001640[options="header",cols="1,^1,5"]
Edwin Kempind905e582014-05-28 16:54:36 +02001641|============================
1642|Field Name ||Description
1643|`total` ||
1644The total size of the memory. The value is returned with a unit
1645abbreviation (`k`: kilobytes, `m`: megabytes, `g`: gigabytes).
1646|`used` ||
1647The size of used memory. The value is returned with a unit abbreviation
1648(`k`: kilobytes, `m`: megabytes, `g`: gigabytes).
1649|`free` ||
1650The size of free memory. The value is returned with a unit abbreviation
1651(`k`: kilobytes, `m`: megabytes, `g`: gigabytes).
1652|`buffers` ||
1653The size of memory used for JGit buffers. The value is returned with a
1654unit abbreviation (`k`: kilobytes, `m`: megabytes, `g`: gigabytes).
1655|`max` ||
1656The maximal memory size. The value is returned with a unit abbreviation
1657(`k`: kilobytes, `m`: megabytes, `g`: gigabytes).
1658|`open_files` |optional|
1659The number of open files.
1660|============================
1661
Edwin Kempin7754d0c2015-07-09 15:11:49 +02001662[[plugin-config-info]]
1663=== PluginConfigInfo
1664The `PluginConfigInfo` entity contains information about Gerrit
1665extensions by plugins.
1666
1667[options="header",cols="1,^1,5"]
1668|===========================
1669|Field Name ||Description
1670|`has_avatars` |not set if `false`|
1671Whether an avatar provider is registered.
1672|===========================
1673
Dave Borowitz5170e0f2015-06-18 21:05:29 -04001674[[receive-info]]
1675=== ReceiveInfo
1676The `ReceiveInfo` entity contains information about the configuration
1677of git-receive-pack behavior on the server.
1678
1679[options="header",cols="1,^1,5"]
1680|=======================================
1681|Field Name ||Description
1682|`enableSignedPush`|optional|
1683Whether signed push validation support is enabled on the server; see the
1684link:config-gerrit.html#receive.certNonceSeed[global configuration] for
1685details.
1686|=======================================
1687
Edwin Kempinb8590bd2015-04-30 12:55:34 +02001688[[server-info]]
1689=== ServerInfo
1690The `ServerInfo` entity contains information about the configuration of
1691the Gerrit server.
1692
1693[options="header",cols="1,^1,5"]
1694|=======================================
1695|Field Name ||Description
Edwin Kempinf0dacbd2017-08-30 16:17:17 +02001696|`accounts` ||
1697Information about the configuration from the
1698link:config-gerrit.html#accounts[accounts] section as
1699link:#accounts-config-info[AccountsConfigInfo] entity.
Edwin Kempinb8590bd2015-04-30 12:55:34 +02001700|`auth` ||
1701Information about the authentication configuration as
1702link:#auth-info[AuthInfo] entity.
Edwin Kempin50570542015-05-08 15:31:56 +02001703|`change` ||
1704Information about the configuration from the
1705link:config-gerrit.html#change[change] section as
1706link:#change-config-info[ChangeConfigInfo] entity.
Edwin Kempinb8590bd2015-04-30 12:55:34 +02001707|`download` ||
1708Information about the configured download options as
1709link:#download-info[DownloadInfo] entity.
1710information about Gerrit
1711|`gerrit` ||
1712Information about the configuration from the
1713link:config-gerrit.html#gerrit[gerrit] section as link:#gerrit-info[
1714GerritInfo] entity.
Edwin Kempin7c044322016-06-21 07:29:43 +02001715|`note_db_enabled` |not set if `false`|
David Pursehousea61ee502016-09-06 16:27:09 +09001716Whether the NoteDb storage backend is fully enabled.
Edwin Kempin7754d0c2015-07-09 15:11:49 +02001717|`plugin ` ||
1718Information about Gerrit extensions by plugins as
1719link:#plugin-config-info[PluginConfigInfo] entity.
Dave Borowitz5170e0f2015-06-18 21:05:29 -04001720|`receive` |optional|
1721Information about the receive-pack configuration as a
1722link:#receive-info[ReceiveInfo] entity.
Edwin Kempina3188e12015-05-12 13:34:42 +02001723|`sshd` |optional|
1724Information about the configuration from the
1725link:config-gerrit.html#sshd[sshd] section as link:#sshd-info[SshdInfo]
1726entity. Not set if SSHD is disabled.
Edwin Kempin50570542015-05-08 15:31:56 +02001727|`suggest` ||
1728Information about the configuration from the
1729link:config-gerrit.html#suggest[suggest] section as link:#suggest-info[
1730SuggestInfo] entity.
Edwin Kempinfa0d4942015-07-16 12:38:52 +02001731|`url_aliases` |optional|
1732A map of URL aliases, where a regular expression for an URL token is
1733mapped to a target URL token. The target URL token can contain
1734placeholders for the groups matched by the regular expression: `$1` for
1735the first matched group, `$2` for the second matched group, etc.
Edwin Kempin50570542015-05-08 15:31:56 +02001736|`user` ||
1737Information about the configuration from the
1738link:config-gerrit.html#user[user] section as link:#user-config-info[
1739UserConfigInfo] entity.
Viktar Donich38252c52017-07-20 16:20:09 -07001740|`default_theme` |optional|
1741URL to a default PolyGerrit UI theme plugin, if available.
1742Located in `/static/gerrit-theme.html` by default.
Edwin Kempinb8590bd2015-04-30 12:55:34 +02001743|=======================================
1744
Edwin Kempina3188e12015-05-12 13:34:42 +02001745[[sshd-info]]
1746=== SshdInfo
1747The `SshdInfo` entity contains information about Gerrit
1748configuration from the link:config-gerrit.html#sshd[sshd]
1749section.
1750
1751This entity doesn't contain any data, but the presence of this (empty)
1752entity in the link:#server-info[ServerInfo] entity means that SSHD is
1753enabled on the server.
1754
Edwin Kempin50570542015-05-08 15:31:56 +02001755[[suggest-info]]
1756=== SuggestInfo
1757The `SuggestInfo` entity contains information about Gerrit
1758configuration from the link:config-gerrit.html#suggest[suggest]
1759section.
1760
1761[options="header",cols="1,6"]
1762|=======================
1763|Field Name |Description
1764|`from` |
1765The link:config-gerrit.html#suggest.from[number of characters] that a
1766user must have typed before suggestions are provided.
1767|=======================
1768
Edwin Kempind905e582014-05-28 16:54:36 +02001769[[summary-info]]
1770=== SummaryInfo
1771The `SummaryInfo` entity contains information about the current state
1772of the server.
1773
David Pursehouseae367192014-11-25 17:24:47 +09001774[options="header",cols="1,^1,5"]
Edwin Kempind905e582014-05-28 16:54:36 +02001775|============================
1776|Field Name ||Description
1777|`task_summary` ||
1778Summary about current tasks as a link:#task-summary-info[
1779TaskSummaryInfo] entity.
1780|`mem_summary` ||
1781Summary about current memory usage as a link:#mem-summary-info[
1782MemSummaryInfo] entity.
1783|`thread_summary` ||
1784Summary about current threads as a link:#thread-summary-info[
1785ThreadSummaryInfo] entity.
1786|`jvm_summary` |optional|
1787Summary about the JVM link:#jvm-summary-info[JvmSummaryInfo] entity.
1788Only set if the `jvm` option was set.
1789|============================
1790
Edwin Kempin49098b82014-06-10 22:55:13 +02001791[[task-info]]
1792=== TaskInfo
1793The `TaskInfo` entity contains information about a task in a background
1794work queue.
1795
David Pursehouseae367192014-11-25 17:24:47 +09001796[options="header",cols="1,^1,5"]
Edwin Kempin49098b82014-06-10 22:55:13 +02001797|====================================
1798|Field Name ||Description
1799|`id` ||The ID of the task.
1800|`state` ||
1801The state of the task, can be `DONE`, `CANCELLED`, `RUNNING`, `READY`,
1802`SLEEPING` and `OTHER`.
1803|`start_time` ||The start time of the task.
1804|`delay` ||The remaining delay of the task.
1805|`command` ||The command of the task.
1806|`remote_name`|optional|
1807The remote name. May only be set for tasks that are associated with a
1808project.
1809|`project` |optional|The project the task is associated with.
1810|====================================
1811
Edwin Kempind905e582014-05-28 16:54:36 +02001812[[task-summary-info]]
1813=== TaskSummaryInfo
1814The `TaskSummaryInfo` entity contains information about the current
1815tasks.
1816
David Pursehouseae367192014-11-25 17:24:47 +09001817[options="header",cols="1,^1,5"]
Edwin Kempind905e582014-05-28 16:54:36 +02001818|============================
1819|Field Name ||Description
1820|`total` |optional|
1821Total number of current tasks.
1822|`running` |optional|
1823Number of currently running tasks.
1824|`ready` |optional|
1825Number of currently ready tasks.
1826|`sleeping` |optional|
1827Number of currently sleeping tasks.
1828|============================
1829
1830[[thread-summary-info]]
1831=== ThreadSummaryInfo
1832The `ThreadSummaryInfo` entity contains information about the current
1833threads.
1834
David Pursehouseae367192014-11-25 17:24:47 +09001835[options="header",cols="1,6"]
Edwin Kempind905e582014-05-28 16:54:36 +02001836|===========================
1837|Field Name |Description
1838|`cpus` |
1839The number of available processors.
1840|`threads` |
1841The total number of current threads.
1842|`counts` |
1843Detailed thread counts as a map that maps a thread kind to a map that
1844maps a thread state to the thread count. The thread kinds group the
David Pursehousee9ccf872017-02-24 12:39:36 +09001845counts by threads that have the same name prefix (`H2`, `HTTP`,
Edwin Kempind905e582014-05-28 16:54:36 +02001846`IntraLineDiff`, `ReceiveCommits`, `SSH git-receive-pack`,
1847`SSH git-upload-pack`, `SSH-Interactive-Worker`, `SSH-Stream-Worker`,
David Pursehousee9ccf872017-02-24 12:39:36 +09001848`SshCommandStart`, `sshd-SshServer`). The counts for other threads are
1849available under the thread kind `Other`. Counts for the following thread
1850states can be included: `NEW`, `RUNNABLE`, `BLOCKED`, `WAITING`,
1851`TIMED_WAITING` and `TERMINATED`.
Edwin Kempind905e582014-05-28 16:54:36 +02001852|===========================
1853
Dariusz Luksza589ba00aa2013-05-07 17:21:23 +02001854[[top-menu-entry-info]]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001855=== TopMenuEntryInfo
Dariusz Luksza589ba00aa2013-05-07 17:21:23 +02001856The `TopMenuEntryInfo` entity contains information about a top menu
1857entry.
1858
David Pursehouseae367192014-11-25 17:24:47 +09001859[options="header",cols="1,6"]
Dariusz Luksza589ba00aa2013-05-07 17:21:23 +02001860|=================================
1861|Field Name |Description
1862|`name` |Name of the top menu entry.
1863|`items` |List of link:#top-menu-item-info[menu items].
1864|=================================
1865
1866[[top-menu-item-info]]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001867=== TopMenuItemInfo
Dariusz Luksza589ba00aa2013-05-07 17:21:23 +02001868The `TopMenuItemInfo` entity contains information about a menu item in
1869a top menu entry.
1870
David Pursehouseae367192014-11-25 17:24:47 +09001871[options="header",cols="1,^1,5"]
Edwin Kempin002c9cb2013-11-06 09:10:47 +01001872|========================
1873|Field Name ||Description
1874|`url` ||The URL of the menu item link.
1875|`name` ||The name of the menu item.
1876|`target` ||Target attribute of the menu item link.
1877|`id` |optional|The `id` attribute of the menu item link.
1878|========================
David Ostrovsky28b8ea62013-06-09 02:16:57 +02001879
Edwin Kempin50570542015-05-08 15:31:56 +02001880[[user-config-info]]
1881=== UserConfigInfo
1882The `UserConfigInfo` entity contains information about Gerrit
1883configuration from the link:config-gerrit.html#user[user] section.
1884
1885[options="header",cols="1,6"]
1886|====================================
1887|Field Name |Description
1888|`anonymous_coward_name` |
1889link:config-gerrit.html#user.anonymousCoward[Username] that is
1890displayed in the Gerrit Web UI and in e-mail notifications if the full
1891name of the user is not set.
1892|====================================
1893
1894
David Ostrovsky28b8ea62013-06-09 02:16:57 +02001895GERRIT
1896------
1897Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -07001898
1899SEARCHBOX
1900---------