diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 5cc901f667..da0132cf77 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -870,6 +870,9 @@ "parameters": [ { "$ref": "#/components/parameters/cat.allocation#bytes" + }, + { + "$ref": "#/components/parameters/cat.allocation#local" } ], "responses": { @@ -893,6 +896,9 @@ }, { "$ref": "#/components/parameters/cat.allocation#bytes" + }, + { + "$ref": "#/components/parameters/cat.allocation#local" } ], "responses": { @@ -910,6 +916,11 @@ "summary": "Get component templates", "description": "Returns information about component templates in a cluster.\nComponent templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.\n\nCAT APIs are only intended for human consumption using the command line or Kibana console.\nThey are not intended for use by applications. For application consumption, use the get component template API.", "operationId": "cat-component-templates", + "parameters": [ + { + "$ref": "#/components/parameters/cat.component_templates#local" + } + ], "responses": { "200": { "$ref": "#/components/responses/cat.component_templates#200" @@ -929,6 +940,9 @@ "parameters": [ { "$ref": "#/components/parameters/cat.component_templates#name" + }, + { + "$ref": "#/components/parameters/cat.component_templates#local" } ], "responses": { @@ -1176,6 +1190,18 @@ "summary": "Returns information about the master node, including the ID, bound IP address, and name", "description": "IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.", "operationId": "cat-master", + "parameters": [ + { + "in": "query", + "name": "local", + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -1477,6 +1503,18 @@ "summary": "Returns information about custom node attributes", "description": "IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.", "operationId": "cat-nodeattrs", + "parameters": [ + { + "in": "query", + "name": "local", + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -1566,6 +1604,18 @@ "summary": "Returns cluster-level changes that have not yet been executed", "description": "IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the pending cluster tasks API.", "operationId": "cat-pending-tasks", + "parameters": [ + { + "in": "query", + "name": "local", + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -1591,6 +1641,18 @@ "summary": "Returns a list of plugins running on each node of a cluster", "description": "IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.", "operationId": "cat-plugins", + "parameters": [ + { + "in": "query", + "name": "local", + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -1700,6 +1762,9 @@ "parameters": [ { "$ref": "#/components/parameters/cat.segments#bytes" + }, + { + "$ref": "#/components/parameters/cat.segments#local" } ], "responses": { @@ -1723,6 +1788,9 @@ }, { "$ref": "#/components/parameters/cat.segments#bytes" + }, + { + "$ref": "#/components/parameters/cat.segments#local" } ], "responses": { @@ -1902,6 +1970,11 @@ "summary": "Returns information about index templates in a cluster", "description": "You can use index templates to apply index settings and field mappings to new indices at creation.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index template API.", "operationId": "cat-templates", + "parameters": [ + { + "$ref": "#/components/parameters/cat.templates#local" + } + ], "responses": { "200": { "$ref": "#/components/responses/cat.templates#200" @@ -1921,6 +1994,9 @@ "parameters": [ { "$ref": "#/components/parameters/cat.templates#name" + }, + { + "$ref": "#/components/parameters/cat.templates#local" } ], "responses": { @@ -1942,6 +2018,9 @@ "parameters": [ { "$ref": "#/components/parameters/cat.thread_pool#time" + }, + { + "$ref": "#/components/parameters/cat.thread_pool#local" } ], "responses": { @@ -1965,6 +2044,9 @@ }, { "$ref": "#/components/parameters/cat.thread_pool#time" + }, + { + "$ref": "#/components/parameters/cat.thread_pool#local" } ], "responses": { @@ -92868,6 +92950,16 @@ }, "style": "form" }, + "cat.allocation#local": { + "in": "query", + "name": "local", + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, "cat.component_templates#name": { "in": "path", "name": "name", @@ -92879,6 +92971,16 @@ }, "style": "simple" }, + "cat.component_templates#local": { + "in": "query", + "name": "local", + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, "cat.count#index": { "in": "path", "name": "index", @@ -93298,6 +93400,16 @@ }, "style": "form" }, + "cat.segments#local": { + "in": "query", + "name": "local", + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, "cat.shards#index": { "in": "path", "name": "index", @@ -93351,6 +93463,16 @@ }, "style": "simple" }, + "cat.templates#local": { + "in": "query", + "name": "local", + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, "cat.thread_pool#thread_pool_patterns": { "in": "path", "name": "thread_pool_patterns", @@ -93372,6 +93494,16 @@ }, "style": "form" }, + "cat.thread_pool#local": { + "in": "query", + "name": "local", + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, "cat.transforms#transform_id": { "in": "path", "name": "transform_id", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 5402baf1ab..54609ae2db 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -707,6 +707,11 @@ "summary": "Get component templates", "description": "Returns information about component templates in a cluster.\nComponent templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.\n\nCAT APIs are only intended for human consumption using the command line or Kibana console.\nThey are not intended for use by applications. For application consumption, use the get component template API.", "operationId": "cat-component-templates", + "parameters": [ + { + "$ref": "#/components/parameters/cat.component_templates#local" + } + ], "responses": { "200": { "$ref": "#/components/responses/cat.component_templates#200" @@ -726,6 +731,9 @@ "parameters": [ { "$ref": "#/components/parameters/cat.component_templates#name" + }, + { + "$ref": "#/components/parameters/cat.component_templates#local" } ], "responses": { @@ -57213,6 +57221,16 @@ }, "style": "simple" }, + "cat.component_templates#local": { + "in": "query", + "name": "local", + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, "cat.count#index": { "in": "path", "name": "index", diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 77fc65024b..bc31d60965 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -11646,8 +11646,22 @@ } } ], - "query": [], - "specLocation": "cat/component_templates/CatComponentTemplatesRequest.ts#L22-L39" + "query": [ + { + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "name": "local", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "cat/component_templates/CatComponentTemplatesRequest.ts#L22-L49" }, { "body": { @@ -106914,19 +106928,6 @@ } } }, - { - "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", - "name": "local", - "required": false, - "serverDefault": false, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } - }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", @@ -106966,7 +106967,7 @@ } } ], - "specLocation": "_spec_utils/behaviors.ts#L86-L132" + "specLocation": "_spec_utils/behaviors.ts#L86-L124" }, { "kind": "interface", @@ -135701,7 +135702,7 @@ "namespace": "_spec_utils" }, "properties": [], - "specLocation": "_spec_utils/behaviors.ts#L134-L140" + "specLocation": "_spec_utils/behaviors.ts#L126-L132" }, { "attachedBehaviors": [ diff --git a/output/schema/schema.json b/output/schema/schema.json index 179effe8bd..a6e57cb842 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -90936,9 +90936,22 @@ "namespace": "_types" } } + }, + { + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "name": "local", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } } ], - "specLocation": "cat/allocation/CatAllocationRequest.ts#L23-L41" + "specLocation": "cat/allocation/CatAllocationRequest.ts#L23-L49" }, { "kind": "response", @@ -91082,8 +91095,22 @@ } } ], - "query": [], - "specLocation": "cat/component_templates/CatComponentTemplatesRequest.ts#L22-L39" + "query": [ + { + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "name": "local", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "cat/component_templates/CatComponentTemplatesRequest.ts#L22-L49" }, { "kind": "response", @@ -94126,8 +94153,22 @@ "namespace": "cat.master" }, "path": [], - "query": [], - "specLocation": "cat/master/CatMasterRequest.ts#L22-L31" + "query": [ + { + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "name": "local", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "cat/master/CatMasterRequest.ts#L22-L42" }, { "kind": "response", @@ -96471,8 +96512,22 @@ "namespace": "cat.nodeattrs" }, "path": [], - "query": [], - "specLocation": "cat/nodeattrs/CatNodeAttributesRequest.ts#L22-L31" + "query": [ + { + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "name": "local", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "cat/nodeattrs/CatNodeAttributesRequest.ts#L22-L42" }, { "kind": "response", @@ -98197,8 +98252,22 @@ "namespace": "cat.pending_tasks" }, "path": [], - "query": [], - "specLocation": "cat/pending_tasks/CatPendingTasksRequest.ts#L22-L31" + "query": [ + { + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "name": "local", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "cat/pending_tasks/CatPendingTasksRequest.ts#L22-L42" }, { "kind": "response", @@ -98339,8 +98408,22 @@ "namespace": "cat.plugins" }, "path": [], - "query": [], - "specLocation": "cat/plugins/CatPluginsRequest.ts#L22-L31" + "query": [ + { + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "name": "local", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "cat/plugins/CatPluginsRequest.ts#L22-L42" }, { "kind": "response", @@ -99012,9 +99095,22 @@ "namespace": "_types" } } + }, + { + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "name": "local", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } } ], - "specLocation": "cat/segments/CatSegmentsRequest.ts#L23-L49" + "specLocation": "cat/segments/CatSegmentsRequest.ts#L23-L57" }, { "kind": "response", @@ -101328,8 +101424,22 @@ } } ], - "query": [], - "specLocation": "cat/templates/CatTemplatesRequest.ts#L23-L41" + "query": [ + { + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "name": "local", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "cat/templates/CatTemplatesRequest.ts#L23-L51" }, { "kind": "response", @@ -101496,9 +101606,22 @@ "namespace": "_types" } } + }, + { + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "name": "local", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } } ], - "specLocation": "cat/thread_pool/CatThreadPoolRequest.ts#L24-L48" + "specLocation": "cat/thread_pool/CatThreadPoolRequest.ts#L24-L56" }, { "kind": "response", @@ -219822,19 +219945,6 @@ } } }, - { - "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", - "name": "local", - "required": false, - "serverDefault": false, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } - }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", @@ -219874,7 +219984,7 @@ } } ], - "specLocation": "_spec_utils/behaviors.ts#L86-L132" + "specLocation": "_spec_utils/behaviors.ts#L86-L124" }, { "kind": "interface", @@ -219890,7 +220000,7 @@ "namespace": "_spec_utils" }, "properties": [], - "specLocation": "_spec_utils/behaviors.ts#L134-L140" + "specLocation": "_spec_utils/behaviors.ts#L126-L132" } ] } \ No newline at end of file diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 6e576fdc5f..7582be8d50 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -121,7 +121,6 @@ "cat.allocation": { "request": [ "Request: missing json spec query parameter 'format'", - "Request: missing json spec query parameter 'local'", "Request: missing json spec query parameter 'master_timeout'", "Request: missing json spec query parameter 'h'", "Request: missing json spec query parameter 'help'", @@ -136,7 +135,6 @@ "cat.component_templates": { "request": [ "Request: missing json spec query parameter 'format'", - "Request: missing json spec query parameter 'local'", "Request: missing json spec query parameter 'master_timeout'", "Request: missing json spec query parameter 'h'", "Request: missing json spec query parameter 'help'", @@ -202,7 +200,6 @@ "cat.master": { "request": [ "Request: missing json spec query parameter 'format'", - "Request: missing json spec query parameter 'local'", "Request: missing json spec query parameter 'master_timeout'", "Request: missing json spec query parameter 'h'", "Request: missing json spec query parameter 'help'", @@ -260,7 +257,6 @@ "cat.nodeattrs": { "request": [ "Request: missing json spec query parameter 'format'", - "Request: missing json spec query parameter 'local'", "Request: missing json spec query parameter 'master_timeout'", "Request: missing json spec query parameter 'h'", "Request: missing json spec query parameter 'help'", @@ -286,7 +282,6 @@ "cat.pending_tasks": { "request": [ "Request: missing json spec query parameter 'format'", - "Request: missing json spec query parameter 'local'", "Request: missing json spec query parameter 'master_timeout'", "Request: missing json spec query parameter 'h'", "Request: missing json spec query parameter 'help'", @@ -300,7 +295,6 @@ "cat.plugins": { "request": [ "Request: missing json spec query parameter 'format'", - "Request: missing json spec query parameter 'local'", "Request: missing json spec query parameter 'master_timeout'", "Request: missing json spec query parameter 'h'", "Request: missing json spec query parameter 'help'", @@ -339,6 +333,7 @@ }, "cat.segments": { "request": [ + "Request: query parameter 'local' does not exist in the json spec", "Request: missing json spec query parameter 'format'", "Request: missing json spec query parameter 'h'", "Request: missing json spec query parameter 'help'", @@ -391,7 +386,6 @@ "cat.templates": { "request": [ "Request: missing json spec query parameter 'format'", - "Request: missing json spec query parameter 'local'", "Request: missing json spec query parameter 'master_timeout'", "Request: missing json spec query parameter 'h'", "Request: missing json spec query parameter 'help'", @@ -404,7 +398,6 @@ "cat.thread_pool": { "request": [ "Request: missing json spec query parameter 'format'", - "Request: missing json spec query parameter 'local'", "Request: missing json spec query parameter 'master_timeout'", "Request: missing json spec query parameter 'h'", "Request: missing json spec query parameter 'help'", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 3d3471dbc0..71da122a94 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -6981,6 +6981,7 @@ export interface CatAllocationAllocationRecord { export interface CatAllocationRequest extends CatCatRequestBase { node_id?: NodeIds bytes?: Bytes + local?: boolean } export type CatAllocationResponse = CatAllocationAllocationRecord[] @@ -6997,6 +6998,7 @@ export interface CatComponentTemplatesComponentTemplate { export interface CatComponentTemplatesRequest extends CatCatRequestBase { name?: string + local?: boolean } export type CatComponentTemplatesResponse = CatComponentTemplatesComponentTemplate[] @@ -7422,6 +7424,7 @@ export interface CatMasterMasterRecord { } export interface CatMasterRequest extends CatCatRequestBase { + local?: boolean } export type CatMasterResponse = CatMasterMasterRecord[] @@ -7789,6 +7792,7 @@ export interface CatNodeattrsNodeAttributesRecord { } export interface CatNodeattrsRequest extends CatCatRequestBase { + local?: boolean } export type CatNodeattrsResponse = CatNodeattrsNodeAttributesRecord[] @@ -8083,6 +8087,7 @@ export interface CatPendingTasksPendingTasksRecord { } export interface CatPendingTasksRequest extends CatCatRequestBase { + local?: boolean } export type CatPendingTasksResponse = CatPendingTasksPendingTasksRecord[] @@ -8102,6 +8107,7 @@ export interface CatPluginsPluginsRecord { } export interface CatPluginsRequest extends CatCatRequestBase { + local?: boolean } export type CatPluginsResponse = CatPluginsPluginsRecord[] @@ -8188,6 +8194,7 @@ export type CatRepositoriesResponse = CatRepositoriesRepositoriesRecord[] export interface CatSegmentsRequest extends CatCatRequestBase { index?: Indices bytes?: Bytes + local?: boolean } export type CatSegmentsResponse = CatSegmentsSegmentsRecord[] @@ -8543,6 +8550,7 @@ export interface CatTasksTasksRecord { export interface CatTemplatesRequest extends CatCatRequestBase { name?: Name + local?: boolean } export type CatTemplatesResponse = CatTemplatesTemplatesRecord[] @@ -8564,6 +8572,7 @@ export interface CatTemplatesTemplatesRecord { export interface CatThreadPoolRequest extends CatCatRequestBase { thread_pool_patterns?: Names time?: TimeUnit + local?: boolean } export type CatThreadPoolResponse = CatThreadPoolThreadPoolRecord[] @@ -21135,7 +21144,6 @@ export interface SpecUtilsCommonCatQueryParameters { format?: string h?: Names help?: boolean - local?: boolean master_timeout?: Duration s?: Names v?: boolean diff --git a/specification/_spec_utils/behaviors.ts b/specification/_spec_utils/behaviors.ts index dde3038c43..09cb376349 100644 --- a/specification/_spec_utils/behaviors.ts +++ b/specification/_spec_utils/behaviors.ts @@ -105,14 +105,6 @@ export interface CommonCatQueryParameters { * @server_default false */ help?: boolean - /** - * If `true`, the request computes the list of selected nodes from the - * local cluster state. If `false` the list of selected nodes are computed - * from the cluster state of the master node. In both cases the coordinating - * node will send requests for further information to each selected node. - * @server_default false - */ - local?: boolean /** * Period to wait for a connection to the master node. * @server_default 30s diff --git a/specification/cat/allocation/CatAllocationRequest.ts b/specification/cat/allocation/CatAllocationRequest.ts index a118a402fa..f29817b4d4 100644 --- a/specification/cat/allocation/CatAllocationRequest.ts +++ b/specification/cat/allocation/CatAllocationRequest.ts @@ -37,5 +37,13 @@ export interface Request extends CatRequestBase { query_parameters: { /** The unit used to display byte values. */ bytes?: Bytes + /** + * If `true`, the request computes the list of selected nodes from the + * local cluster state. If `false` the list of selected nodes are computed + * from the cluster state of the master node. In both cases the coordinating + * node will send requests for further information to each selected node. + * @server_default false + */ + local?: boolean } } diff --git a/specification/cat/component_templates/CatComponentTemplatesRequest.ts b/specification/cat/component_templates/CatComponentTemplatesRequest.ts index 080da43547..a5a4e0a2eb 100644 --- a/specification/cat/component_templates/CatComponentTemplatesRequest.ts +++ b/specification/cat/component_templates/CatComponentTemplatesRequest.ts @@ -36,4 +36,14 @@ export interface Request extends CatRequestBase { /** The name of the component template. Accepts wildcard expressions. If omitted, all component templates are returned. */ name?: string } + query_parameters: { + /** + * If `true`, the request computes the list of selected nodes from the + * local cluster state. If `false` the list of selected nodes are computed + * from the cluster state of the master node. In both cases the coordinating + * node will send requests for further information to each selected node. + * @server_default false + */ + local?: boolean + } } diff --git a/specification/cat/master/CatMasterRequest.ts b/specification/cat/master/CatMasterRequest.ts index 9085a4cc84..48e80f9455 100644 --- a/specification/cat/master/CatMasterRequest.ts +++ b/specification/cat/master/CatMasterRequest.ts @@ -28,4 +28,15 @@ import { CatRequestBase } from '@cat/_types/CatBase' * @doc_id cat-master * @cluster_privileges monitor */ -export interface Request extends CatRequestBase {} +export interface Request extends CatRequestBase { + query_parameters: { + /** + * If `true`, the request computes the list of selected nodes from the + * local cluster state. If `false` the list of selected nodes are computed + * from the cluster state of the master node. In both cases the coordinating + * node will send requests for further information to each selected node. + * @server_default false + */ + local?: boolean + } +} diff --git a/specification/cat/nodeattrs/CatNodeAttributesRequest.ts b/specification/cat/nodeattrs/CatNodeAttributesRequest.ts index b70d312752..9bae2d680f 100644 --- a/specification/cat/nodeattrs/CatNodeAttributesRequest.ts +++ b/specification/cat/nodeattrs/CatNodeAttributesRequest.ts @@ -28,4 +28,15 @@ import { CatRequestBase } from '@cat/_types/CatBase' * @doc_id cat-nodeattrs * @cluster_privileges monitor */ -export interface Request extends CatRequestBase {} +export interface Request extends CatRequestBase { + query_parameters: { + /** + * If `true`, the request computes the list of selected nodes from the + * local cluster state. If `false` the list of selected nodes are computed + * from the cluster state of the master node. In both cases the coordinating + * node will send requests for further information to each selected node. + * @server_default false + */ + local?: boolean + } +} diff --git a/specification/cat/pending_tasks/CatPendingTasksRequest.ts b/specification/cat/pending_tasks/CatPendingTasksRequest.ts index ee11e5c89b..0d316f233d 100644 --- a/specification/cat/pending_tasks/CatPendingTasksRequest.ts +++ b/specification/cat/pending_tasks/CatPendingTasksRequest.ts @@ -28,4 +28,15 @@ import { CatRequestBase } from '@cat/_types/CatBase' * @doc_id cat-pending-tasks * @cluster_privileges monitor */ -export interface Request extends CatRequestBase {} +export interface Request extends CatRequestBase { + query_parameters: { + /** + * If `true`, the request computes the list of selected nodes from the + * local cluster state. If `false` the list of selected nodes are computed + * from the cluster state of the master node. In both cases the coordinating + * node will send requests for further information to each selected node. + * @server_default false + */ + local?: boolean + } +} diff --git a/specification/cat/plugins/CatPluginsRequest.ts b/specification/cat/plugins/CatPluginsRequest.ts index 14da3e5bda..8a1c715d04 100644 --- a/specification/cat/plugins/CatPluginsRequest.ts +++ b/specification/cat/plugins/CatPluginsRequest.ts @@ -28,4 +28,15 @@ import { CatRequestBase } from '@cat/_types/CatBase' * @doc_id cat-plugins * @cluster_privileges monitor */ -export interface Request extends CatRequestBase {} +export interface Request extends CatRequestBase { + query_parameters: { + /** + * If `true`, the request computes the list of selected nodes from the + * local cluster state. If `false` the list of selected nodes are computed + * from the cluster state of the master node. In both cases the coordinating + * node will send requests for further information to each selected node. + * @server_default false + */ + local?: boolean + } +} diff --git a/specification/cat/segments/CatSegmentsRequest.ts b/specification/cat/segments/CatSegmentsRequest.ts index 57b07f8034..673b83f374 100644 --- a/specification/cat/segments/CatSegmentsRequest.ts +++ b/specification/cat/segments/CatSegmentsRequest.ts @@ -45,5 +45,13 @@ export interface Request extends CatRequestBase { * The unit used to display byte values. */ bytes?: Bytes + /** + * If `true`, the request computes the list of selected nodes from the + * local cluster state. If `false` the list of selected nodes are computed + * from the cluster state of the master node. In both cases the coordinating + * node will send requests for further information to each selected node. + * @server_default false + */ + local?: boolean } } diff --git a/specification/cat/templates/CatTemplatesRequest.ts b/specification/cat/templates/CatTemplatesRequest.ts index 14e3a4b365..00a18d6492 100644 --- a/specification/cat/templates/CatTemplatesRequest.ts +++ b/specification/cat/templates/CatTemplatesRequest.ts @@ -38,4 +38,14 @@ export interface Request extends CatRequestBase { */ name?: Name } + query_parameters: { + /** + * If `true`, the request computes the list of selected nodes from the + * local cluster state. If `false` the list of selected nodes are computed + * from the cluster state of the master node. In both cases the coordinating + * node will send requests for further information to each selected node. + * @server_default false + */ + local?: boolean + } } diff --git a/specification/cat/thread_pool/CatThreadPoolRequest.ts b/specification/cat/thread_pool/CatThreadPoolRequest.ts index 2cd1907531..b8046a83d4 100644 --- a/specification/cat/thread_pool/CatThreadPoolRequest.ts +++ b/specification/cat/thread_pool/CatThreadPoolRequest.ts @@ -44,5 +44,13 @@ export interface Request extends CatRequestBase { * The unit used to display time values. */ time?: TimeUnit + /** + * If `true`, the request computes the list of selected nodes from the + * local cluster state. If `false` the list of selected nodes are computed + * from the cluster state of the master node. In both cases the coordinating + * node will send requests for further information to each selected node. + * @server_default false + */ + local?: boolean } }