diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.aliases.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.aliases.json index a5efb37af40aa..b030e0c234545 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.aliases.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.aliases.json @@ -73,6 +73,31 @@ ], "default": "all", "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both." + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": [ + "b", + "kb", + "mb", + "gb", + "tb", + "pb" + ] + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": [ + "d", + "h", + "m", + "s", + "ms", + "micros", + "nanos" + ] } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.allocation.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.allocation.json index 6acb3fe9ca92f..46704979643df 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.allocation.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.allocation.json @@ -52,6 +52,19 @@ "pb" ] }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": [ + "d", + "h", + "m", + "s", + "ms", + "micros", + "nanos" + ] + }, "local": { "type": "boolean", "description": "Return local information, do not retrieve the state from master node (default: false)" diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.component_templates.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.component_templates.json index e4415cddf9868..2dad6584a6258 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.component_templates.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.component_templates.json @@ -65,6 +65,31 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": [ + "b", + "kb", + "mb", + "gb", + "tb", + "pb" + ] + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": [ + "d", + "h", + "m", + "s", + "ms", + "micros", + "nanos" + ] } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.count.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.count.json index 567e679861e1b..97d5fc34454c5 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.count.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.count.json @@ -57,6 +57,31 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": [ + "b", + "kb", + "mb", + "gb", + "tb", + "pb" + ] + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": [ + "d", + "h", + "m", + "s", + "ms", + "micros", + "nanos" + ] } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.fielddata.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.fielddata.json index 46e623a821a7c..b05e66365a355 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.fielddata.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.fielddata.json @@ -73,6 +73,19 @@ "fields": { "type": "list", "description": "A comma-separated list of fields to return in the output" + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": [ + "d", + "h", + "m", + "s", + "ms", + "micros", + "nanos" + ] } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.health.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.health.json index afac0fd8cf0d8..ef25e7c1c9b5b 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.health.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.health.json @@ -63,6 +63,18 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": [ + "b", + "kb", + "mb", + "gb", + "tb", + "pb" + ] } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.master.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.master.json index 9da84d92bea6c..a623db764279d 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.master.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.master.json @@ -53,6 +53,31 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": [ + "b", + "kb", + "mb", + "gb", + "tb", + "pb" + ] + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": [ + "d", + "h", + "m", + "s", + "ms", + "micros", + "nanos" + ] } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.ml_datafeeds.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.ml_datafeeds.json index d833768c5b1d9..d158d5cf1bb47 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.ml_datafeeds.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.ml_datafeeds.json @@ -75,6 +75,18 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": [ + "b", + "kb", + "mb", + "gb", + "tb", + "pb" + ] } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.nodeattrs.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.nodeattrs.json index cf0250fdd9e25..3423fd7854209 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.nodeattrs.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.nodeattrs.json @@ -53,6 +53,31 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": [ + "b", + "kb", + "mb", + "gb", + "tb", + "pb" + ] + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": [ + "d", + "h", + "m", + "s", + "ms", + "micros", + "nanos" + ] } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.pending_tasks.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.pending_tasks.json index 001bff6ada00c..6378dd90f62c2 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.pending_tasks.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.pending_tasks.json @@ -66,6 +66,18 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": [ + "b", + "kb", + "mb", + "gb", + "tb", + "pb" + ] } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.plugins.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.plugins.json index bc94ad7547b78..ae3ac46ec0dc5 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.plugins.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.plugins.json @@ -58,6 +58,31 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": [ + "b", + "kb", + "mb", + "gb", + "tb", + "pb" + ] + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": [ + "d", + "h", + "m", + "s", + "ms", + "micros", + "nanos" + ] } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.repositories.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.repositories.json index 5ae7037f78184..a45730f3c3aa1 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.repositories.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.repositories.json @@ -54,6 +54,31 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": [ + "b", + "kb", + "mb", + "gb", + "tb", + "pb" + ] + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": [ + "d", + "h", + "m", + "s", + "ms", + "micros", + "nanos" + ] } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.segments.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.segments.json index 6a146b4bfd02c..27f8e9535f0ab 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.segments.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.segments.json @@ -77,6 +77,19 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": [ + "d", + "h", + "m", + "s", + "ms", + "micros", + "nanos" + ] } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.snapshots.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.snapshots.json index a5f45ac28325e..0f6531091d572 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.snapshots.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.snapshots.json @@ -79,6 +79,18 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": [ + "b", + "kb", + "mb", + "gb", + "tb", + "pb" + ] } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.tasks.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.tasks.json index c93397a4ad2b6..9282488207bb7 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.tasks.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.tasks.json @@ -84,6 +84,18 @@ "type": "boolean", "default": false, "description": "If `true`, the request blocks until the task has completed." + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": [ + "b", + "kb", + "mb", + "gb", + "tb", + "pb" + ] } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.templates.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.templates.json index 178e9c8570730..a33664e53bb64 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.templates.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.templates.json @@ -65,6 +65,31 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": [ + "b", + "kb", + "mb", + "gb", + "tb", + "pb" + ] + }, + "time": { + "type": "enum", + "description": "The unit in which to display time values", + "options": [ + "d", + "h", + "m", + "s", + "ms", + "micros", + "nanos" + ] } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.thread_pool.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.thread_pool.json index fa2c89fb07124..169d59937ccef 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.thread_pool.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.thread_pool.json @@ -78,6 +78,18 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": [ + "b", + "kb", + "mb", + "gb", + "tb", + "pb" + ] } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.transforms.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.transforms.json index 5dac1eda56915..4cd1e9d9b4784 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.transforms.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.transforms.json @@ -85,6 +85,18 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "bytes": { + "type": "enum", + "description": "The unit in which to display byte values", + "options": [ + "b", + "kb", + "mb", + "gb", + "tb", + "pb" + ] } } }