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