Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1 | = Gerrit Code Review - /config/ REST API |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 2 | |
| 3 | This page describes the config related REST endpoints. |
| 4 | Please also take note of the general information on the |
| 5 | link:rest-api.html[REST API]. |
| 6 | |
| 7 | [[config-endpoints]] |
| 8 | Config Endpoints |
| 9 | --------------- |
| 10 | |
Edwin Kempin | f2e3fe6 | 2013-07-04 16:03:32 +0200 | [diff] [blame] | 11 | [[get-version]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 12 | === Get Version |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 13 | -- |
Edwin Kempin | f2e3fe6 | 2013-07-04 16:03:32 +0200 | [diff] [blame] | 14 | 'GET /config/server/version' |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 15 | -- |
Edwin Kempin | f2e3fe6 | 2013-07-04 16:03:32 +0200 | [diff] [blame] | 16 | |
| 17 | Returns 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 Pursehouse | 56bf1cb | 2015-01-06 15:44:00 +0900 | [diff] [blame] | 27 | Content-Type: application/json; charset=UTF-8 |
Edwin Kempin | f2e3fe6 | 2013-07-04 16:03:32 +0200 | [diff] [blame] | 28 | |
| 29 | )]}' |
| 30 | "2.7" |
| 31 | ---- |
| 32 | |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 33 | [[get-info]] |
| 34 | === Get Server Info |
| 35 | -- |
| 36 | 'GET /config/server/info' |
| 37 | -- |
| 38 | |
| 39 | Returns the information about the Gerrit server configuration. |
| 40 | |
| 41 | .Request |
| 42 | ---- |
| 43 | GET /config/server/info HTTP/1.0 |
| 44 | ---- |
| 45 | |
| 46 | As 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 Kempin | f0dacbd | 2017-08-30 16:17:17 +0200 | [diff] [blame] | 55 | "accounts": { |
| 56 | "visibility": "ALL" |
| 57 | }, |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 58 | "auth": { |
| 59 | "auth_type": "LDAP", |
David Pursehouse | cc04673 | 2016-08-22 20:08:52 +0900 | [diff] [blame] | 60 | "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 Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 68 | "editable_account_fields": [ |
| 69 | "FULL_NAME", |
| 70 | "REGISTER_NEW_EMAIL" |
| 71 | ] |
| 72 | }, |
| 73 | "download": { |
Adrian Görler | 266f959 | 2015-10-08 16:56:51 +0200 | [diff] [blame] | 74 | "schemes": { |
Edwin Kempin | 132d28e | 2015-05-07 15:30:35 +0200 | [diff] [blame] | 75 | "anonymous http": { |
| 76 | "url": "http://gerrithost:8080/${project}", |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 77 | "commands": { |
Edwin Kempin | 132d28e | 2015-05-07 15:30:35 +0200 | [diff] [blame] | 78 | "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 Kempin | eafde88 | 2015-05-11 15:40:44 +0200 | [diff] [blame] | 82 | }, |
| 83 | "clone_commands": { |
Adrian Görler | 266f959 | 2015-10-08 16:56:51 +0200 | [diff] [blame] | 84 | "Clone": "git clone http://gerrithost:8080/${project}", |
Edwin Kempin | eafde88 | 2015-05-11 15:40:44 +0200 | [diff] [blame] | 85 | "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 Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 86 | } |
| 87 | }, |
Edwin Kempin | 132d28e | 2015-05-07 15:30:35 +0200 | [diff] [blame] | 88 | "http": { |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 89 | "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 Kempin | eafde88 | 2015-05-11 15:40:44 +0200 | [diff] [blame] | 97 | }, |
| 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 Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 101 | } |
| 102 | }, |
Edwin Kempin | 132d28e | 2015-05-07 15:30:35 +0200 | [diff] [blame] | 103 | "ssh": { |
| 104 | "url": "ssh://jdoe@gerrithost:29418/${project}", |
| 105 | "is_auth_required": true, |
| 106 | "is_auth_supported": true, |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 107 | "commands": { |
Edwin Kempin | 132d28e | 2015-05-07 15:30:35 +0200 | [diff] [blame] | 108 | "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 Kempin | eafde88 | 2015-05-11 15:40:44 +0200 | [diff] [blame] | 112 | }, |
| 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 Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 116 | } |
| 117 | } |
Adrian Görler | 266f959 | 2015-10-08 16:56:51 +0200 | [diff] [blame] | 118 | }, |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 119 | "archives": [ |
Edwin Kempin | f5c8879 | 2015-05-20 09:20:30 +0200 | [diff] [blame] | 120 | "tgz", |
| 121 | "tar", |
| 122 | "tbz2", |
| 123 | "txz" |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 124 | ] |
| 125 | }, |
| 126 | "gerrit": { |
| 127 | "all_projects": "All-Projects", |
| 128 | "all_users": "All-Users" |
David Ostrovsky | 7163dac | 2017-07-29 06:49:38 +0200 | [diff] [blame] | 129 | "doc_search": true |
Edwin Kempin | 5057054 | 2015-05-08 15:31:56 +0200 | [diff] [blame] | 130 | }, |
Edwin Kempin | a3188e1 | 2015-05-12 13:34:42 +0200 | [diff] [blame] | 131 | "sshd": {}, |
Edwin Kempin | 5057054 | 2015-05-08 15:31:56 +0200 | [diff] [blame] | 132 | "suggest": { |
| 133 | "from": 0 |
| 134 | }, |
| 135 | "user": { |
Han-Wen Nienhuys | 3fb723d | 2017-11-20 19:21:13 +0100 | [diff] [blame] | 136 | "anonymous_coward_name": "Name of user not set" |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 137 | } |
| 138 | } |
| 139 | ---- |
| 140 | |
Edwin Kempin | 54fd1d3 | 2017-03-24 15:32:03 +0100 | [diff] [blame] | 141 | [[check-consistency]] |
| 142 | === Check Consistency |
| 143 | -- |
Edwin Kempin | 2ee52f8 | 2017-04-25 11:04:28 +0200 | [diff] [blame] | 144 | 'POST /config/server/check.consistency' |
Edwin Kempin | 54fd1d3 | 2017-03-24 15:32:03 +0100 | [diff] [blame] | 145 | -- |
| 146 | |
| 147 | Runs consistency checks and returns detected problems. |
| 148 | |
| 149 | Input for the consistency checks that should be run must be provided in |
| 150 | the request body inside a |
| 151 | link:#consistency-check-input[ConsistencyCheckInput] entity. |
| 152 | |
| 153 | .Request |
| 154 | ---- |
Edwin Kempin | 2ee52f8 | 2017-04-25 11:04:28 +0200 | [diff] [blame] | 155 | POST /config/server/check.consistency HTTP/1.0 |
Edwin Kempin | 54fd1d3 | 2017-03-24 15:32:03 +0100 | [diff] [blame] | 156 | Content-Type: application/json; charset=UTF-8 |
| 157 | |
| 158 | { |
Edwin Kempin | 6396d6d | 2017-05-30 10:41:28 +0200 | [diff] [blame] | 159 | "check_accounts": {}, |
Edwin Kempin | 54fd1d3 | 2017-03-24 15:32:03 +0100 | [diff] [blame] | 160 | "check_account_external_ids": {} |
| 161 | } |
| 162 | ---- |
| 163 | |
| 164 | As result a link:#consistency-check-info[ConsistencyCheckInfo] entity |
| 165 | is returned that contains detected consistency problems. |
| 166 | |
| 167 | .Response |
| 168 | ---- |
| 169 | HTTP/1.1 200 OK |
| 170 | Content-Type: application/json; charset=UTF-8 |
| 171 | |
| 172 | )]}' |
| 173 | { |
Edwin Kempin | 6396d6d | 2017-05-30 10:41:28 +0200 | [diff] [blame] | 174 | "check_accounts_result": { |
| 175 | "problems": [ |
| 176 | { |
| 177 | "status": "ERROR", |
| 178 | "message": "Account \u00271000024\u0027 has no external ID for its preferred email \u0027foo.bar@example.com\u0027" |
| 179 | } |
| 180 | ] |
| 181 | } |
Edwin Kempin | dadd303 | 2017-05-30 09:46:44 +0200 | [diff] [blame] | 182 | "check_account_external_ids_result": { |
| 183 | "problems": [ |
| 184 | { |
| 185 | "status": "ERROR", |
| 186 | "message": "External ID \u0027uuid:ccb8d323-1361-45aa-8874-41987a660c46\u0027 belongs to account that doesn\u0027t exist: 1000012" |
| 187 | } |
| 188 | ] |
Edwin Kempin | 54fd1d3 | 2017-03-24 15:32:03 +0100 | [diff] [blame] | 189 | } |
| 190 | } |
| 191 | ---- |
| 192 | |
Han-Wen Nienhuys | e04df7e | 2017-04-25 17:41:58 +0200 | [diff] [blame] | 193 | |
Sven Selberg | 1acfae5 | 2018-04-18 17:11:56 +0200 | [diff] [blame] | 194 | [[reload-config]] |
| 195 | === Reload Config |
| 196 | -- |
| 197 | 'POST /config/server/reload' |
| 198 | -- |
| 199 | |
| 200 | Reloads the gerrit.config configuration. |
| 201 | |
| 202 | Not all configuration value can be picked up by this command. Which config |
| 203 | sections and values that are supported is documented here: |
| 204 | link:config-gerrit.html[Configuration] |
| 205 | |
| 206 | _The output shows only modified config values that are picked up by Gerrit |
| 207 | and applied._ |
| 208 | |
| 209 | If a config entry is added or removed from gerrit.config, but still brings |
| 210 | no effect due to a matching default value, no output for this entry is shown. |
| 211 | |
| 212 | .Request |
| 213 | ---- |
| 214 | POST /config/server/reload HTTP/1.0 |
| 215 | ---- |
| 216 | |
| 217 | As result a link:#config-update-info[ConfigUpdateInfo] entity is returned that |
| 218 | contains information about how the updated config entries were handled. |
| 219 | |
| 220 | .Response |
| 221 | ---- |
| 222 | HTTP/1.1 200 OK |
| 223 | Content-Type: application/json; charset=UTF-8 |
| 224 | |
| 225 | )]}' |
| 226 | { |
| 227 | "rejected": [], |
| 228 | "applied": [ |
| 229 | { |
| 230 | "config_key": "addreviewer.maxAllowed", |
| 231 | "old_value": "20", |
| 232 | "new_value": "15" |
| 233 | } |
| 234 | ] |
| 235 | } |
| 236 | ---- |
| 237 | |
| 238 | |
Edwin Kempin | ed84657 | 2015-07-24 14:17:11 +0200 | [diff] [blame] | 239 | [[confirm-email]] |
| 240 | === Confirm Email |
| 241 | -- |
| 242 | 'PUT /config/server/email.confirm' |
| 243 | -- |
| 244 | |
| 245 | Confirms that the user owns an email address. |
| 246 | |
| 247 | The email token must be provided in the request body inside |
| 248 | an link:#email-confirmation-input[EmailConfirmationInput] entity. |
| 249 | |
| 250 | .Request |
| 251 | ---- |
| 252 | PUT /config/server/email.confirm HTTP/1.0 |
| 253 | Content-Type: application/json; charset=UTF-8 |
| 254 | |
| 255 | { |
| 256 | "token": "Enim+QNbAo6TV8Hur8WwoUypI6apG7qBPvF+bw==$MTAwMDAwNDp0ZXN0QHRlc3QuZGU=" |
| 257 | } |
| 258 | ---- |
| 259 | |
| 260 | The response is "`204 No Content`". |
| 261 | |
| 262 | If the token is invalid or if it's the token of another user the |
| 263 | request fails and the response is "`422 Unprocessable Entity`". |
| 264 | |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 265 | |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 266 | [[list-caches]] |
| 267 | === List Caches |
| 268 | -- |
| 269 | 'GET /config/server/caches/' |
| 270 | -- |
| 271 | |
| 272 | Lists the caches of the server. Caches defined by plugins are included. |
| 273 | |
Dave Borowitz | 664d040 | 2015-06-11 15:35:48 -0400 | [diff] [blame] | 274 | The caller must be a member of a group that is granted one of the |
| 275 | following capabilities: |
| 276 | |
| 277 | * link:access-control.html#capability_viewCaches[View Caches] |
| 278 | * link:access-control.html#capability_maintainServer[Maintain Server] |
| 279 | * link:access-control.html#capability_administrateServer[Administrate Server] |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 280 | |
| 281 | As result a map of link:#cache-info[CacheInfo] entities is returned. |
| 282 | |
| 283 | The entries in the map are sorted by cache name. |
| 284 | |
| 285 | .Request |
| 286 | ---- |
| 287 | GET /config/server/caches/ HTTP/1.0 |
| 288 | ---- |
| 289 | |
| 290 | .Response |
| 291 | ---- |
| 292 | HTTP/1.1 200 OK |
David Pursehouse | 56bf1cb | 2015-01-06 15:44:00 +0900 | [diff] [blame] | 293 | Content-Type: application/json; charset=UTF-8 |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 294 | |
| 295 | )]}' |
| 296 | { |
| 297 | "accounts": { |
Edwin Kempin | f11eadc | 2014-06-24 15:23:52 +0200 | [diff] [blame] | 298 | "type": "MEM", |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 299 | "entries": { |
| 300 | "mem": 4 |
| 301 | }, |
| 302 | "average_get": "2.5ms", |
| 303 | "hit_ratio": { |
| 304 | "mem": 94 |
| 305 | } |
| 306 | }, |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 307 | "adv_bases": { |
Edwin Kempin | f11eadc | 2014-06-24 15:23:52 +0200 | [diff] [blame] | 308 | "type": "MEM", |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 309 | "entries": {}, |
| 310 | "hit_ratio": {} |
| 311 | }, |
| 312 | "change_kind": { |
| 313 | "type": "DISK", |
| 314 | "entries": { |
| 315 | "space": "0.00k" |
| 316 | }, |
| 317 | "hit_ratio": {} |
| 318 | }, |
| 319 | "changes": { |
Edwin Kempin | f11eadc | 2014-06-24 15:23:52 +0200 | [diff] [blame] | 320 | "type": "MEM", |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 321 | "entries": {}, |
| 322 | "hit_ratio": {} |
| 323 | }, |
| 324 | "conflicts": { |
| 325 | "type": "DISK", |
| 326 | "entries": { |
| 327 | "mem": 2, |
| 328 | "disk": 3, |
| 329 | "space": "2.75k" |
| 330 | }, |
| 331 | "hit_ratio": { |
| 332 | "mem": 0, |
| 333 | "disk": 100 |
| 334 | } |
| 335 | }, |
| 336 | "diff": { |
| 337 | "type": "DISK", |
| 338 | "entries": { |
| 339 | "mem": 177, |
| 340 | "disk": 253, |
| 341 | "space": "170.97k" |
| 342 | }, |
| 343 | "average_get": "1.1ms", |
| 344 | "hit_ratio": { |
| 345 | "mem": 67, |
| 346 | "disk": 100 |
| 347 | } |
| 348 | }, |
| 349 | "diff_intraline": { |
| 350 | "type": "DISK", |
| 351 | "entries": { |
| 352 | "mem": 1, |
| 353 | "disk": 1, |
| 354 | "space": "0.37k" |
| 355 | }, |
| 356 | "average_get": "6.8ms", |
| 357 | "hit_ratio": { |
| 358 | "mem": 0 |
| 359 | } |
| 360 | }, |
| 361 | "git_tags": { |
| 362 | "type": "DISK", |
| 363 | "entries": { |
| 364 | "space": "0.00k" |
| 365 | }, |
| 366 | "hit_ratio": {} |
| 367 | }, |
| 368 | groups": { |
Edwin Kempin | f11eadc | 2014-06-24 15:23:52 +0200 | [diff] [blame] | 369 | "type": "MEM", |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 370 | "entries": { |
| 371 | "mem": 27 |
| 372 | }, |
| 373 | "average_get": "183.2us", |
| 374 | "hit_ratio": { |
| 375 | "mem": 12 |
| 376 | } |
| 377 | }, |
Alice Kober-Sotzek | 864ed14 | 2017-10-12 14:24:36 +0200 | [diff] [blame] | 378 | "groups_bymember": { |
| 379 | "type": "MEM", |
| 380 | "entries": {}, |
| 381 | "hit_ratio": {} |
| 382 | }, |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 383 | "groups_byname": { |
Edwin Kempin | f11eadc | 2014-06-24 15:23:52 +0200 | [diff] [blame] | 384 | "type": "MEM", |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 385 | "entries": {}, |
| 386 | "hit_ratio": {} |
| 387 | }, |
Alice Kober-Sotzek | 3e1fe1b | 2017-10-12 14:44:17 +0200 | [diff] [blame] | 388 | "groups_bysubgroup": { |
| 389 | "type": "MEM", |
| 390 | "entries": {}, |
| 391 | "hit_ratio": {} |
| 392 | }, |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 393 | "groups_byuuid": { |
Edwin Kempin | f11eadc | 2014-06-24 15:23:52 +0200 | [diff] [blame] | 394 | "type": "MEM", |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 395 | "entries": { |
| 396 | "mem": 25 |
| 397 | }, |
| 398 | "average_get": "173.4us", |
| 399 | "hit_ratio": { |
| 400 | "mem": 13 |
| 401 | } |
| 402 | }, |
| 403 | "groups_external": { |
Edwin Kempin | f11eadc | 2014-06-24 15:23:52 +0200 | [diff] [blame] | 404 | "type": "MEM", |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 405 | "entries": {}, |
| 406 | "hit_ratio": {} |
| 407 | }, |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 408 | "permission_sort": { |
Edwin Kempin | f11eadc | 2014-06-24 15:23:52 +0200 | [diff] [blame] | 409 | "type": "MEM", |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 410 | "entries": { |
| 411 | "mem": 16 |
| 412 | }, |
| 413 | "hit_ratio": { |
| 414 | "mem": 96 |
| 415 | } |
| 416 | }, |
| 417 | "plugin_resources": { |
Edwin Kempin | f11eadc | 2014-06-24 15:23:52 +0200 | [diff] [blame] | 418 | "type": "MEM", |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 419 | "entries": { |
| 420 | "mem": 2 |
| 421 | }, |
| 422 | "hit_ratio": { |
| 423 | "mem": 83 |
| 424 | } |
| 425 | }, |
| 426 | "project_list": { |
Edwin Kempin | f11eadc | 2014-06-24 15:23:52 +0200 | [diff] [blame] | 427 | "type": "MEM", |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 428 | "entries": { |
| 429 | "mem": 1 |
| 430 | }, |
| 431 | "average_get": "18.6ms", |
| 432 | "hit_ratio": { |
| 433 | "mem": 0 |
| 434 | } |
| 435 | }, |
| 436 | "projects": { |
Edwin Kempin | f11eadc | 2014-06-24 15:23:52 +0200 | [diff] [blame] | 437 | "type": "MEM", |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 438 | "entries": { |
| 439 | "mem": 35 |
| 440 | }, |
| 441 | "average_get": "8.6ms", |
| 442 | "hit_ratio": { |
| 443 | "mem": 99 |
| 444 | } |
| 445 | }, |
Dave Borowitz | 08aa8bb | 2018-04-05 12:01:06 -0400 | [diff] [blame] | 446 | "prolog_rules": { |
| 447 | "type": "MEM", |
| 448 | "entries": { |
| 449 | "mem": 35 |
| 450 | }, |
| 451 | "average_get": "103.0ms", |
| 452 | "hit_ratio": { |
| 453 | "mem": 99 |
| 454 | } |
| 455 | }, |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 456 | "quota-repo_size": { |
| 457 | "type": "DISK", |
| 458 | "entries": { |
| 459 | "space": "0.00k" |
| 460 | }, |
| 461 | "hit_ratio": {} |
| 462 | }, |
| 463 | "sshkeys": { |
Edwin Kempin | f11eadc | 2014-06-24 15:23:52 +0200 | [diff] [blame] | 464 | "type": "MEM", |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 465 | "entries": { |
| 466 | "mem": 1 |
| 467 | }, |
| 468 | "average_get": "3.2ms", |
| 469 | "hit_ratio": { |
| 470 | "mem": 50 |
| 471 | } |
| 472 | }, |
| 473 | "web_sessions": { |
| 474 | "type": "DISK", |
| 475 | "entries": { |
| 476 | "mem": 1, |
| 477 | "disk": 2, |
| 478 | "space": "0.78k" |
| 479 | }, |
| 480 | "hit_ratio": { |
| 481 | "mem": 82 |
| 482 | } |
| 483 | } |
| 484 | } |
| 485 | ---- |
| 486 | |
Edwin Kempin | 8dd9412 | 2014-05-28 12:04:17 +0200 | [diff] [blame] | 487 | It is possible to get different output formats by specifying the |
| 488 | `format` option: |
| 489 | |
| 490 | * `LIST`: |
| 491 | + |
| 492 | Returns the cache names as JSON list. |
| 493 | + |
David Pursehouse | 33a3c25 | 2016-11-15 16:55:33 -0800 | [diff] [blame] | 494 | The cache names are lexicographically sorted. |
Edwin Kempin | 8dd9412 | 2014-05-28 12:04:17 +0200 | [diff] [blame] | 495 | + |
| 496 | .Request |
| 497 | ---- |
| 498 | GET /config/server/caches/?format=LIST HTTP/1.0 |
| 499 | ---- |
| 500 | + |
| 501 | .Response |
| 502 | ---- |
| 503 | HTTP/1.1 200 OK |
David Pursehouse | 56bf1cb | 2015-01-06 15:44:00 +0900 | [diff] [blame] | 504 | Content-Type: application/json; charset=UTF-8 |
Edwin Kempin | 8dd9412 | 2014-05-28 12:04:17 +0200 | [diff] [blame] | 505 | |
| 506 | )]}' |
| 507 | [ |
| 508 | "accounts", |
Edwin Kempin | 8dd9412 | 2014-05-28 12:04:17 +0200 | [diff] [blame] | 509 | "adv_bases", |
| 510 | "change_kind", |
| 511 | "changes", |
| 512 | "conflicts", |
| 513 | "diff", |
| 514 | "diff_intraline", |
| 515 | "git_tags", |
| 516 | "groups", |
Alice Kober-Sotzek | 864ed14 | 2017-10-12 14:24:36 +0200 | [diff] [blame] | 517 | "groups_bymember", |
Edwin Kempin | 8dd9412 | 2014-05-28 12:04:17 +0200 | [diff] [blame] | 518 | "groups_byname", |
Alice Kober-Sotzek | 3e1fe1b | 2017-10-12 14:44:17 +0200 | [diff] [blame] | 519 | "groups_bysubgroup", |
Edwin Kempin | 8dd9412 | 2014-05-28 12:04:17 +0200 | [diff] [blame] | 520 | "groups_byuuid", |
| 521 | "groups_external", |
Edwin Kempin | 8dd9412 | 2014-05-28 12:04:17 +0200 | [diff] [blame] | 522 | "permission_sort", |
| 523 | "plugin_resources", |
| 524 | "project_list", |
| 525 | "projects", |
Dave Borowitz | 08aa8bb | 2018-04-05 12:01:06 -0400 | [diff] [blame] | 526 | "prolog_rules", |
Edwin Kempin | 8dd9412 | 2014-05-28 12:04:17 +0200 | [diff] [blame] | 527 | "quota-repo_size", |
| 528 | "sshkeys", |
| 529 | "web_sessions" |
| 530 | ] |
| 531 | ---- |
| 532 | |
| 533 | * `TEXT_LIST`: |
| 534 | + |
| 535 | Returns the cache names as a UTF-8 list that is base64 encoded. The |
| 536 | cache names are delimited by '\n'. |
| 537 | + |
| 538 | The cache names are lexicographically sorted. |
| 539 | + |
| 540 | .Request |
| 541 | ---- |
| 542 | GET /config/server/caches/?format=TEXT_LIST HTTP/1.0 |
| 543 | ---- |
| 544 | + |
| 545 | .Response |
| 546 | ---- |
| 547 | HTTP/1.1 200 OK |
David Pursehouse | 56bf1cb | 2015-01-06 15:44:00 +0900 | [diff] [blame] | 548 | Content-Type: text/plain; charset=UTF-8 |
Edwin Kempin | 8dd9412 | 2014-05-28 12:04:17 +0200 | [diff] [blame] | 549 | |
| 550 | YWNjb3VudHMKYW...ViX3Nlc3Npb25z |
| 551 | ---- |
| 552 | + |
| 553 | E.g. this could be used to flush all caches: |
| 554 | + |
| 555 | ---- |
Han-Wen Nienhuys | 84d830b | 2017-02-15 16:36:04 +0100 | [diff] [blame] | 556 | for c in $(curl --user jdoe:TNAuLkXsIV7w http://gerrit/a/config/server/caches/?format=TEXT_LIST | base64 -D) |
Edwin Kempin | 8dd9412 | 2014-05-28 12:04:17 +0200 | [diff] [blame] | 557 | do |
Han-Wen Nienhuys | 84d830b | 2017-02-15 16:36:04 +0100 | [diff] [blame] | 558 | curl --user jdoe:TNAuLkXsIV7w -X POST http://gerrit/a/config/server/caches/$c/flush |
Edwin Kempin | 8dd9412 | 2014-05-28 12:04:17 +0200 | [diff] [blame] | 559 | done |
| 560 | ---- |
| 561 | |
David Pursehouse | a012b01 | 2014-07-10 14:00:40 +0900 | [diff] [blame] | 562 | [[cache-operations]] |
Edwin Kempin | a428683 | 2014-05-28 14:17:22 +0200 | [diff] [blame] | 563 | === Cache Operations |
| 564 | -- |
| 565 | 'POST /config/server/caches/' |
| 566 | -- |
| 567 | |
| 568 | Executes a cache operation that is specified in the request body in a |
| 569 | link:#cache-operation-input[CacheOperationInput] entity. |
| 570 | |
| 571 | [[flush-all-caches]] |
| 572 | ==== Flush All Caches |
| 573 | |
| 574 | .Request |
| 575 | ---- |
| 576 | POST /config/server/caches/ HTTP/1.0 |
David Pursehouse | 56bf1cb | 2015-01-06 15:44:00 +0900 | [diff] [blame] | 577 | Content-Type: application/json; charset=UTF-8 |
Edwin Kempin | a428683 | 2014-05-28 14:17:22 +0200 | [diff] [blame] | 578 | |
| 579 | { |
| 580 | "operation": "FLUSH_ALL" |
| 581 | } |
| 582 | ---- |
| 583 | |
| 584 | .Response |
| 585 | ---- |
| 586 | HTTP/1.1 200 OK |
| 587 | ---- |
| 588 | |
Edwin Kempin | a3c6d03 | 2014-05-28 14:46:44 +0200 | [diff] [blame] | 589 | [[flush-several-caches]] |
| 590 | ==== Flush Several Caches At Once |
| 591 | |
| 592 | .Request |
| 593 | ---- |
| 594 | POST /config/server/caches/ HTTP/1.0 |
David Pursehouse | 56bf1cb | 2015-01-06 15:44:00 +0900 | [diff] [blame] | 595 | Content-Type: application/json; charset=UTF-8 |
Edwin Kempin | a3c6d03 | 2014-05-28 14:46:44 +0200 | [diff] [blame] | 596 | |
| 597 | { |
Adrian Görler | 2512510 | 2014-08-13 15:00:44 +0200 | [diff] [blame] | 598 | "operation": "FLUSH", |
Edwin Kempin | a3c6d03 | 2014-05-28 14:46:44 +0200 | [diff] [blame] | 599 | "caches": [ |
| 600 | "projects", |
| 601 | "project_list" |
| 602 | ] |
| 603 | } |
| 604 | ---- |
| 605 | |
| 606 | .Response |
| 607 | ---- |
| 608 | HTTP/1.1 200 OK |
| 609 | ---- |
| 610 | |
Edwin Kempin | 57a4682 | 2014-05-23 10:24:41 +0200 | [diff] [blame] | 611 | [[get-cache]] |
| 612 | === Get Cache |
| 613 | -- |
| 614 | 'GET /config/server/caches/link:#cache-name[\{cache-name\}]' |
| 615 | -- |
| 616 | |
| 617 | Retrieves information about a cache. |
| 618 | |
Dave Borowitz | 664d040 | 2015-06-11 15:35:48 -0400 | [diff] [blame] | 619 | The caller must be a member of a group that is granted one of the |
| 620 | following capabilities: |
| 621 | |
| 622 | * link:access-control.html#capability_viewCaches[View Caches] |
| 623 | * link:access-control.html#capability_maintainServer[Maintain Server] |
| 624 | * link:access-control.html#capability_administrateServer[Administrate Server] |
Edwin Kempin | 57a4682 | 2014-05-23 10:24:41 +0200 | [diff] [blame] | 625 | |
| 626 | As result a link:#cache-info[CacheInfo] entity is returned. |
| 627 | |
| 628 | .Request |
| 629 | ---- |
| 630 | GET /config/server/caches/projects HTTP/1.0 |
| 631 | ---- |
| 632 | |
| 633 | .Response |
| 634 | ---- |
| 635 | HTTP/1.1 200 OK |
David Pursehouse | 56bf1cb | 2015-01-06 15:44:00 +0900 | [diff] [blame] | 636 | Content-Type: application/json; charset=UTF-8 |
Edwin Kempin | 57a4682 | 2014-05-23 10:24:41 +0200 | [diff] [blame] | 637 | |
| 638 | )]}' |
| 639 | { |
| 640 | "name": "projects", |
Edwin Kempin | f11eadc | 2014-06-24 15:23:52 +0200 | [diff] [blame] | 641 | "type": "MEM", |
Edwin Kempin | 57a4682 | 2014-05-23 10:24:41 +0200 | [diff] [blame] | 642 | "entries": { |
| 643 | "mem": 35 |
| 644 | }, |
| 645 | "average_get": " 8.6ms", |
| 646 | "hit_ratio": { |
| 647 | "mem": 99 |
| 648 | } |
| 649 | } |
| 650 | ---- |
| 651 | |
Edwin Kempin | 37cc41a | 2014-05-23 10:52:20 +0200 | [diff] [blame] | 652 | [[flush-cache]] |
| 653 | === Flush Cache |
| 654 | -- |
| 655 | 'POST /config/server/caches/link:#cache-name[\{cache-name\}]/flush' |
| 656 | -- |
| 657 | |
| 658 | Flushes a cache. |
| 659 | |
Dave Borowitz | 664d040 | 2015-06-11 15:35:48 -0400 | [diff] [blame] | 660 | The caller must be a member of a group that is granted one of the |
| 661 | following capabilities: |
Edwin Kempin | 37cc41a | 2014-05-23 10:52:20 +0200 | [diff] [blame] | 662 | |
Dave Borowitz | 664d040 | 2015-06-11 15:35:48 -0400 | [diff] [blame] | 663 | * link:access-control.html#capability_flushCaches[Flush Caches] (any cache |
| 664 | except "web_sessions") |
| 665 | * link:access-control.html#capability_maintainServer[Maintain Server] (any cache |
| 666 | including "web_sessions") |
| 667 | * link:access-control.html#capability_administrateServer[Administrate Server] |
| 668 | (any cache including "web_sessions") |
Edwin Kempin | 37cc41a | 2014-05-23 10:52:20 +0200 | [diff] [blame] | 669 | |
| 670 | .Request |
| 671 | ---- |
| 672 | POST /config/server/caches/projects/flush HTTP/1.0 |
| 673 | ---- |
| 674 | |
| 675 | .Response |
| 676 | ---- |
| 677 | HTTP/1.1 200 OK |
| 678 | ---- |
| 679 | |
Edwin Kempin | d905e58 | 2014-05-28 16:54:36 +0200 | [diff] [blame] | 680 | [[get-summary]] |
| 681 | === Get Summary |
| 682 | -- |
| 683 | 'GET /config/server/summary' |
| 684 | -- |
| 685 | |
| 686 | Retrieves a summary of the current server state. |
| 687 | |
| 688 | The caller must be a member of a group that is granted the |
| 689 | link:access-control.html#capability_administrateServer[Administrate |
| 690 | Server] capability. |
| 691 | |
| 692 | The following options are supported: |
| 693 | |
| 694 | * `jvm`: |
| 695 | + |
| 696 | Includes a JVM summary. |
| 697 | |
| 698 | * `gc`: |
| 699 | + |
| 700 | Requests a Java garbage collection before computing the information |
| 701 | about the Java memory heap. |
| 702 | |
| 703 | .Request |
| 704 | ---- |
| 705 | GET /config/server/summary?jvm HTTP/1.0 |
| 706 | ---- |
| 707 | |
| 708 | As result a link:#summary-info[SummaryInfo] entity is returned. |
| 709 | |
| 710 | .Response |
| 711 | ---- |
| 712 | HTTP/1.1 200 OK |
David Pursehouse | 56bf1cb | 2015-01-06 15:44:00 +0900 | [diff] [blame] | 713 | Content-Type: application/json; charset=UTF-8 |
Edwin Kempin | d905e58 | 2014-05-28 16:54:36 +0200 | [diff] [blame] | 714 | |
| 715 | )]}' |
| 716 | { |
| 717 | "task_summary": { |
| 718 | "total": 2, |
| 719 | "sleeping": 2 |
| 720 | }, |
| 721 | "mem_summary": { |
| 722 | "total": "341.06m", |
| 723 | "used": "57.16m", |
| 724 | "free": "283.90m", |
| 725 | "buffers": "0.00k", |
| 726 | "max": "1.67g", |
| 727 | } |
| 728 | "thread_summary": { |
| 729 | "cpus": 8, |
| 730 | "threads": 44, |
| 731 | "counts": { |
| 732 | "HTTP": { |
| 733 | "RUNNABLE": 3, |
| 734 | "TIMED_WAITING": 2 |
| 735 | }, |
| 736 | "SSH-Interactive-Worker": { |
| 737 | "WAITING": 1 |
| 738 | }, |
| 739 | "Other": { |
| 740 | "WAITING": 10, |
| 741 | "RUNNABLE": 2, |
| 742 | "TIMED_WAITING": 25 |
| 743 | }, |
| 744 | "SshCommandStart": { |
| 745 | "WAITING": 1 |
| 746 | } |
| 747 | } |
| 748 | }, |
| 749 | "jvm_summary": { |
| 750 | "vm_vendor": "Oracle Corporation", |
| 751 | "vm_name": "Java HotSpot(TM) 64-Bit Server VM", |
| 752 | "vm_version": "23.25-b01", |
| 753 | "os_name": "Mac OS X", |
| 754 | "os_version": "10.8.5", |
| 755 | "os_arch": "x86_64", |
| 756 | "user": "gerrit", |
| 757 | "host": "GERRIT", |
| 758 | "current_working_directory": "/Users/gerrit/site", |
| 759 | "site": "/Users/gerrit/site" |
| 760 | } |
| 761 | } |
| 762 | ---- |
| 763 | |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 764 | [[list-capabilities]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 765 | === List Capabilities |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 766 | -- |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 767 | 'GET /config/server/capabilities' |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 768 | -- |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 769 | |
David Pursehouse | 538a1b9 | 2013-06-12 10:45:54 +0200 | [diff] [blame] | 770 | Lists the capabilities that are available in the system. There are two |
| 771 | kinds of capabilities: core and plugin-owned capabilities. |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 772 | |
David Pursehouse | 538a1b9 | 2013-06-12 10:45:54 +0200 | [diff] [blame] | 773 | As result a map of link:#capability-info[CapabilityInfo] entities is |
| 774 | returned. |
| 775 | |
| 776 | The entries in the map are sorted by capability ID. |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 777 | |
| 778 | .Request |
| 779 | ---- |
| 780 | GET /config/server/capabilities/ HTTP/1.0 |
| 781 | ---- |
| 782 | |
| 783 | .Response |
| 784 | ---- |
| 785 | HTTP/1.1 200 OK |
David Pursehouse | 56bf1cb | 2015-01-06 15:44:00 +0900 | [diff] [blame] | 786 | Content-Type: application/json; charset=UTF-8 |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 787 | |
| 788 | )]}' |
| 789 | { |
| 790 | "accessDatabase": { |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 791 | "id": "accessDatabase", |
| 792 | "name": "Access Database" |
| 793 | }, |
| 794 | "administrateServer": { |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 795 | "id": "administrateServer", |
| 796 | "name": "Administrate Server" |
| 797 | }, |
| 798 | "createAccount": { |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 799 | "id": "createAccount", |
| 800 | "name": "Create Account" |
| 801 | }, |
| 802 | "createGroup": { |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 803 | "id": "createGroup", |
| 804 | "name": "Create Group" |
| 805 | }, |
| 806 | "createProject": { |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 807 | "id": "createProject", |
| 808 | "name": "Create Project" |
| 809 | }, |
| 810 | "emailReviewers": { |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 811 | "id": "emailReviewers", |
| 812 | "name": "Email Reviewers" |
| 813 | }, |
| 814 | "flushCaches": { |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 815 | "id": "flushCaches", |
| 816 | "name": "Flush Caches" |
| 817 | }, |
| 818 | "killTask": { |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 819 | "id": "killTask", |
| 820 | "name": "Kill Task" |
| 821 | }, |
| 822 | "priority": { |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 823 | "id": "priority", |
| 824 | "name": "Priority" |
| 825 | }, |
| 826 | "queryLimit": { |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 827 | "id": "queryLimit", |
| 828 | "name": "Query Limit" |
| 829 | }, |
| 830 | "runGC": { |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 831 | "id": "runGC", |
| 832 | "name": "Run Garbage Collection" |
| 833 | }, |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 834 | "streamEvents": { |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 835 | "id": "streamEvents", |
| 836 | "name": "Stream Events" |
| 837 | }, |
| 838 | "viewCaches": { |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 839 | "id": "viewCaches", |
| 840 | "name": "View Caches" |
| 841 | }, |
| 842 | "viewConnections": { |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 843 | "id": "viewConnections", |
| 844 | "name": "View Connections" |
| 845 | }, |
Edwin Kempin | 362b14d1 | 2014-05-09 14:18:12 +0200 | [diff] [blame] | 846 | "viewPlugins": { |
Edwin Kempin | 362b14d1 | 2014-05-09 14:18:12 +0200 | [diff] [blame] | 847 | "id": "viewPlugins", |
| 848 | "name": "View Plugins" |
| 849 | }, |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 850 | "viewQueue": { |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 851 | "id": "viewQueue", |
| 852 | "name": "View Queue" |
| 853 | } |
| 854 | } |
| 855 | ---- |
| 856 | |
Edwin Kempin | 49098b8 | 2014-06-10 22:55:13 +0200 | [diff] [blame] | 857 | [[list-tasks]] |
| 858 | === List Tasks |
| 859 | -- |
| 860 | 'GET /config/server/tasks/' |
| 861 | -- |
| 862 | |
| 863 | Lists the tasks from the background work queues that the Gerrit daemon |
| 864 | is currently performing, or will perform in the near future. |
| 865 | |
| 866 | Gerrit contains an internal scheduler, similar to cron, that it uses to |
| 867 | queue and dispatch both short and long term tasks. |
| 868 | |
| 869 | Tasks that are completed or canceled exit the queue very quickly once |
| 870 | they enter this state, but it can be possible to observe tasks in these |
| 871 | states. |
| 872 | |
| 873 | End-users may see a task only if they can also see the project the task |
| 874 | is associated with. Tasks operating on other projects, or that do not |
| 875 | have a specific project, are hidden. |
| 876 | |
Dave Borowitz | 664d040 | 2015-06-11 15:35:48 -0400 | [diff] [blame] | 877 | The caller must be a member of a group that is granted one of the |
| 878 | following capabilities: |
| 879 | |
| 880 | * link:access-control.html#capability_viewQueue[View Queue] |
| 881 | * link:access-control.html#capability_maintainServer[Maintain Server] |
| 882 | * link:access-control.html#capability_administrateServer[Administrate Server] |
Edwin Kempin | 49098b8 | 2014-06-10 22:55:13 +0200 | [diff] [blame] | 883 | |
| 884 | As result a list of link:#task-info[TaskInfo] entities is returned. |
| 885 | |
| 886 | The entries in the list are sorted by task state, remaining delay and |
| 887 | command. |
| 888 | |
| 889 | .Request |
| 890 | ---- |
| 891 | GET /config/server/tasks/ HTTP/1.0 |
| 892 | ---- |
| 893 | |
| 894 | .Response |
| 895 | ---- |
| 896 | HTTP/1.1 200 OK |
David Pursehouse | 56bf1cb | 2015-01-06 15:44:00 +0900 | [diff] [blame] | 897 | Content-Type: application/json; charset=UTF-8 |
Edwin Kempin | 49098b8 | 2014-06-10 22:55:13 +0200 | [diff] [blame] | 898 | |
| 899 | )]}' |
| 900 | [ |
| 901 | { |
| 902 | "id": "1e688bea", |
| 903 | "state": "SLEEPING", |
| 904 | "start_time": "2014-06-11 12:58:51.991000000", |
| 905 | "delay": 3453, |
| 906 | "command": "Reload Submit Queue" |
| 907 | }, |
| 908 | { |
| 909 | "id": "3e6d4ffa", |
| 910 | "state": "SLEEPING", |
| 911 | "start_time": "2014-06-11 12:58:51.508000000", |
| 912 | "delay": 3287966, |
| 913 | "command": "Log File Compressor" |
| 914 | } |
| 915 | ] |
| 916 | ---- |
| 917 | |
Edwin Kempin | 32e3a52 | 2014-07-08 12:10:31 +0200 | [diff] [blame] | 918 | [[get-task]] |
| 919 | === Get Task |
| 920 | -- |
| 921 | 'GET /config/server/tasks/link:#task-id[\{task-id\}]' |
| 922 | -- |
| 923 | |
| 924 | Retrieves a task from the background work queue that the Gerrit daemon |
| 925 | is currently performing, or will perform in the near future. |
| 926 | |
| 927 | End-users may see a task only if they can also see the project the task |
| 928 | is associated with. Tasks operating on other projects, or that do not |
| 929 | have a specific project, are hidden. |
| 930 | |
Dave Borowitz | 664d040 | 2015-06-11 15:35:48 -0400 | [diff] [blame] | 931 | The caller must be a member of a group that is granted one of the |
| 932 | following capabilities: |
| 933 | |
| 934 | * link:access-control.html#capability_viewQueue[View Queue] |
| 935 | * link:access-control.html#capability_maintainServer[Maintain Server] |
| 936 | * link:access-control.html#capability_administrateServer[Administrate Server] |
Edwin Kempin | 32e3a52 | 2014-07-08 12:10:31 +0200 | [diff] [blame] | 937 | |
| 938 | As result a link:#task-info[TaskInfo] entity is returned. |
| 939 | |
| 940 | .Request |
| 941 | ---- |
| 942 | GET /config/server/tasks/1e688bea HTTP/1.0 |
| 943 | ---- |
| 944 | |
| 945 | .Response |
| 946 | ---- |
| 947 | HTTP/1.1 200 OK |
David Pursehouse | 56bf1cb | 2015-01-06 15:44:00 +0900 | [diff] [blame] | 948 | Content-Type: application/json; charset=UTF-8 |
Edwin Kempin | 32e3a52 | 2014-07-08 12:10:31 +0200 | [diff] [blame] | 949 | |
| 950 | )]}' |
| 951 | { |
| 952 | "id": "1e688bea", |
| 953 | "state": "SLEEPING", |
| 954 | "start_time": "2014-06-11 12:58:51.991000000", |
| 955 | "delay": 3453, |
| 956 | "command": "Reload Submit Queue" |
| 957 | } |
| 958 | ---- |
| 959 | |
Edwin Kempin | 7e28381 | 2014-07-08 12:49:03 +0200 | [diff] [blame] | 960 | [[delete-task]] |
| 961 | === Delete Task |
| 962 | -- |
| 963 | 'DELETE /config/server/tasks/link:#task-id[\{task-id\}]' |
| 964 | -- |
| 965 | |
| 966 | Kills a task from the background work queue that the Gerrit daemon |
| 967 | is currently performing, or will perform in the near future. |
| 968 | |
Dave Borowitz | 664d040 | 2015-06-11 15:35:48 -0400 | [diff] [blame] | 969 | The caller must be a member of a group that is granted one of the |
| 970 | following capabilities: |
| 971 | |
| 972 | * link:access-control.html#capability_kill[Kill Task] |
| 973 | * link:access-control.html#capability_maintainServer[Maintain Server] |
| 974 | * link:access-control.html#capability_administrateServer[Administrate Server] |
Edwin Kempin | 7e28381 | 2014-07-08 12:49:03 +0200 | [diff] [blame] | 975 | |
| 976 | End-users may see a task only if they can also see the project the task |
| 977 | is associated with. Tasks operating on other projects, or that do not |
| 978 | have a specific project, are hidden. |
| 979 | |
Dave Borowitz | 664d040 | 2015-06-11 15:35:48 -0400 | [diff] [blame] | 980 | Members of a group granted one of the following capabilities may view |
| 981 | all tasks: |
| 982 | |
| 983 | * link:access-control.html#capability_viewQueue[View Queue] |
| 984 | * link:access-control.html#capability_maintainServer[Maintain Server] |
| 985 | * link:access-control.html#capability_administrateServer[Administrate Server] |
Edwin Kempin | 7e28381 | 2014-07-08 12:49:03 +0200 | [diff] [blame] | 986 | |
| 987 | .Request |
| 988 | ---- |
| 989 | DELETE /config/server/tasks/1e688bea HTTP/1.0 |
| 990 | ---- |
| 991 | |
| 992 | .Response |
| 993 | ---- |
| 994 | HTTP/1.1 204 No Content |
| 995 | ---- |
| 996 | |
Dariusz Luksza | 589ba00aa | 2013-05-07 17:21:23 +0200 | [diff] [blame] | 997 | [[get-top-menus]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 998 | === Get Top Menus |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 999 | -- |
Dariusz Luksza | 589ba00aa | 2013-05-07 17:21:23 +0200 | [diff] [blame] | 1000 | 'GET /config/server/top-menus' |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 1001 | -- |
Dariusz Luksza | 589ba00aa | 2013-05-07 17:21:23 +0200 | [diff] [blame] | 1002 | |
| 1003 | Returns the list of additional top menu entries. |
| 1004 | |
| 1005 | .Request |
| 1006 | ---- |
| 1007 | GET /config/server/top-menus HTTP/1.0 |
| 1008 | ---- |
| 1009 | |
| 1010 | As response a list of the additional top menu entries as |
| 1011 | link:#top-menu-entry-info[TopMenuEntryInfo] entities is returned. |
| 1012 | |
| 1013 | .Response |
| 1014 | ---- |
| 1015 | HTTP/1.1 200 OK |
David Pursehouse | 56bf1cb | 2015-01-06 15:44:00 +0900 | [diff] [blame] | 1016 | Content-Type: application/json; charset=UTF-8 |
Dariusz Luksza | 589ba00aa | 2013-05-07 17:21:23 +0200 | [diff] [blame] | 1017 | |
| 1018 | )]}' |
| 1019 | [ |
| 1020 | { |
| 1021 | "name": "Top Menu Entry", |
| 1022 | "items": [ |
| 1023 | { |
| 1024 | "url": "http://gerrit.googlecode.com/", |
| 1025 | "name": "Gerrit", |
| 1026 | "target": "_blank" |
| 1027 | } |
| 1028 | ] |
| 1029 | } |
| 1030 | ] |
| 1031 | ---- |
| 1032 | |
Edwin Kempin | e9f5da3 | 2016-06-03 17:08:34 +0200 | [diff] [blame] | 1033 | [[get-user-preferences]] |
| 1034 | === Get Default User Preferences |
| 1035 | -- |
| 1036 | 'GET /config/server/preferences' |
| 1037 | -- |
| 1038 | |
| 1039 | Returns the default user preferences for the server. |
| 1040 | |
| 1041 | .Request |
| 1042 | ---- |
| 1043 | GET /a/config/server/preferences HTTP/1.0 |
| 1044 | ---- |
| 1045 | |
| 1046 | As response a link:rest-api-accounts.html#preferences-info[ |
| 1047 | PreferencesInfo] is returned. |
| 1048 | |
| 1049 | .Response |
| 1050 | ---- |
| 1051 | HTTP/1.1 200 OK |
| 1052 | Content-Type: application/json; charset=UTF-8 |
| 1053 | |
| 1054 | )]}' |
| 1055 | { |
| 1056 | "changes_per_page": 25, |
Edwin Kempin | e9f5da3 | 2016-06-03 17:08:34 +0200 | [diff] [blame] | 1057 | "download_command": "CHECKOUT", |
| 1058 | "date_format": "STD", |
| 1059 | "time_format": "HHMM_12", |
| 1060 | "diff_view": "SIDE_BY_SIDE", |
| 1061 | "size_bar_in_change_table": true, |
Edwin Kempin | e9f5da3 | 2016-06-03 17:08:34 +0200 | [diff] [blame] | 1062 | "mute_common_path_prefixes": true, |
Dave Borowitz | d6ee48e | 2017-04-27 10:32:42 -0400 | [diff] [blame] | 1063 | "publish_comments_on_push": true, |
Edwin Kempin | e9f5da3 | 2016-06-03 17:08:34 +0200 | [diff] [blame] | 1064 | "my": [ |
| 1065 | { |
| 1066 | "url": "#/dashboard/self", |
| 1067 | "name": "Changes" |
| 1068 | }, |
| 1069 | { |
Edwin Kempin | e9f5da3 | 2016-06-03 17:08:34 +0200 | [diff] [blame] | 1070 | "url": "#/q/has:draft", |
| 1071 | "name": "Draft Comments" |
| 1072 | }, |
| 1073 | { |
| 1074 | "url": "#/q/has:edit", |
| 1075 | "name": "Edits" |
| 1076 | }, |
| 1077 | { |
| 1078 | "url": "#/q/is:watched+is:open", |
| 1079 | "name": "Watched Changes" |
| 1080 | }, |
| 1081 | { |
| 1082 | "url": "#/q/is:starred", |
| 1083 | "name": "Starred Changes" |
| 1084 | }, |
| 1085 | { |
| 1086 | "url": "#/groups/self", |
| 1087 | "name": "Groups" |
| 1088 | } |
| 1089 | ], |
| 1090 | "email_strategy": "ENABLED" |
| 1091 | } |
| 1092 | ---- |
| 1093 | |
| 1094 | [[set-user-preferences]] |
| 1095 | === Set Default User Preferences |
| 1096 | |
| 1097 | -- |
| 1098 | 'PUT /config/server/preferences' |
| 1099 | -- |
| 1100 | |
| 1101 | Sets the default user preferences for the server. |
| 1102 | |
| 1103 | The new user preferences must be provided in the request body as a |
| 1104 | link:rest-api-accounts.html#preferences-input[PreferencesInput] |
| 1105 | entity. |
| 1106 | |
| 1107 | To be allowed to set default preferences, a user must be a member of |
| 1108 | a group that is granted the |
| 1109 | link:access-control.html#capability_administrateServer[ |
| 1110 | Administrate Server] capability. |
| 1111 | |
| 1112 | .Request |
| 1113 | ---- |
| 1114 | PUT /a/config/server/preferences HTTP/1.0 |
| 1115 | Content-Type: application/json; charset=UTF-8 |
| 1116 | |
| 1117 | { |
| 1118 | "changes_per_page": 50 |
| 1119 | } |
| 1120 | ---- |
| 1121 | |
| 1122 | As response a link:rest-api-accounts.html#preferences-info[ |
| 1123 | PreferencesInfo] is returned. |
| 1124 | |
| 1125 | .Response |
| 1126 | ---- |
| 1127 | HTTP/1.1 200 OK |
| 1128 | Content-Type: application/json; charset=UTF-8 |
| 1129 | |
| 1130 | )]}' |
| 1131 | { |
| 1132 | "changes_per_page": 50, |
Edwin Kempin | e9f5da3 | 2016-06-03 17:08:34 +0200 | [diff] [blame] | 1133 | "download_command": "CHECKOUT", |
| 1134 | "date_format": "STD", |
| 1135 | "time_format": "HHMM_12", |
| 1136 | "diff_view": "SIDE_BY_SIDE", |
| 1137 | "size_bar_in_change_table": true, |
Edwin Kempin | e9f5da3 | 2016-06-03 17:08:34 +0200 | [diff] [blame] | 1138 | "mute_common_path_prefixes": true, |
Dave Borowitz | d6ee48e | 2017-04-27 10:32:42 -0400 | [diff] [blame] | 1139 | "publish_comments_on_push": true, |
Edwin Kempin | e9f5da3 | 2016-06-03 17:08:34 +0200 | [diff] [blame] | 1140 | "my": [ |
| 1141 | { |
| 1142 | "url": "#/dashboard/self", |
| 1143 | "name": "Changes" |
| 1144 | }, |
| 1145 | { |
Edwin Kempin | e9f5da3 | 2016-06-03 17:08:34 +0200 | [diff] [blame] | 1146 | "url": "#/q/has:draft", |
| 1147 | "name": "Draft Comments" |
| 1148 | }, |
| 1149 | { |
| 1150 | "url": "#/q/has:edit", |
| 1151 | "name": "Edits" |
| 1152 | }, |
| 1153 | { |
| 1154 | "url": "#/q/is:watched+is:open", |
| 1155 | "name": "Watched Changes" |
| 1156 | }, |
| 1157 | { |
| 1158 | "url": "#/q/is:starred", |
| 1159 | "name": "Starred Changes" |
| 1160 | }, |
| 1161 | { |
| 1162 | "url": "#/groups/self", |
| 1163 | "name": "Groups" |
| 1164 | } |
| 1165 | ], |
| 1166 | "email_strategy": "ENABLED" |
| 1167 | } |
| 1168 | ---- |
| 1169 | |
Sven Selberg | c60abbd | 2016-05-17 15:26:33 +0200 | [diff] [blame] | 1170 | [[get-diff-preferences]] |
Edwin Kempin | c8b9034 | 2016-06-23 13:20:52 +0200 | [diff] [blame] | 1171 | === Get Default Diff Preferences |
Sven Selberg | c60abbd | 2016-05-17 15:26:33 +0200 | [diff] [blame] | 1172 | |
| 1173 | -- |
| 1174 | 'GET /config/server/preferences.diff' |
| 1175 | -- |
| 1176 | |
| 1177 | Returns the default diff preferences for the server. |
| 1178 | |
| 1179 | .Request |
| 1180 | ---- |
| 1181 | GET /a/config/server/preferences.diff HTTP/1.0 |
| 1182 | ---- |
| 1183 | |
| 1184 | As response a link:rest-api-accounts.html#diff-preferences-info[ |
| 1185 | DiffPreferencesInfo] is returned. |
| 1186 | |
| 1187 | .Response |
| 1188 | ---- |
| 1189 | HTTP/1.1 200 OK |
| 1190 | Content-Type: application/json; charset=UTF-8 |
| 1191 | |
| 1192 | )]}' |
| 1193 | { |
| 1194 | "context": 10, |
| 1195 | "tab_size": 8, |
| 1196 | "line_length": 100, |
| 1197 | "cursor_blink_rate": 0, |
| 1198 | "intraline_difference": true, |
| 1199 | "show_line_endings": true, |
| 1200 | "show_tabs": true, |
| 1201 | "show_whitespace_errors": true, |
| 1202 | "syntax_highlighting": true, |
| 1203 | "auto_hide_diff_table_header": true, |
| 1204 | "theme": "DEFAULT", |
| 1205 | "ignore_whitespace": "IGNORE_NONE" |
| 1206 | } |
| 1207 | ---- |
| 1208 | |
| 1209 | [[set-diff-preferences]] |
Edwin Kempin | c8b9034 | 2016-06-23 13:20:52 +0200 | [diff] [blame] | 1210 | === Set Default Diff Preferences |
Sven Selberg | c60abbd | 2016-05-17 15:26:33 +0200 | [diff] [blame] | 1211 | |
| 1212 | -- |
| 1213 | 'PUT /config/server/preferences.diff' |
| 1214 | -- |
| 1215 | |
Edwin Kempin | c8b9034 | 2016-06-23 13:20:52 +0200 | [diff] [blame] | 1216 | Sets the default diff preferences for the server. |
| 1217 | |
| 1218 | The new diff preferences must be provided in the request body as a |
| 1219 | link:rest-api-accounts.html#diff-preferences-input[ |
| 1220 | DiffPreferencesInput] entity. |
| 1221 | |
| 1222 | To be allowed to set default diff preferences, a user must be a member |
| 1223 | of a group that is granted the |
| 1224 | link:access-control.html#capability_administrateServer[ |
| 1225 | Administrate Server] capability. |
Sven Selberg | c60abbd | 2016-05-17 15:26:33 +0200 | [diff] [blame] | 1226 | |
| 1227 | .Request |
| 1228 | ---- |
| 1229 | PUT /a/config/server/preferences.diff HTTP/1.0 |
| 1230 | Content-Type: application/json; charset=UTF-8 |
| 1231 | |
| 1232 | { |
| 1233 | "context": 10, |
| 1234 | "tab_size": 8, |
| 1235 | "line_length": 80, |
| 1236 | "cursor_blink_rate": 0, |
| 1237 | "intraline_difference": true, |
| 1238 | "show_line_endings": true, |
| 1239 | "show_tabs": true, |
| 1240 | "show_whitespace_errors": true, |
| 1241 | "syntax_highlighting": true, |
| 1242 | "auto_hide_diff_table_header": true, |
| 1243 | "theme": "DEFAULT", |
| 1244 | "ignore_whitespace": "IGNORE_NONE" |
| 1245 | } |
| 1246 | ---- |
| 1247 | |
| 1248 | As response a link:rest-api-accounts.html#diff-preferences-info[ |
| 1249 | DiffPreferencesInfo] is returned. |
| 1250 | |
| 1251 | .Response |
| 1252 | ---- |
| 1253 | HTTP/1.1 200 OK |
| 1254 | Content-Type: application/json; charset=UTF-8 |
| 1255 | |
| 1256 | )]}' |
| 1257 | { |
| 1258 | "context": 10, |
| 1259 | "tab_size": 8, |
| 1260 | "line_length": 80, |
| 1261 | "cursor_blink_rate": 0, |
| 1262 | "intraline_difference": true, |
| 1263 | "show_line_endings": true, |
| 1264 | "show_tabs": true, |
| 1265 | "show_whitespace_errors": true, |
| 1266 | "syntax_highlighting": true, |
| 1267 | "auto_hide_diff_table_header": true, |
| 1268 | "theme": "DEFAULT", |
| 1269 | "ignore_whitespace": "IGNORE_NONE" |
| 1270 | } |
| 1271 | ---- |
| 1272 | |
Edwin Kempin | 1e01692e | 2018-01-17 11:01:00 +0100 | [diff] [blame] | 1273 | [[get-edit-preferences]] |
| 1274 | === Get Default Edit Preferences |
| 1275 | |
| 1276 | -- |
| 1277 | 'GET /config/server/preferences.edit' |
| 1278 | -- |
| 1279 | |
| 1280 | Returns the default edit preferences for the server. |
| 1281 | |
| 1282 | .Request |
| 1283 | ---- |
| 1284 | GET /a/config/server/preferences.edit HTTP/1.0 |
| 1285 | ---- |
| 1286 | |
| 1287 | As response a link:rest-api-accounts.html#edit-preferences-info[ |
| 1288 | EditPreferencesInfo] is returned. |
| 1289 | |
| 1290 | .Response |
| 1291 | ---- |
| 1292 | HTTP/1.1 200 OK |
| 1293 | Content-Type: application/json; charset=UTF-8 |
| 1294 | |
| 1295 | )]}' |
| 1296 | { |
| 1297 | "tab_size": 8, |
| 1298 | "line_length": 100, |
| 1299 | "indent_unit": 2, |
| 1300 | "cursor_blink_rate": 0, |
| 1301 | "show_tabs": true, |
| 1302 | "syntax_highlighting": true, |
| 1303 | "match_brackets": true, |
| 1304 | "auto_close_brackets": true, |
| 1305 | "theme": "DEFAULT", |
| 1306 | "key_map_type": "DEFAULT" |
| 1307 | } |
| 1308 | ---- |
| 1309 | |
| 1310 | [[set-edit-preferences]] |
| 1311 | === Set Default Edit Preferences |
| 1312 | |
| 1313 | -- |
| 1314 | 'PUT /config/server/preferences.edit' |
| 1315 | -- |
| 1316 | |
| 1317 | Sets the default edit preferences for the server. |
| 1318 | |
| 1319 | The new edit preferences must be provided in the request body as a |
| 1320 | link:rest-api-accounts.html#edit-preferences-input[ |
| 1321 | EditPreferencesInput] entity. |
| 1322 | |
| 1323 | To be allowed to set default edit preferences, a user must be a member |
| 1324 | of a group that is granted the |
| 1325 | link:access-control.html#capability_administrateServer[ |
| 1326 | Administrate Server] capability. |
| 1327 | |
| 1328 | .Request |
| 1329 | ---- |
| 1330 | PUT /a/config/server/preferences.edit HTTP/1.0 |
| 1331 | Content-Type: application/json; charset=UTF-8 |
| 1332 | |
| 1333 | { |
| 1334 | "tab_size": 8, |
| 1335 | "line_length": 80, |
| 1336 | "indent_unit": 2, |
| 1337 | "cursor_blink_rate": 0, |
| 1338 | "show_tabs": true, |
| 1339 | "syntax_highlighting": true, |
| 1340 | "match_brackets": true, |
| 1341 | "auto_close_brackets": true, |
| 1342 | "theme": "DEFAULT", |
| 1343 | "key_map_type": "DEFAULT" |
| 1344 | } |
| 1345 | ---- |
| 1346 | |
| 1347 | As response a link:rest-api-accounts.html#edit-preferences-info[ |
| 1348 | EditPreferencesInfo] is returned. |
| 1349 | |
| 1350 | .Response |
| 1351 | ---- |
| 1352 | HTTP/1.1 200 OK |
| 1353 | Content-Type: application/json; charset=UTF-8 |
| 1354 | |
| 1355 | )]}' |
| 1356 | { |
| 1357 | "tab_size": 8, |
| 1358 | "line_length": 80, |
| 1359 | "indent_unit": 2, |
| 1360 | "cursor_blink_rate": 0, |
| 1361 | "show_tabs": true, |
| 1362 | "syntax_highlighting": true, |
| 1363 | "match_brackets": true, |
| 1364 | "auto_close_brackets": true, |
| 1365 | "theme": "DEFAULT", |
| 1366 | "key_map_type": "DEFAULT" |
| 1367 | } |
| 1368 | ---- |
| 1369 | |
Saša Živkov | e922306 | 2019-09-05 10:31:41 +0200 | [diff] [blame] | 1370 | [[index.changes]] |
| 1371 | === Index a set of changes |
| 1372 | |
| 1373 | This endpoint allows Gerrit admins to index a set of changes with one request |
| 1374 | by providing a link:#index-changes-input[IndexChangesInput] entity. |
| 1375 | |
| 1376 | Using this endpoint Gerrit admins can also index change(s) which are not visible to them. |
| 1377 | |
| 1378 | .Request |
| 1379 | ---- |
| 1380 | POST /config/server/index.changes HTTP/1.0 |
| 1381 | Content-Type: application/json; charset=UTF-8 |
| 1382 | |
| 1383 | {changes: ["foo~101", "bar~202"]} |
| 1384 | ---- |
| 1385 | |
| 1386 | .Response |
| 1387 | ---- |
| 1388 | HTTP/1.1 200 OK |
| 1389 | Content-Disposition: attachment |
| 1390 | ---- |
| 1391 | |
Dariusz Luksza | 589ba00aa | 2013-05-07 17:21:23 +0200 | [diff] [blame] | 1392 | |
Edwin Kempin | 57a4682 | 2014-05-23 10:24:41 +0200 | [diff] [blame] | 1393 | [[ids]] |
| 1394 | == IDs |
| 1395 | |
| 1396 | [[cache-name]] |
| 1397 | === \{cache-name\} |
| 1398 | The name of the cache. |
| 1399 | |
| 1400 | If the cache is defined by a plugin the cache name must include the |
| 1401 | plugin name: "<plugin-name>-<cache-name>". |
| 1402 | |
| 1403 | Gerrit core caches can optionally be prefixed with "gerrit": |
| 1404 | "gerrit-<cache-name>". |
| 1405 | |
Edwin Kempin | 32e3a52 | 2014-07-08 12:10:31 +0200 | [diff] [blame] | 1406 | [[task-id]] |
| 1407 | === \{task-id\} |
| 1408 | The ID of the task (hex string). |
| 1409 | |
Edwin Kempin | 57a4682 | 2014-05-23 10:24:41 +0200 | [diff] [blame] | 1410 | |
Dariusz Luksza | 589ba00aa | 2013-05-07 17:21:23 +0200 | [diff] [blame] | 1411 | [[json-entities]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1412 | == JSON Entities |
Dariusz Luksza | 589ba00aa | 2013-05-07 17:21:23 +0200 | [diff] [blame] | 1413 | |
Edwin Kempin | f0dacbd | 2017-08-30 16:17:17 +0200 | [diff] [blame] | 1414 | [[accounts-config-info]] |
| 1415 | === AccountsConfigInfo |
| 1416 | The `AccountsConfigInfo` entity contains information about Gerrit |
| 1417 | configuration from the link:config-gerrit.html#accounts[accounts] |
| 1418 | section. |
| 1419 | |
| 1420 | [options="header",cols="1,6"] |
| 1421 | |============================= |
Ben Rohlfs | 99f16a1 | 2020-02-11 19:44:17 +0100 | [diff] [blame] | 1422 | |Field Name |Description |
| 1423 | |`visibility` | |
Edwin Kempin | f0dacbd | 2017-08-30 16:17:17 +0200 | [diff] [blame] | 1424 | link:config-gerrit.html#accounts.visibility[Visibility setting for |
| 1425 | accounts]. |
Ben Rohlfs | 99f16a1 | 2020-02-11 19:44:17 +0100 | [diff] [blame] | 1426 | |`default_display_name`|The default strategy for choosing the display |
| 1427 | name in the UI, see also |
| 1428 | link:config-gerrit.html#accounts.defaultDisplayName[gerrit.config]. |
Edwin Kempin | f0dacbd | 2017-08-30 16:17:17 +0200 | [diff] [blame] | 1429 | |============================= |
Han-Wen Nienhuys | e04df7e | 2017-04-25 17:41:58 +0200 | [diff] [blame] | 1430 | |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 1431 | [[auth-info]] |
| 1432 | === AuthInfo |
| 1433 | The `AuthInfo` entity contains information about the authentication |
| 1434 | configuration of the Gerrit server. |
| 1435 | |
| 1436 | [options="header",cols="1,^1,5"] |
| 1437 | |========================================== |
| 1438 | |Field Name ||Description |
| 1439 | |`type` || |
| 1440 | The link:config-gerrit.html#auth.type[authentication type] that is |
| 1441 | configured on the server. Can be `OPENID`, `OPENID_SSO`, `OAUTH`, |
| 1442 | `HTTP`, `HTTP_LDAP`, `CLIENT_SSL_CERT_LDAP`, `LDAP`, `LDAP_BIND`, |
| 1443 | `CUSTOM_EXTENSION` or `DEVELOPMENT_BECOME_ANY_ACCOUNT`. |
| 1444 | |`use_contributor_agreements` |not set if `false`| |
| 1445 | Whether link:config-gerrit.html#auth.contributorAgreements[contributor |
| 1446 | agreements] are required. |
David Pursehouse | cc04673 | 2016-08-22 20:08:52 +0900 | [diff] [blame] | 1447 | |`contributor_agreements` |not set if `use_contributor_agreements` is `false`| |
| 1448 | List of contributor agreements as link:rest-api-accounts.html#contributor-agreement-info[ |
| 1449 | ContributorAgreementInfo] entities. |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 1450 | |`editable_account_fields` || |
| 1451 | List of account fields that are editable. Possible values are |
| 1452 | `FULL_NAME`, `USER_NAME` and `REGISTER_NEW_EMAIL`. |
Edwin Kempin | 5a8c9e9 | 2015-05-08 10:59:01 +0200 | [diff] [blame] | 1453 | |`login_url` |optional| |
| 1454 | The link:config-gerrit.html#auth.loginUrl[login URL]. Only set if |
| 1455 | link:config-gerrit.html#auth.type[authentication type] is `HTTP` or |
| 1456 | `HTTP_LDAP`. |
| 1457 | |`login_text` |optional| |
| 1458 | The link:config-gerrit.html#auth.loginText[login text]. Only set if |
| 1459 | link:config-gerrit.html#auth.type[authentication type] is `HTTP` or |
| 1460 | `HTTP_LDAP`. |
| 1461 | |`switch_account_url` |optional| |
| 1462 | The link:config-gerrit.html#auth.switchAccountUrl[URL to switch |
| 1463 | accounts]. |
| 1464 | |`register_url` |optional| |
| 1465 | The link:config-gerrit.html#auth.registerUrl[register URL]. Only set if |
| 1466 | link:config-gerrit.html#auth.type[authentication type] is `LDAP`, |
| 1467 | `LDAP_BIND` or `CUSTOM_EXTENSION`. |
| 1468 | |`register_text` |optional| |
| 1469 | The link:config-gerrit.html#auth.registerText[register text]. Only set |
| 1470 | if link:config-gerrit.html#auth.type[authentication type] is `LDAP`, |
| 1471 | `LDAP_BIND` or `CUSTOM_EXTENSION`. |
| 1472 | |`edit_full_name_url` |optional| |
| 1473 | The link:config-gerrit.html#auth.editFullNameUrl[URL to edit the full |
| 1474 | name]. Only set if link:config-gerrit.html#auth.type[authentication |
| 1475 | type] is `LDAP`, `LDAP_BIND` or `CUSTOM_EXTENSION`. |
| 1476 | |`http_password_url` |optional| |
| 1477 | The link:config-gerrit.html#auth.httpPasswordUrl[URL to obtain an HTTP |
| 1478 | password]. Only set if link:config-gerrit.html#auth.type[authentication |
| 1479 | type] is `CUSTOM_EXTENSION`. |
Hector Oswaldo Caballero | 2a9ad1f | 2016-09-15 18:24:42 -0400 | [diff] [blame] | 1480 | |`git_basic_auth_policy` |optional| |
| 1481 | The link:config-gerrit.html#auth.gitBasicAuthPolicy[policy] to authenticate |
| 1482 | Git over HTTP and REST API requests when |
Edwin Kempin | 02551c0 | 2019-12-31 11:08:38 +0100 | [diff] [blame] | 1483 | link:config-gerrit.html#auth.type[authentication type] is `LDAP`, |
| 1484 | `LDAP_BIND` or `OAUTH`. Can be `HTTP`, `LDAP`, `HTTP_LDAP` or `OAUTH`. |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 1485 | |========================================== |
| 1486 | |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 1487 | [[cache-info]] |
| 1488 | === CacheInfo |
| 1489 | The `CacheInfo` entity contains information about a cache. |
| 1490 | |
David Pursehouse | ae36719 | 2014-11-25 17:24:47 +0900 | [diff] [blame] | 1491 | [options="header",cols="1,^1,5"] |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 1492 | |================================== |
| 1493 | |Field Name ||Description |
| 1494 | |`name` | |
| 1495 | not set if returned in a map where the cache name is used as map key| |
| 1496 | The cache name. If the cache is defined by a plugin the cache name |
| 1497 | includes the plugin name: "<plugin-name>-<cache-name>". |
Edwin Kempin | f11eadc | 2014-06-24 15:23:52 +0200 | [diff] [blame] | 1498 | |`type` || |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 1499 | The type of the cache (`MEM`: in memory cache, `DISK`: disk cache). |
| 1500 | |`entries` || |
| 1501 | Information about the entries in the cache as a |
| 1502 | link:#entries-info[EntriesInfo] entity. |
| 1503 | |`average_get` |optional| |
| 1504 | The average duration of getting one entry from the cache. The value is |
| 1505 | returned with a standard time unit abbreviation (`ns`: nanoseconds, |
| 1506 | `us`: microseconds, `ms`: milliseconds, `s`: seconds). |
| 1507 | |`hit_ratio` || |
| 1508 | Information about the hit ratio as a link:#hit-ration-info[ |
| 1509 | HitRatioInfo] entity. |
| 1510 | |================================== |
| 1511 | |
Edwin Kempin | a428683 | 2014-05-28 14:17:22 +0200 | [diff] [blame] | 1512 | [[cache-operation-input]] |
| 1513 | === CacheOperationInput |
| 1514 | The `CacheOperationInput` entity contains information about an |
| 1515 | operation that should be executed on caches. |
| 1516 | |
David Pursehouse | ae36719 | 2014-11-25 17:24:47 +0900 | [diff] [blame] | 1517 | [options="header",cols="1,^1,5"] |
Edwin Kempin | a3c6d03 | 2014-05-28 14:46:44 +0200 | [diff] [blame] | 1518 | |================================== |
| 1519 | |Field Name ||Description |
| 1520 | |`operation` || |
Edwin Kempin | a428683 | 2014-05-28 14:17:22 +0200 | [diff] [blame] | 1521 | The cache operation that should be executed: |
| 1522 | |
| 1523 | `FLUSH_ALL`: Flushes all caches, except the `web_sessions` cache. |
Edwin Kempin | a3c6d03 | 2014-05-28 14:46:44 +0200 | [diff] [blame] | 1524 | |
| 1525 | `FLUSH`: Flushes the specified caches. |
| 1526 | |`caches` |optional| |
| 1527 | A list of cache names. This list defines the caches on which the |
| 1528 | specified operation should be executed. Whether this list must be |
| 1529 | specified depends on the operation being executed. |
| 1530 | |================================== |
Edwin Kempin | a428683 | 2014-05-28 14:17:22 +0200 | [diff] [blame] | 1531 | |
Edwin Kempin | 521c124 | 2015-01-23 12:44:44 +0100 | [diff] [blame] | 1532 | [[capability-info]] |
| 1533 | === CapabilityInfo |
| 1534 | The `CapabilityInfo` entity contains information about a capability. |
| 1535 | |
| 1536 | [options="header",cols="1,6"] |
| 1537 | |================================= |
| 1538 | |Field Name |Description |
| 1539 | |`id` |capability ID |
| 1540 | |`name` |capability name |
| 1541 | |================================= |
| 1542 | |
Edwin Kempin | 5057054 | 2015-05-08 15:31:56 +0200 | [diff] [blame] | 1543 | [[change-config-info]] |
| 1544 | === ChangeConfigInfo |
| 1545 | The `ChangeConfigInfo` entity contains information about Gerrit |
| 1546 | configuration from the link:config-gerrit.html#change[change] |
| 1547 | section. |
| 1548 | |
| 1549 | [options="header",cols="1,^1,5"] |
| 1550 | |============================= |
Stefan Beller | bf2767c | 2015-06-29 16:02:28 -0700 | [diff] [blame] | 1551 | |Field Name ||Description |
Gabor Somossy | b72d4c6 | 2015-10-20 23:40:07 +0100 | [diff] [blame] | 1552 | |`allow_blame` |not set if `false`| |
| 1553 | link:config-gerrit.html#change.allowBlame[Whether blame on side by side diff is |
| 1554 | allowed]. |
Stefan Beller | bf2767c | 2015-06-29 16:02:28 -0700 | [diff] [blame] | 1555 | |`large_change` || |
Edwin Kempin | 5057054 | 2015-05-08 15:31:56 +0200 | [diff] [blame] | 1556 | link:config-gerrit.html#change.largeChange[Number of changed lines from |
| 1557 | which on a change is considered as a large change]. |
Stefan Beller | bf2767c | 2015-06-29 16:02:28 -0700 | [diff] [blame] | 1558 | |`reply_label` || |
Edwin Kempin | 5057054 | 2015-05-08 15:31:56 +0200 | [diff] [blame] | 1559 | link:config-gerrit.html#change.replyTooltip[Label name for the reply |
| 1560 | button]. |
Stefan Beller | bf2767c | 2015-06-29 16:02:28 -0700 | [diff] [blame] | 1561 | |`reply_tooltip` || |
Edwin Kempin | 5057054 | 2015-05-08 15:31:56 +0200 | [diff] [blame] | 1562 | link:config-gerrit.html#change.replyTooltip[Tooltip for the reply |
| 1563 | button]. |
Stefan Beller | bf2767c | 2015-06-29 16:02:28 -0700 | [diff] [blame] | 1564 | |`update_delay` || |
Edwin Kempin | 5057054 | 2015-05-08 15:31:56 +0200 | [diff] [blame] | 1565 | link:config-gerrit.html#change.updateDelay[How often in seconds the web |
| 1566 | interface should poll for updates to the currently open change]. |
Edwin Kempin | 3450dde | 2019-08-23 10:36:57 +0200 | [diff] [blame] | 1567 | |`submit_whole_topic` |not set if `false`| |
Stefan Beller | bf2767c | 2015-06-29 16:02:28 -0700 | [diff] [blame] | 1568 | link:config-gerrit.html#change.submitWholeTopic[A configuration if |
| 1569 | the whole topic is submitted]. |
Changcheng Xiao | 1609535 | 2017-12-18 10:03:08 +0100 | [diff] [blame] | 1570 | |`disable_private_changes` |not set if `false`| |
| 1571 | Returns true if private changes are disabled. |
Patrick Hiesel | a4824db | 2019-12-20 10:55:26 +0100 | [diff] [blame] | 1572 | |`mergeability_computation_behavior` || |
| 1573 | Value of the link:config-gerrit.html#change.mergeabilityComputationBehavior[ |
Edwin Kempin | 181eed2 | 2019-08-23 10:27:39 +0200 | [diff] [blame] | 1574 | configuration parameter] that controls whether the mergeability bit in |
Patrick Hiesel | a4824db | 2019-12-20 10:55:26 +0100 | [diff] [blame] | 1575 | link:rest-api-changes.html#change-info[ChangeInfo] will never be set and if the |
| 1576 | bit is indexed. |
Ben Rohlfs | 2cc3354 | 2020-02-28 12:44:09 +0100 | [diff] [blame] | 1577 | |`enable_attention_set` |defaults to `false`| |
| 1578 | Returns true if attention set UI features are enabled. |
| 1579 | |`enable_assignee` |defaults to `true`| |
| 1580 | Returns true if assignee related UI features are enabled. |
Edwin Kempin | 5057054 | 2015-05-08 15:31:56 +0200 | [diff] [blame] | 1581 | |============================= |
| 1582 | |
Patrick Hiesel | bc3addc | 2019-12-02 17:23:24 +0100 | [diff] [blame] | 1583 | [[change-index-config-info]] |
| 1584 | === ChangeIndexConfigInfo |
| 1585 | The `ChangeIndexConfigInfo` entity contains information about Gerrit |
| 1586 | configuration from the link:config-gerrit.html#index.change[index.change] |
| 1587 | section. |
| 1588 | |
| 1589 | [options="header",cols="1,^1,5"] |
| 1590 | |============================= |
| 1591 | |Field Name ||Description |
| 1592 | |`index_mergeable` |not set if `false`| |
| 1593 | Value of the link:config-gerrit.html#index.change.indexMergeable[ |
| 1594 | configuration parameter] that controls whether the mergeability bit is |
| 1595 | indexed (hence queryable using `is:mergeable`). |
| 1596 | |============================= |
| 1597 | |
Edwin Kempin | 54fd1d3 | 2017-03-24 15:32:03 +0100 | [diff] [blame] | 1598 | [[check-account-external-ids-input]] |
| 1599 | === CheckAccountExternalIdsInput |
| 1600 | The `CheckAccountExternalIdsInput` entity contains input for the |
Edwin Kempin | e6bf324 | 2018-01-12 13:29:24 +0100 | [diff] [blame] | 1601 | account external ID consistency check. |
Edwin Kempin | 54fd1d3 | 2017-03-24 15:32:03 +0100 | [diff] [blame] | 1602 | |
| 1603 | Currently this entity contains no fields. |
| 1604 | |
| 1605 | [[check-account-external-ids-result-info]] |
| 1606 | === CheckAccountExternalIdsResultInfo |
| 1607 | The `CheckAccountExternalIdsResultInfo` entity contains the result of |
Edwin Kempin | e6bf324 | 2018-01-12 13:29:24 +0100 | [diff] [blame] | 1608 | running the account external ID consistency check. |
| 1609 | |
| 1610 | [options="header",cols="1,6"] |
| 1611 | |====================== |
| 1612 | |Field Name|Description |
| 1613 | |`problems`|A list of link:#consistency-problem-info[ |
| 1614 | ConsistencyProblemInfo] entities. |
| 1615 | |====================== |
| 1616 | |
| 1617 | [[check-accounts-input]] |
| 1618 | === CheckAccountsInput |
| 1619 | The `CheckAccountsInput` entity contains input for the account consistency |
| 1620 | check. |
| 1621 | |
| 1622 | Currently this entity contains no fields. |
| 1623 | |
| 1624 | [[check-accounts-result-info]] |
| 1625 | === CheckAccountsResultInfo |
| 1626 | The `CheckAccountsResultInfo` entity contains the result of running the |
| 1627 | account consistency check. |
| 1628 | |
| 1629 | [options="header",cols="1,6"] |
| 1630 | |====================== |
| 1631 | |Field Name|Description |
| 1632 | |`problems`|A list of link:#consistency-problem-info[ |
| 1633 | ConsistencyProblemInfo] entities. |
| 1634 | |====================== |
| 1635 | |
| 1636 | [[check-groups-input]] |
| 1637 | === CheckGroupsInput |
| 1638 | The `CheckGroupsInput` entity contains input for the group consistency |
| 1639 | check. |
| 1640 | |
| 1641 | Currently this entity contains no fields. |
| 1642 | |
| 1643 | [[check-groups-result-info]] |
| 1644 | === CheckGroupsResultInfo |
| 1645 | The `CheckGroupsResultInfo` entity contains the result of running the |
| 1646 | group consistency check. |
Edwin Kempin | 54fd1d3 | 2017-03-24 15:32:03 +0100 | [diff] [blame] | 1647 | |
| 1648 | [options="header",cols="1,6"] |
| 1649 | |====================== |
| 1650 | |Field Name|Description |
| 1651 | |`problems`|A list of link:#consistency-problem-info[ |
| 1652 | ConsistencyProblemInfo] entities. |
| 1653 | |====================== |
| 1654 | |
| 1655 | [[consistency-check-info]] |
| 1656 | === ConsistencyCheckInfo |
| 1657 | The `ConsistencyCheckInfo` entity contains the results of running |
| 1658 | consistency checks. |
| 1659 | |
| 1660 | [options="header",cols="1,^1,5"] |
| 1661 | |================================================ |
| 1662 | |Field Name ||Description |
Edwin Kempin | 6396d6d | 2017-05-30 10:41:28 +0200 | [diff] [blame] | 1663 | |`check_accounts_result` |optional| |
| 1664 | The result of running the account consistency check as a |
| 1665 | link:#check-accounts-result-info[CheckAccountsResultInfo] entity. |
Edwin Kempin | 54fd1d3 | 2017-03-24 15:32:03 +0100 | [diff] [blame] | 1666 | |`check_account_external_ids_result`|optional| |
| 1667 | The result of running the account external ID consistency check as a |
| 1668 | link:#check-account-external-ids-result-info[ |
| 1669 | CheckAccountExternalIdsResultInfo] entity. |
Edwin Kempin | e6bf324 | 2018-01-12 13:29:24 +0100 | [diff] [blame] | 1670 | |`check_groups_result` |optional| |
| 1671 | The result of running the group consistency check as a |
| 1672 | link:#check-groups-result-info[CheckGroupsResultInfo] entity. |
Edwin Kempin | 54fd1d3 | 2017-03-24 15:32:03 +0100 | [diff] [blame] | 1673 | |================================================ |
| 1674 | |
| 1675 | [[consistency-check-input]] |
| 1676 | === ConsistencyCheckInput |
| 1677 | The `ConsistencyCheckInput` entity contains information about which |
| 1678 | consistency checks should be run. |
| 1679 | |
| 1680 | [options="header",cols="1,^1,5"] |
| 1681 | |========================================= |
| 1682 | |Field Name ||Description |
Edwin Kempin | 6396d6d | 2017-05-30 10:41:28 +0200 | [diff] [blame] | 1683 | |`check_accounts` |optional| |
| 1684 | Input for the account consistency check as |
| 1685 | link:#check-accounts-input[CheckAccountsInput] entity. |
Edwin Kempin | 54fd1d3 | 2017-03-24 15:32:03 +0100 | [diff] [blame] | 1686 | |`check_account_external_ids`|optional| |
| 1687 | Input for the account external ID consistency check as |
| 1688 | link:#check-account-external-ids-input[CheckAccountExternalIdsInput] |
| 1689 | entity. |
Edwin Kempin | e6bf324 | 2018-01-12 13:29:24 +0100 | [diff] [blame] | 1690 | |`check_groups` |optional| |
| 1691 | Input for the group consistency check as link:#check-groups-input[ |
| 1692 | CheckGroupsInput] entity. |
Edwin Kempin | 54fd1d3 | 2017-03-24 15:32:03 +0100 | [diff] [blame] | 1693 | |========================================= |
| 1694 | |
| 1695 | [[consistency-problem-info]] |
| 1696 | === ConsistencyProblemInfo |
| 1697 | The `ConsistencyProblemInfo` entity contains information about a |
| 1698 | consistency problem. |
| 1699 | |
| 1700 | [options="header",cols="1,6"] |
| 1701 | |====================== |
| 1702 | |Field Name|Description |
| 1703 | |`status` |The status of the consistency problem. + |
| 1704 | Possible values are `ERROR` and `WARNING`. |
| 1705 | |`message` |Message describing the consistency problem. |
| 1706 | |====================== |
| 1707 | |
Sven Selberg | 1acfae5 | 2018-04-18 17:11:56 +0200 | [diff] [blame] | 1708 | [[config-update-info]] |
| 1709 | === ConfigUpdateInfo |
| 1710 | The entity describes the result of a reload of gerrit.config. |
| 1711 | |
| 1712 | If a changed config value is missing from the `applied` and the `rejected` |
| 1713 | lists there are no guarantees to whether they have or have not taken effect. |
| 1714 | |
| 1715 | [options="header",cols="1,6"] |
| 1716 | |====================== |
| 1717 | |Field Name|Description |
| 1718 | |`applied` |A list of link:#config-update-entry-info[ConfigUpdateEntryInfos] |
| 1719 | describing the applied configuration changes. + |
| 1720 | Every config value change representation present in this list is guaranteed to |
| 1721 | have taken effect. |
| 1722 | |`rejected` |A list of link:#config-update-entry-info[ConfigUpdateEntryInfos] |
| 1723 | describing the rejected configuration changes. + |
| 1724 | Every config value change representation present in this list is guaranteed not |
| 1725 | to have taken effect. |
| 1726 | |====================== |
| 1727 | |
| 1728 | [[config-update-entry-info]] |
| 1729 | === ConfigUpdateEntryInfo |
| 1730 | The entity describes an updated config value. |
| 1731 | |
| 1732 | [options="header",cols="1,6"] |
| 1733 | |====================== |
| 1734 | |Field Name|Description |
| 1735 | |`config_key` |The config key that contains the value. |
| 1736 | |`old_value` |The old config value. + |
| 1737 | Missing if value was not previously configured. |
| 1738 | |`new_value` |The new config value, picked up after reload. |
| 1739 | |====================== |
| 1740 | |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 1741 | [[download-info]] |
| 1742 | === DownloadInfo |
| 1743 | The `DownloadInfo` entity contains information about supported download |
| 1744 | options. |
| 1745 | |
| 1746 | [options="header",cols="1,6"] |
| 1747 | |======================= |
| 1748 | |Field Name |Description |
| 1749 | |`schemes` | |
Edwin Kempin | 132d28e | 2015-05-07 15:30:35 +0200 | [diff] [blame] | 1750 | The supported download schemes as a map which maps the scheme name to a |
| 1751 | of link:#download-scheme-info[DownloadSchemeInfo] entity. |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 1752 | |`archives` | |
Edwin Kempin | f5c8879 | 2015-05-20 09:20:30 +0200 | [diff] [blame] | 1753 | List of supported archive formats. Possible values are `tgz`, `tar`, |
| 1754 | `tbz2` and `txz`. |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 1755 | |======================= |
| 1756 | |
| 1757 | [[download-scheme-info]] |
| 1758 | === DownloadSchemeInfo |
| 1759 | The `DownloadSchemeInfo` entity contains information about a supported |
| 1760 | download scheme and its commands. |
| 1761 | |
| 1762 | [options="header",cols="1,^1,5"] |
| 1763 | |================================= |
| 1764 | |Field Name ||Description |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 1765 | |`url` || |
| 1766 | The URL of the download scheme, where '${project}' is used as |
| 1767 | placeholder for the project name. |
| 1768 | |`is_auth_required` |not set if `false`| |
| 1769 | Whether this download scheme requires authentication. |
| 1770 | |`is_auth_supported` |not set if `false`| |
| 1771 | Whether this download scheme supports authentication. |
| 1772 | |`commands` || |
Edwin Kempin | a9554a5 | 2015-05-07 15:19:54 +0200 | [diff] [blame] | 1773 | Download commands as a map which maps the command name to the download |
| 1774 | command. In the download command '${project}' is used as |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 1775 | placeholder for the project name, and '${ref}' is used as |
| 1776 | placeholder for the (change) ref. |
| 1777 | |
| 1778 | Empty, if accessed anonymously and the download scheme requires |
| 1779 | authentication. |
Edwin Kempin | eafde88 | 2015-05-11 15:40:44 +0200 | [diff] [blame] | 1780 | |`clone_commands` || |
| 1781 | Clone commands as a map which maps the command name to the clone |
| 1782 | command. In the clone command '${project}' is used as |
Edwin Kempin | 4bf36ef | 2015-06-23 09:44:19 +0200 | [diff] [blame] | 1783 | placeholder for the project name and '${project-base-name}' as name |
| 1784 | for the project base name (e.g. for a project 'foo/bar' '${project}' |
| 1785 | is a placeholder for 'foo/bar' and '${project-base-name}' is a |
| 1786 | placeholder for 'bar'). |
Edwin Kempin | eafde88 | 2015-05-11 15:40:44 +0200 | [diff] [blame] | 1787 | |
| 1788 | Empty, if accessed anonymously and the download scheme requires |
| 1789 | authentication. |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 1790 | |================================= |
| 1791 | |
Edwin Kempin | ed84657 | 2015-07-24 14:17:11 +0200 | [diff] [blame] | 1792 | [[email-confirmation-input]] |
| 1793 | === EmailConfirmationInput |
| 1794 | The `EmailConfirmationInput` entity contains information for confirming |
| 1795 | an email address. |
| 1796 | |
| 1797 | [options="header",cols="1,6"] |
| 1798 | |======================= |
| 1799 | |Field Name |Description |
| 1800 | |`token` | |
| 1801 | The token that was sent by mail to a newly registered email address. |
| 1802 | |======================= |
| 1803 | |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 1804 | [[entries-info]] |
| 1805 | === EntriesInfo |
| 1806 | The `EntriesInfo` entity contains information about the entries in a |
| 1807 | cache. |
| 1808 | |
David Pursehouse | ae36719 | 2014-11-25 17:24:47 +0900 | [diff] [blame] | 1809 | [options="header",cols="1,^1,5"] |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 1810 | |================================== |
| 1811 | |Field Name ||Description |
| 1812 | |`mem` |optional|Number of cache entries that are held in memory. |
| 1813 | |`disk` |optional|Number of cache entries on the disk. For non-disk |
| 1814 | caches this value is not set; for disk caches it is only set if there |
| 1815 | are entries in the cache. |
| 1816 | |`space` |optional| |
| 1817 | The space that is consumed by the cache on disk. The value is returned |
| 1818 | with a unit abbreviation (`k`: kilobytes, `m`: megabytes, |
| 1819 | `g`: gigabytes). Only set for disk caches. |
| 1820 | |================================== |
| 1821 | |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 1822 | [[gerrit-info]] |
| 1823 | === GerritInfo |
| 1824 | The `GerritInfo` entity contains information about Gerrit |
| 1825 | configuration from the link:config-gerrit.html#gerrit[gerrit] section. |
| 1826 | |
Edwin Kempin | 5057054 | 2015-05-08 15:31:56 +0200 | [diff] [blame] | 1827 | [options="header",cols="1,^1,5"] |
| 1828 | |================================= |
| 1829 | |Field Name ||Description |
| 1830 | |`all_projects_name` || |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 1831 | Name of the link:config-gerrit.html#gerrit.allProjects[root project]. |
Edwin Kempin | 5057054 | 2015-05-08 15:31:56 +0200 | [diff] [blame] | 1832 | |`all_users_name` || |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 1833 | Name of the link:config-gerrit.html#gerrit.allUsers[project in which |
| 1834 | meta data of all users is stored]. |
Yuxuan 'fishy' Wang | ed1596b | 2015-11-09 16:32:45 -0800 | [diff] [blame] | 1835 | |`doc_search` || |
| 1836 | Whether documentation search is available. |
Dave Borowitz | a5d3fec | 2015-07-09 14:24:02 -0700 | [diff] [blame] | 1837 | |`doc_url` |optional| |
| 1838 | Custom base URL where Gerrit server documentation is located. |
| 1839 | (Documentation may still be available at /Documentation relative to the |
| 1840 | Gerrit base path even if this value is unset.) |
Dave Borowitz | a17a984 | 2015-09-15 09:58:17 -0400 | [diff] [blame] | 1841 | |`edit_gpg_keys` |not set if `false`| |
| 1842 | Whether to enable the web UI for editing GPG keys. |
Edwin Kempin | 5057054 | 2015-05-08 15:31:56 +0200 | [diff] [blame] | 1843 | |`report_bug_url` |optional| |
| 1844 | link:config-gerrit.html#gerrit.reportBugUrl[URL to report bugs]. |
Edwin Kempin | 5057054 | 2015-05-08 15:31:56 +0200 | [diff] [blame] | 1845 | |================================= |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 1846 | |
Patrick Hiesel | bc3addc | 2019-12-02 17:23:24 +0100 | [diff] [blame] | 1847 | [[index-config-info]] |
| 1848 | === IndexConfigInfo |
| 1849 | The `IndexConfigInfo` entity contains information about Gerrit |
| 1850 | configuration from the link:config-gerrit.html#index[index] |
| 1851 | section. |
| 1852 | |
| 1853 | [options="header",cols="1,^1,5"] |
| 1854 | |============================= |
| 1855 | |Field Name ||Description |
| 1856 | |`change` || |
| 1857 | Information about the configuration from the |
| 1858 | link:config-gerrit.html#index.change[index.change] section as |
| 1859 | link:#index.change[ChangeIndexConfigInfo] entity. |
| 1860 | |============================= |
| 1861 | |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 1862 | [[hit-ration-info]] |
| 1863 | === HitRatioInfo |
| 1864 | The `HitRatioInfo` entity contains information about the hit ratio of a |
| 1865 | cache. |
| 1866 | |
David Pursehouse | ae36719 | 2014-11-25 17:24:47 +0900 | [diff] [blame] | 1867 | [options="header",cols="1,^1,5"] |
Edwin Kempin | 42c9cf6 | 2014-05-23 08:45:56 +0200 | [diff] [blame] | 1868 | |================================== |
| 1869 | |Field Name ||Description |
| 1870 | |`mem` || |
| 1871 | Hit ratio for cache entries that are held in memory (0 \<= value \<= 100). |
| 1872 | |`disk` |optional| |
| 1873 | Hit ratio for cache entries that are held on disk (0 \<= value \<= 100). |
| 1874 | Only set for disk caches. |
| 1875 | |================================== |
| 1876 | |
Saša Živkov | e922306 | 2019-09-05 10:31:41 +0200 | [diff] [blame] | 1877 | [[index-changes-input]] |
| 1878 | === IndexChangesInput |
| 1879 | The `IndexChangesInput` contains a list of numerical changes IDs to index. |
| 1880 | |
| 1881 | [options="header",cols="1,^2,4"] |
| 1882 | |================================ |
| 1883 | |Field Name ||Description |
| 1884 | |`changes` || |
| 1885 | List of link:rest-api-changes.html#change-id[change-ids] |
| 1886 | |================================ |
| 1887 | |
Edwin Kempin | d905e58 | 2014-05-28 16:54:36 +0200 | [diff] [blame] | 1888 | [[jvm-summary-info]] |
| 1889 | === JvmSummaryInfo |
| 1890 | The `JvmSummaryInfo` entity contains information about the JVM. |
| 1891 | |
David Pursehouse | ae36719 | 2014-11-25 17:24:47 +0900 | [diff] [blame] | 1892 | [options="header",cols="1,^1,5"] |
Edwin Kempin | d905e58 | 2014-05-28 16:54:36 +0200 | [diff] [blame] | 1893 | |======================================== |
| 1894 | |Field Name ||Description |
| 1895 | |`vm_vendor` ||The vendor of the virtual machine. |
| 1896 | |`vm_name` ||The name of the virtual machine. |
| 1897 | |`vm_version` ||The version of the virtual machine. |
| 1898 | |`os_name` ||The name of the operating system. |
| 1899 | |`os_version` ||The version of the operating system. |
| 1900 | |`os_arch` ||The architecture of the operating system. |
| 1901 | |`user` ||The user that is running Gerrit. |
| 1902 | |`host` |optional| |
| 1903 | The host on which Gerrit is running. |
| 1904 | |`current_working_directory`||The current working directory. |
| 1905 | |`site` ||The path to the review site. |
| 1906 | |======================================== |
| 1907 | |
| 1908 | [[mem-summary-info]] |
| 1909 | === MemSummaryInfo |
| 1910 | The `MemSummaryInfo` entity contains information about the current |
| 1911 | memory usage. |
| 1912 | |
David Pursehouse | ae36719 | 2014-11-25 17:24:47 +0900 | [diff] [blame] | 1913 | [options="header",cols="1,^1,5"] |
Edwin Kempin | d905e58 | 2014-05-28 16:54:36 +0200 | [diff] [blame] | 1914 | |============================ |
| 1915 | |Field Name ||Description |
| 1916 | |`total` || |
| 1917 | The total size of the memory. The value is returned with a unit |
| 1918 | abbreviation (`k`: kilobytes, `m`: megabytes, `g`: gigabytes). |
| 1919 | |`used` || |
| 1920 | The size of used memory. The value is returned with a unit abbreviation |
| 1921 | (`k`: kilobytes, `m`: megabytes, `g`: gigabytes). |
| 1922 | |`free` || |
| 1923 | The size of free memory. The value is returned with a unit abbreviation |
| 1924 | (`k`: kilobytes, `m`: megabytes, `g`: gigabytes). |
| 1925 | |`buffers` || |
| 1926 | The size of memory used for JGit buffers. The value is returned with a |
| 1927 | unit abbreviation (`k`: kilobytes, `m`: megabytes, `g`: gigabytes). |
| 1928 | |`max` || |
| 1929 | The maximal memory size. The value is returned with a unit abbreviation |
| 1930 | (`k`: kilobytes, `m`: megabytes, `g`: gigabytes). |
| 1931 | |`open_files` |optional| |
| 1932 | The number of open files. |
| 1933 | |============================ |
| 1934 | |
Edwin Kempin | 7754d0c | 2015-07-09 15:11:49 +0200 | [diff] [blame] | 1935 | [[plugin-config-info]] |
| 1936 | === PluginConfigInfo |
| 1937 | The `PluginConfigInfo` entity contains information about Gerrit |
| 1938 | extensions by plugins. |
| 1939 | |
| 1940 | [options="header",cols="1,^1,5"] |
| 1941 | |=========================== |
| 1942 | |Field Name ||Description |
| 1943 | |`has_avatars` |not set if `false`| |
| 1944 | Whether an avatar provider is registered. |
| 1945 | |=========================== |
| 1946 | |
Dave Borowitz | 5170e0f | 2015-06-18 21:05:29 -0400 | [diff] [blame] | 1947 | [[receive-info]] |
| 1948 | === ReceiveInfo |
| 1949 | The `ReceiveInfo` entity contains information about the configuration |
| 1950 | of git-receive-pack behavior on the server. |
| 1951 | |
| 1952 | [options="header",cols="1,^1,5"] |
| 1953 | |======================================= |
| 1954 | |Field Name ||Description |
| 1955 | |`enableSignedPush`|optional| |
| 1956 | Whether signed push validation support is enabled on the server; see the |
| 1957 | link:config-gerrit.html#receive.certNonceSeed[global configuration] for |
| 1958 | details. |
| 1959 | |======================================= |
| 1960 | |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 1961 | [[server-info]] |
| 1962 | === ServerInfo |
| 1963 | The `ServerInfo` entity contains information about the configuration of |
| 1964 | the Gerrit server. |
| 1965 | |
| 1966 | [options="header",cols="1,^1,5"] |
| 1967 | |======================================= |
| 1968 | |Field Name ||Description |
Edwin Kempin | f0dacbd | 2017-08-30 16:17:17 +0200 | [diff] [blame] | 1969 | |`accounts` || |
| 1970 | Information about the configuration from the |
| 1971 | link:config-gerrit.html#accounts[accounts] section as |
| 1972 | link:#accounts-config-info[AccountsConfigInfo] entity. |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 1973 | |`auth` || |
| 1974 | Information about the authentication configuration as |
| 1975 | link:#auth-info[AuthInfo] entity. |
Edwin Kempin | 5057054 | 2015-05-08 15:31:56 +0200 | [diff] [blame] | 1976 | |`change` || |
| 1977 | Information about the configuration from the |
| 1978 | link:config-gerrit.html#change[change] section as |
| 1979 | link:#change-config-info[ChangeConfigInfo] entity. |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 1980 | |`download` || |
| 1981 | Information about the configured download options as |
| 1982 | link:#download-info[DownloadInfo] entity. |
| 1983 | information about Gerrit |
| 1984 | |`gerrit` || |
| 1985 | Information about the configuration from the |
| 1986 | link:config-gerrit.html#gerrit[gerrit] section as link:#gerrit-info[ |
| 1987 | GerritInfo] entity. |
Patrick Hiesel | bc3addc | 2019-12-02 17:23:24 +0100 | [diff] [blame] | 1988 | |`index` || |
| 1989 | Information about the configuration from the |
| 1990 | link:config-gerrit.html#index[index] section as link:#index[ |
| 1991 | IndexConfigInfo] entity. |
Edwin Kempin | 7c04432 | 2016-06-21 07:29:43 +0200 | [diff] [blame] | 1992 | |`note_db_enabled` |not set if `false`| |
David Pursehouse | a61ee50 | 2016-09-06 16:27:09 +0900 | [diff] [blame] | 1993 | Whether the NoteDb storage backend is fully enabled. |
Dave Borowitz | 6b4ac16 | 2018-08-27 14:06:15 -0700 | [diff] [blame] | 1994 | |`plugin` || |
Edwin Kempin | 7754d0c | 2015-07-09 15:11:49 +0200 | [diff] [blame] | 1995 | Information about Gerrit extensions by plugins as |
| 1996 | link:#plugin-config-info[PluginConfigInfo] entity. |
Dave Borowitz | 5170e0f | 2015-06-18 21:05:29 -0400 | [diff] [blame] | 1997 | |`receive` |optional| |
| 1998 | Information about the receive-pack configuration as a |
| 1999 | link:#receive-info[ReceiveInfo] entity. |
Edwin Kempin | a3188e1 | 2015-05-12 13:34:42 +0200 | [diff] [blame] | 2000 | |`sshd` |optional| |
| 2001 | Information about the configuration from the |
| 2002 | link:config-gerrit.html#sshd[sshd] section as link:#sshd-info[SshdInfo] |
| 2003 | entity. Not set if SSHD is disabled. |
Edwin Kempin | 5057054 | 2015-05-08 15:31:56 +0200 | [diff] [blame] | 2004 | |`suggest` || |
| 2005 | Information about the configuration from the |
| 2006 | link:config-gerrit.html#suggest[suggest] section as link:#suggest-info[ |
| 2007 | SuggestInfo] entity. |
| 2008 | |`user` || |
| 2009 | Information about the configuration from the |
| 2010 | link:config-gerrit.html#user[user] section as link:#user-config-info[ |
| 2011 | UserConfigInfo] entity. |
Viktar Donich | 38252c5 | 2017-07-20 16:20:09 -0700 | [diff] [blame] | 2012 | |`default_theme` |optional| |
| 2013 | URL to a default PolyGerrit UI theme plugin, if available. |
| 2014 | Located in `/static/gerrit-theme.html` by default. |
Edwin Kempin | b8590bd | 2015-04-30 12:55:34 +0200 | [diff] [blame] | 2015 | |======================================= |
| 2016 | |
Edwin Kempin | a3188e1 | 2015-05-12 13:34:42 +0200 | [diff] [blame] | 2017 | [[sshd-info]] |
| 2018 | === SshdInfo |
| 2019 | The `SshdInfo` entity contains information about Gerrit |
| 2020 | configuration from the link:config-gerrit.html#sshd[sshd] |
| 2021 | section. |
| 2022 | |
| 2023 | This entity doesn't contain any data, but the presence of this (empty) |
| 2024 | entity in the link:#server-info[ServerInfo] entity means that SSHD is |
| 2025 | enabled on the server. |
| 2026 | |
Edwin Kempin | 5057054 | 2015-05-08 15:31:56 +0200 | [diff] [blame] | 2027 | [[suggest-info]] |
| 2028 | === SuggestInfo |
| 2029 | The `SuggestInfo` entity contains information about Gerrit |
| 2030 | configuration from the link:config-gerrit.html#suggest[suggest] |
| 2031 | section. |
| 2032 | |
| 2033 | [options="header",cols="1,6"] |
| 2034 | |======================= |
| 2035 | |Field Name |Description |
| 2036 | |`from` | |
| 2037 | The link:config-gerrit.html#suggest.from[number of characters] that a |
| 2038 | user must have typed before suggestions are provided. |
| 2039 | |======================= |
| 2040 | |
Edwin Kempin | d905e58 | 2014-05-28 16:54:36 +0200 | [diff] [blame] | 2041 | [[summary-info]] |
| 2042 | === SummaryInfo |
| 2043 | The `SummaryInfo` entity contains information about the current state |
| 2044 | of the server. |
| 2045 | |
David Pursehouse | ae36719 | 2014-11-25 17:24:47 +0900 | [diff] [blame] | 2046 | [options="header",cols="1,^1,5"] |
Edwin Kempin | d905e58 | 2014-05-28 16:54:36 +0200 | [diff] [blame] | 2047 | |============================ |
| 2048 | |Field Name ||Description |
| 2049 | |`task_summary` || |
| 2050 | Summary about current tasks as a link:#task-summary-info[ |
| 2051 | TaskSummaryInfo] entity. |
| 2052 | |`mem_summary` || |
| 2053 | Summary about current memory usage as a link:#mem-summary-info[ |
| 2054 | MemSummaryInfo] entity. |
| 2055 | |`thread_summary` || |
| 2056 | Summary about current threads as a link:#thread-summary-info[ |
| 2057 | ThreadSummaryInfo] entity. |
| 2058 | |`jvm_summary` |optional| |
| 2059 | Summary about the JVM link:#jvm-summary-info[JvmSummaryInfo] entity. |
| 2060 | Only set if the `jvm` option was set. |
| 2061 | |============================ |
| 2062 | |
Edwin Kempin | 49098b8 | 2014-06-10 22:55:13 +0200 | [diff] [blame] | 2063 | [[task-info]] |
| 2064 | === TaskInfo |
| 2065 | The `TaskInfo` entity contains information about a task in a background |
| 2066 | work queue. |
| 2067 | |
David Pursehouse | ae36719 | 2014-11-25 17:24:47 +0900 | [diff] [blame] | 2068 | [options="header",cols="1,^1,5"] |
Edwin Kempin | 49098b8 | 2014-06-10 22:55:13 +0200 | [diff] [blame] | 2069 | |==================================== |
| 2070 | |Field Name ||Description |
| 2071 | |`id` ||The ID of the task. |
| 2072 | |`state` || |
| 2073 | The state of the task, can be `DONE`, `CANCELLED`, `RUNNING`, `READY`, |
| 2074 | `SLEEPING` and `OTHER`. |
| 2075 | |`start_time` ||The start time of the task. |
| 2076 | |`delay` ||The remaining delay of the task. |
| 2077 | |`command` ||The command of the task. |
| 2078 | |`remote_name`|optional| |
| 2079 | The remote name. May only be set for tasks that are associated with a |
| 2080 | project. |
| 2081 | |`project` |optional|The project the task is associated with. |
| 2082 | |==================================== |
| 2083 | |
Edwin Kempin | d905e58 | 2014-05-28 16:54:36 +0200 | [diff] [blame] | 2084 | [[task-summary-info]] |
| 2085 | === TaskSummaryInfo |
| 2086 | The `TaskSummaryInfo` entity contains information about the current |
| 2087 | tasks. |
| 2088 | |
David Pursehouse | ae36719 | 2014-11-25 17:24:47 +0900 | [diff] [blame] | 2089 | [options="header",cols="1,^1,5"] |
Edwin Kempin | d905e58 | 2014-05-28 16:54:36 +0200 | [diff] [blame] | 2090 | |============================ |
| 2091 | |Field Name ||Description |
| 2092 | |`total` |optional| |
| 2093 | Total number of current tasks. |
| 2094 | |`running` |optional| |
| 2095 | Number of currently running tasks. |
| 2096 | |`ready` |optional| |
| 2097 | Number of currently ready tasks. |
| 2098 | |`sleeping` |optional| |
| 2099 | Number of currently sleeping tasks. |
| 2100 | |============================ |
| 2101 | |
| 2102 | [[thread-summary-info]] |
| 2103 | === ThreadSummaryInfo |
| 2104 | The `ThreadSummaryInfo` entity contains information about the current |
| 2105 | threads. |
| 2106 | |
David Pursehouse | ae36719 | 2014-11-25 17:24:47 +0900 | [diff] [blame] | 2107 | [options="header",cols="1,6"] |
Edwin Kempin | d905e58 | 2014-05-28 16:54:36 +0200 | [diff] [blame] | 2108 | |=========================== |
| 2109 | |Field Name |Description |
| 2110 | |`cpus` | |
| 2111 | The number of available processors. |
| 2112 | |`threads` | |
| 2113 | The total number of current threads. |
| 2114 | |`counts` | |
| 2115 | Detailed thread counts as a map that maps a thread kind to a map that |
| 2116 | maps a thread state to the thread count. The thread kinds group the |
David Pursehouse | e9ccf87 | 2017-02-24 12:39:36 +0900 | [diff] [blame] | 2117 | counts by threads that have the same name prefix (`H2`, `HTTP`, |
Edwin Kempin | d905e58 | 2014-05-28 16:54:36 +0200 | [diff] [blame] | 2118 | `IntraLineDiff`, `ReceiveCommits`, `SSH git-receive-pack`, |
| 2119 | `SSH git-upload-pack`, `SSH-Interactive-Worker`, `SSH-Stream-Worker`, |
David Pursehouse | e9ccf87 | 2017-02-24 12:39:36 +0900 | [diff] [blame] | 2120 | `SshCommandStart`, `sshd-SshServer`). The counts for other threads are |
| 2121 | available under the thread kind `Other`. Counts for the following thread |
| 2122 | states can be included: `NEW`, `RUNNABLE`, `BLOCKED`, `WAITING`, |
| 2123 | `TIMED_WAITING` and `TERMINATED`. |
Edwin Kempin | d905e58 | 2014-05-28 16:54:36 +0200 | [diff] [blame] | 2124 | |=========================== |
| 2125 | |
Dariusz Luksza | 589ba00aa | 2013-05-07 17:21:23 +0200 | [diff] [blame] | 2126 | [[top-menu-entry-info]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 2127 | === TopMenuEntryInfo |
Dariusz Luksza | 589ba00aa | 2013-05-07 17:21:23 +0200 | [diff] [blame] | 2128 | The `TopMenuEntryInfo` entity contains information about a top menu |
| 2129 | entry. |
| 2130 | |
David Pursehouse | ae36719 | 2014-11-25 17:24:47 +0900 | [diff] [blame] | 2131 | [options="header",cols="1,6"] |
Dariusz Luksza | 589ba00aa | 2013-05-07 17:21:23 +0200 | [diff] [blame] | 2132 | |================================= |
| 2133 | |Field Name |Description |
| 2134 | |`name` |Name of the top menu entry. |
| 2135 | |`items` |List of link:#top-menu-item-info[menu items]. |
| 2136 | |================================= |
| 2137 | |
| 2138 | [[top-menu-item-info]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 2139 | === TopMenuItemInfo |
Dariusz Luksza | 589ba00aa | 2013-05-07 17:21:23 +0200 | [diff] [blame] | 2140 | The `TopMenuItemInfo` entity contains information about a menu item in |
| 2141 | a top menu entry. |
| 2142 | |
David Pursehouse | ae36719 | 2014-11-25 17:24:47 +0900 | [diff] [blame] | 2143 | [options="header",cols="1,^1,5"] |
Edwin Kempin | 002c9cb | 2013-11-06 09:10:47 +0100 | [diff] [blame] | 2144 | |======================== |
| 2145 | |Field Name ||Description |
| 2146 | |`url` ||The URL of the menu item link. |
| 2147 | |`name` ||The name of the menu item. |
| 2148 | |`target` ||Target attribute of the menu item link. |
| 2149 | |`id` |optional|The `id` attribute of the menu item link. |
| 2150 | |======================== |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 2151 | |
Edwin Kempin | 5057054 | 2015-05-08 15:31:56 +0200 | [diff] [blame] | 2152 | [[user-config-info]] |
| 2153 | === UserConfigInfo |
| 2154 | The `UserConfigInfo` entity contains information about Gerrit |
| 2155 | configuration from the link:config-gerrit.html#user[user] section. |
| 2156 | |
| 2157 | [options="header",cols="1,6"] |
| 2158 | |==================================== |
| 2159 | |Field Name |Description |
| 2160 | |`anonymous_coward_name` | |
| 2161 | link:config-gerrit.html#user.anonymousCoward[Username] that is |
| 2162 | displayed in the Gerrit Web UI and in e-mail notifications if the full |
| 2163 | name of the user is not set. |
| 2164 | |==================================== |
| 2165 | |
| 2166 | |
David Ostrovsky | 28b8ea6 | 2013-06-09 02:16:57 +0200 | [diff] [blame] | 2167 | GERRIT |
| 2168 | ------ |
| 2169 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 2170 | |
| 2171 | SEARCHBOX |
| 2172 | --------- |