diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 5d9b9cf445..720a14ea61 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -8330,6 +8330,70 @@ ] } }, + "/_create_from/{source}/{dest}": { + "put": { + "tags": [ + "migration" + ], + "summary": "Create an index from a source index", + "description": "Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values.", + "operationId": "indices-create-from", + "parameters": [ + { + "$ref": "#/components/parameters/indices.create_from-source" + }, + { + "$ref": "#/components/parameters/indices.create_from-dest" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/indices.create_from" + }, + "responses": { + "200": { + "$ref": "#/components/responses/indices.create_from-200" + } + }, + "x-state": "Technical preview", + "x-metaTags": [ + { + "content": "Elasticsearch", + "name": "product_name" + } + ] + }, + "post": { + "tags": [ + "migration" + ], + "summary": "Create an index from a source index", + "description": "Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values.", + "operationId": "indices-create-from-1", + "parameters": [ + { + "$ref": "#/components/parameters/indices.create_from-source" + }, + { + "$ref": "#/components/parameters/indices.create_from-dest" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/indices.create_from" + }, + "responses": { + "200": { + "$ref": "#/components/responses/indices.create_from-200" + } + }, + "x-state": "Technical preview", + "x-metaTags": [ + { + "content": "Elasticsearch", + "name": "product_name" + } + ] + } + }, "/{index}/_alias/{name}": { "get": { "tags": [ @@ -62882,6 +62946,32 @@ "type" ] }, + "indices.create_from.CreateFrom": { + "type": "object", + "properties": { + "mappings_override": { + "description": "Mappings overrides to be applied to the destination index (optional)", + "allOf": [ + { + "$ref": "#/components/schemas/_types.mapping.TypeMapping" + } + ] + }, + "settings_override": { + "description": "Settings overrides to be applied to the destination index (optional)", + "allOf": [ + { + "$ref": "#/components/schemas/indices._types.IndexSettings" + } + ] + }, + "remove_index_blocks": { + "description": "If index blocks should be removed when creating destination index (optional)", + "default": true, + "type": "boolean" + } + } + }, "_types.IndicesResponseBase": { "allOf": [ { @@ -81104,6 +81194,36 @@ } } }, + "indices.create_from-200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "acknowledged": { + "type": "boolean" + }, + "index": { + "allOf": [ + { + "$ref": "#/components/schemas/_types.IndexName" + } + ] + }, + "shards_acknowledged": { + "type": "boolean" + } + }, + "required": [ + "acknowledged", + "index", + "shards_acknowledged" + ] + } + } + } + }, "indices.delete_alias-200": { "description": "", "content": { @@ -84692,6 +84812,28 @@ }, "style": "form" }, + "indices.create_from-source": { + "in": "path", + "name": "source", + "description": "The source index or data stream name", + "required": true, + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types.IndexName" + }, + "style": "simple" + }, + "indices.create_from-dest": { + "in": "path", + "name": "dest", + "description": "The destination index or data stream name", + "required": true, + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types.IndexName" + }, + "style": "simple" + }, "indices.delete_alias-index": { "in": "path", "name": "index", @@ -88902,6 +89044,15 @@ } } }, + "indices.create_from": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/indices.create_from.CreateFrom" + } + } + } + }, "indices.put_alias": { "content": { "application/json": { diff --git a/output/schema/schema.json b/output/schema/schema.json index cddcc91637..164f7d7838 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -6922,7 +6922,7 @@ "availability": { "serverless": { "stability": "experimental", - "visibility": "private" + "visibility": "public" }, "stack": { "since": "8.18.0", diff --git a/specification/indices/create_from/MigrateCreateFromRequest.ts b/specification/indices/create_from/MigrateCreateFromRequest.ts index 1cf4700576..ab22059c21 100644 --- a/specification/indices/create_from/MigrateCreateFromRequest.ts +++ b/specification/indices/create_from/MigrateCreateFromRequest.ts @@ -28,7 +28,7 @@ import { IndexSettings } from '@indices/_types/IndexSettings' * Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. * @rest_spec_name indices.create_from * @availability stack since=8.18.0 stability=experimental - * @availability serverless stability=experimental visibility=private + * @availability serverless stability=experimental visibility=public * @doc_id migration-api-create-from * @doc_tag migration */