diff --git a/output/schema/schema.json b/output/schema/schema.json index 3bec95c7a4..5d027efe2d 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -7680,6 +7680,31 @@ } ] }, + { + "availability": { + "stack": { + "stability": "stable", + "visibility": "public" + } + }, + "description": "Gets a data stream's settings", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html", + "name": "indices.get_data_stream_settings", + "request": null, + "requestBodyRequired": false, + "response": null, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "GET" + ], + "path": "/_data_stream/{name}/_settings" + } + ] + }, { "availability": { "stack": { @@ -8266,6 +8291,31 @@ } ] }, + { + "availability": { + "stack": { + "stability": "stable", + "visibility": "public" + } + }, + "description": "Updates a data stream's settings", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html", + "name": "indices.put_data_stream_settings", + "request": null, + "requestBodyRequired": true, + "response": null, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "PUT" + ], + "path": "/_data_stream/{name}/_settings" + } + ] + }, { "availability": { "serverless": { diff --git a/specification/_json_spec/indices.get_data_stream_settings.json b/specification/_json_spec/indices.get_data_stream_settings.json new file mode 100644 index 0000000000..d9590196ff --- /dev/null +++ b/specification/_json_spec/indices.get_data_stream_settings.json @@ -0,0 +1,33 @@ +{ + "indices.get_data_stream_settings": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html", + "description": "Gets a data stream's settings" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_data_stream/{name}/_settings", + "methods": ["GET"], + "parts": { + "name": { + "type": "string", + "description": "Comma-separated list of data streams or data stream patterns" + } + } + } + ] + }, + "params": { + "master_timeout": { + "type": "time", + "description": "Period to wait for a connection to the master node" + } + } + } +} diff --git a/specification/_json_spec/indices.put_data_stream_settings.json b/specification/_json_spec/indices.put_data_stream_settings.json new file mode 100644 index 0000000000..2bc0c435b5 --- /dev/null +++ b/specification/_json_spec/indices.put_data_stream_settings.json @@ -0,0 +1,46 @@ +{ + "indices.put_data_stream_settings": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html", + "description": "Updates a data stream's settings" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_data_stream/{name}/_settings", + "methods": ["PUT"], + "parts": { + "name": { + "type": "string", + "description": "Comma-separated list of data streams or data stream patterns" + } + } + } + ] + }, + "params": { + "dry_run": { + "type": "boolean", + "description": "Whether this request should only be a dry run rather than actually applying settings", + "default": false + }, + "timeout": { + "type": "time", + "description": "Period to wait for a response" + }, + "master_timeout": { + "type": "time", + "description": "Period to wait for a connection to the master node" + } + }, + "body": { + "description": "The data stream settings to be updated", + "required": true + } + } +}