diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 8d824047ec..8368f904e7 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -11357,6 +11357,9 @@ }, { "$ref": "#/components/parameters/indices.get_data_stream#include_defaults" + }, + { + "$ref": "#/components/parameters/indices.get_data_stream#master_timeout" } ], "responses": { @@ -11387,6 +11390,26 @@ "$ref": "#/components/schemas/_types:DataStreamName" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -11425,6 +11448,16 @@ }, "style": "simple" }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, { "in": "query", "name": "expand_wildcards", @@ -11812,6 +11845,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -13117,6 +13160,9 @@ }, { "$ref": "#/components/parameters/indices.get_data_stream#include_defaults" + }, + { + "$ref": "#/components/parameters/indices.get_data_stream#master_timeout" } ], "responses": { @@ -13710,6 +13756,26 @@ "$ref": "#/components/schemas/_types:IndexName" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -13906,6 +13972,16 @@ "$ref": "#/components/schemas/_types:IndexName" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -44479,6 +44555,16 @@ }, "style": "form" }, + "indices.get_data_stream#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "indices.get_field_mapping#fields": { "in": "path", "name": "fields", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 427e9be421..83b8b7bf17 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -6753,6 +6753,9 @@ }, { "$ref": "#/components/parameters/indices.get_data_stream#include_defaults" + }, + { + "$ref": "#/components/parameters/indices.get_data_stream#master_timeout" } ], "responses": { @@ -6783,6 +6786,26 @@ "$ref": "#/components/schemas/_types:DataStreamName" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -6821,6 +6844,16 @@ }, "style": "simple" }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, { "in": "query", "name": "expand_wildcards", @@ -7208,6 +7241,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -7811,6 +7854,9 @@ }, { "$ref": "#/components/parameters/indices.get_data_stream#include_defaults" + }, + { + "$ref": "#/components/parameters/indices.get_data_stream#master_timeout" } ], "responses": { @@ -8296,6 +8342,26 @@ "$ref": "#/components/schemas/_types:IndexName" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -24695,6 +24761,16 @@ }, "style": "form" }, + "indices.get_data_stream#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "indices.get_index_template#name": { "in": "path", "name": "name", diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 93000ecfb0..adfd44830a 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -20119,8 +20119,35 @@ } } ], - "query": [], - "specLocation": "indices/create_data_stream/IndicesCreateDataStreamRequest.ts#L23-L44" + "query": [ + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "indices/create_data_stream/IndicesCreateDataStreamRequest.ts#L24-L57" }, { "body": { @@ -20616,6 +20643,19 @@ } ], "query": [ + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, { "description": "Type of data stream that wildcard patterns can match. Supports comma-separated values,such as `open,hidden`.", "name": "expand_wildcards", @@ -20630,7 +20670,7 @@ } } ], - "specLocation": "indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts#L23-L45" + "specLocation": "indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts#L24-L51" }, { "body": { @@ -21520,9 +21560,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts#L23-L53" + "specLocation": "indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts#L24-L59" }, { "body": { @@ -21619,9 +21672,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "indices/get_data_stream/IndicesGetDataStreamRequest.ts#L23-L54" + "specLocation": "indices/get_data_stream/IndicesGetDataStreamRequest.ts#L24-L60" }, { "body": { @@ -22108,8 +22174,35 @@ } } ], - "query": [], - "specLocation": "indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts#L23-L45" + "query": [ + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts#L24-L58" }, { "body": { diff --git a/output/schema/schema.json b/output/schema/schema.json index d0bd4ccae3..16885ab164 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -123676,8 +123676,35 @@ } } ], - "query": [], - "specLocation": "indices/create_data_stream/IndicesCreateDataStreamRequest.ts#L23-L44" + "query": [ + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "indices/create_data_stream/IndicesCreateDataStreamRequest.ts#L24-L57" }, { "body": { @@ -124252,6 +124279,19 @@ } ], "query": [ + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, { "description": "Type of data stream that wildcard patterns can match. Supports comma-separated values,such as `open,hidden`.", "name": "expand_wildcards", @@ -124266,7 +124306,7 @@ } } ], - "specLocation": "indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts#L23-L45" + "specLocation": "indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts#L24-L51" }, { "body": { @@ -126544,9 +126584,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts#L23-L53" + "specLocation": "indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts#L24-L59" }, { "body": { @@ -126643,9 +126696,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "indices/get_data_stream/IndicesGetDataStreamRequest.ts#L23-L54" + "specLocation": "indices/get_data_stream/IndicesGetDataStreamRequest.ts#L24-L60" }, { "body": { @@ -127476,8 +127542,35 @@ } } ], - "query": [], - "specLocation": "indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts#L23-L45" + "query": [ + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts#L24-L58" }, { "body": { @@ -127811,8 +127904,22 @@ } } ], - "query": [], - "specLocation": "indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts#L23-L31" + "query": [ + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts#L24-L39" }, { "body": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 7d61dfa3c7..47f10776c6 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -11046,6 +11046,8 @@ export interface IndicesCreateResponse { export interface IndicesCreateDataStreamRequest extends RequestBase { name: DataStreamName + master_timeout?: Duration + timeout?: Duration } export type IndicesCreateDataStreamResponse = AcknowledgedResponseBase @@ -11103,6 +11105,7 @@ export type IndicesDeleteDataLifecycleResponse = AcknowledgedResponseBase export interface IndicesDeleteDataStreamRequest extends RequestBase { name: DataStreamNames + master_timeout?: Duration expand_wildcards?: ExpandWildcards } @@ -11330,6 +11333,7 @@ export interface IndicesGetDataLifecycleRequest extends RequestBase { name: DataStreamNames expand_wildcards?: ExpandWildcards include_defaults?: boolean + master_timeout?: Duration } export interface IndicesGetDataLifecycleResponse { @@ -11340,6 +11344,7 @@ export interface IndicesGetDataStreamRequest extends RequestBase { name?: DataStreamNames expand_wildcards?: ExpandWildcards include_defaults?: boolean + master_timeout?: Duration } export interface IndicesGetDataStreamResponse { @@ -11420,6 +11425,8 @@ export type IndicesGetTemplateResponse = Record export interface IndicesMigrateToDataStreamRequest extends RequestBase { name: IndexName + master_timeout?: Duration + timeout?: Duration } export type IndicesMigrateToDataStreamResponse = AcknowledgedResponseBase @@ -11459,6 +11466,7 @@ export interface IndicesOpenResponse { export interface IndicesPromoteDataStreamRequest extends RequestBase { name: IndexName + master_timeout?: Duration } export type IndicesPromoteDataStreamResponse = any diff --git a/specification/_json_spec/capabilities.json b/specification/_json_spec/capabilities.json index 0c6b81518d..0b22df0a75 100644 --- a/specification/_json_spec/capabilities.json +++ b/specification/_json_spec/capabilities.json @@ -35,6 +35,11 @@ "capabilities": { "type": "string", "description": "Comma-separated list of arbitrary API capabilities to check" + }, + "local_only": { + "type": "boolean", + "description": "True if only the node being called should be considered", + "visibility": "private" } } } diff --git a/specification/_json_spec/indices.create_data_stream.json b/specification/_json_spec/indices.create_data_stream.json index 4846d51165..e3d6b706e8 100644 --- a/specification/_json_spec/indices.create_data_stream.json +++ b/specification/_json_spec/indices.create_data_stream.json @@ -23,6 +23,15 @@ } ] }, - "params": {} + "params": { + "timeout": { + "type": "time", + "description": "Specify timeout for acknowledging the cluster state update" + }, + "master_timeout": { + "type": "time", + "description": "Specify timeout for connection to master" + } + } } } diff --git a/specification/_json_spec/indices.delete_data_stream.json b/specification/_json_spec/indices.delete_data_stream.json index 00fb99d919..163de3ecbd 100644 --- a/specification/_json_spec/indices.delete_data_stream.json +++ b/specification/_json_spec/indices.delete_data_stream.json @@ -29,6 +29,10 @@ "options": ["open", "closed", "hidden", "none", "all"], "default": "open", "description": "Whether wildcard expressions should get expanded to open or closed indices (default: open)" + }, + "master_timeout": { + "type": "time", + "description": "Specify timeout for connection to master" } } } diff --git a/specification/_json_spec/indices.get_data_lifecycle.json b/specification/_json_spec/indices.get_data_lifecycle.json index 4783815ce0..f356e91226 100644 --- a/specification/_json_spec/indices.get_data_lifecycle.json +++ b/specification/_json_spec/indices.get_data_lifecycle.json @@ -33,6 +33,10 @@ "include_defaults": { "type": "boolean", "description": "Return all relevant default configurations for the data stream (default: false)" + }, + "master_timeout": { + "type": "time", + "description": "Specify timeout for connection to master" } } } diff --git a/specification/_json_spec/indices.get_data_stream.json b/specification/_json_spec/indices.get_data_stream.json index 5e1ddf8805..fcd7ce6314 100644 --- a/specification/_json_spec/indices.get_data_stream.json +++ b/specification/_json_spec/indices.get_data_stream.json @@ -37,6 +37,10 @@ "include_defaults": { "type": "boolean", "description": "Return all relevant default configurations for the data stream (default: false)" + }, + "master_timeout": { + "type": "time", + "description": "Specify timeout for connection to master" } } } diff --git a/specification/_json_spec/indices.migrate_to_data_stream.json b/specification/_json_spec/indices.migrate_to_data_stream.json index 2dcdf5a6e7..9453dbed0f 100644 --- a/specification/_json_spec/indices.migrate_to_data_stream.json +++ b/specification/_json_spec/indices.migrate_to_data_stream.json @@ -23,6 +23,15 @@ } ] }, - "params": {} + "params": { + "timeout": { + "type": "time", + "description": "Specify timeout for acknowledging the cluster state update" + }, + "master_timeout": { + "type": "time", + "description": "Specify timeout for connection to master" + } + } } } diff --git a/specification/_json_spec/indices.promote_data_stream.json b/specification/_json_spec/indices.promote_data_stream.json index f1eb9419d3..9088d03dc3 100644 --- a/specification/_json_spec/indices.promote_data_stream.json +++ b/specification/_json_spec/indices.promote_data_stream.json @@ -23,6 +23,11 @@ } ] }, - "params": {} + "params": { + "master_timeout": { + "type": "time", + "description": "Specify timeout for connection to master" + } + } } } diff --git a/specification/indices/create_data_stream/IndicesCreateDataStreamRequest.ts b/specification/indices/create_data_stream/IndicesCreateDataStreamRequest.ts index 6ab2c43c20..c52129519a 100644 --- a/specification/indices/create_data_stream/IndicesCreateDataStreamRequest.ts +++ b/specification/indices/create_data_stream/IndicesCreateDataStreamRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { DataStreamName } from '@_types/common' +import { Duration } from '@_types/Time' /** * Create a data stream. @@ -41,4 +42,16 @@ export interface Request extends RequestBase { */ name: DataStreamName } + query_parameters: { + /** + * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + master_timeout?: Duration + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration + } } diff --git a/specification/indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts b/specification/indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts index 3c1c156446..af4af1dd1d 100644 --- a/specification/indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts +++ b/specification/indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { ExpandWildcards, DataStreamNames } from '@_types/common' +import { Duration } from '@_types/Time' /** * Delete data streams. @@ -36,6 +37,11 @@ export interface Request extends RequestBase { name: DataStreamNames } query_parameters: { + /** + * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + master_timeout?: Duration /** * Type of data stream that wildcard patterns can match. Supports comma-separated values,such as `open,hidden`. * @server_default open diff --git a/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts b/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts index ee207d440a..90707a0dfc 100644 --- a/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts +++ b/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { ExpandWildcards, DataStreamNames } from '@_types/common' +import { Duration } from '@_types/Time' /** * Get data stream lifecycles. @@ -49,5 +50,10 @@ export interface Request extends RequestBase { * @server_default false */ include_defaults?: boolean + /** + * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + master_timeout?: Duration } } diff --git a/specification/indices/get_data_stream/IndicesGetDataStreamRequest.ts b/specification/indices/get_data_stream/IndicesGetDataStreamRequest.ts index 0d1366c609..66d8eade5c 100644 --- a/specification/indices/get_data_stream/IndicesGetDataStreamRequest.ts +++ b/specification/indices/get_data_stream/IndicesGetDataStreamRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { ExpandWildcards, DataStreamNames } from '@_types/common' +import { Duration } from '@_types/Time' /** * Get data streams. @@ -50,5 +51,10 @@ export interface Request extends RequestBase { * @availability serverless stability=stable */ include_defaults?: boolean + /** + * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + master_timeout?: Duration } } diff --git a/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts b/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts index 40b79f86d0..b4e5b18105 100644 --- a/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts +++ b/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { IndexName } from '@_types/common' +import { Duration } from '@_types/Time' /** * Convert an index alias to a data stream. @@ -42,4 +43,16 @@ export interface Request extends RequestBase { /** Name of the index alias to convert to a data stream. */ name: IndexName } + query_parameters: { + /** + * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + master_timeout?: Duration + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration + } } diff --git a/specification/indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts b/specification/indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts index 10dcaf8bb2..a956954ed3 100644 --- a/specification/indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts +++ b/specification/indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { IndexName } from '@_types/common' +import { Duration } from '@_types/Time' /** * @rest_spec_name indices.promote_data_stream @@ -28,4 +29,11 @@ export interface Request extends RequestBase { path_parts: { name: IndexName } + query_parameters: { + /** + * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + master_timeout?: Duration + } }