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 772f37a0edd20..416b6b99ee29d 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 @@ -74,6 +74,31 @@ "type": "time", "default": "30s", "description": "Timeout for waiting for new cluster state in case it is blocked" + }, + "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 09b00b16f8543..fcb8f57ec7ffc 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 7223824bacbd9..7f8067d574332 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 @@ -66,6 +66,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 d4714e43b3709..7752bf0e8534d 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 3826a391c9c30..4c1578ccb53ad 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 383a87b0ddb7b..ef696e2872fae 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 f4879529e9a96..39b4706f31987 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 @@ -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.ml_datafeeds.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.ml_datafeeds.json index 81081307c583e..31b4143deb175 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 @@ -74,6 +74,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 bdd09f850cb3c..c8a7b27791f47 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 @@ -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.pending_tasks.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.pending_tasks.json index a71738dfd5cdd..232e51bc1111d 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 @@ -67,6 +67,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 9a0a6bf684b3b..e667ff0496ae4 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 @@ -59,6 +59,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 66095ec223d14..5e8a677ab8cc4 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 @@ -55,6 +55,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 25128955f4c54..53823cb45312b 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 @@ -78,6 +78,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 2b49d54625957..6956e67866961 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 @@ -80,6 +80,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 3aef3ea4f4801..1056e991a8255 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 6d2d7e2faaa4a..0fc406f6a118a 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 @@ -66,6 +66,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 bb3a6ef335143..1ad27e83e6edf 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 @@ -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.transforms.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.transforms.json index 49dee56a0a481..225c0148bb043 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 @@ -82,6 +82,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" + ] } } }