diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 4c6ffed9d7..c184942e2b 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -11457,6 +11457,41 @@ } } }, + "/_migration/reindex/{index}/_cancel": { + "post": { + "tags": [ + "migration" + ], + "summary": "This API cancels a migration reindex attempt for a data stream or index", + "operationId": "indices-cancel-migrate-reindex", + "parameters": [ + { + "in": "path", + "name": "index", + "description": "The index or data stream name", + "required": true, + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Indices" + }, + "style": "simple" + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/_types:AcknowledgedResponseBase" + } + } + } + } + }, + "x-state": "Technical preview" + } + }, "/_cache/clear": { "post": { "tags": [ @@ -12254,6 +12289,58 @@ "x-state": "Added in 7.9.0" } }, + "/_create_from/{source}/{dest}": { + "put": { + "tags": [ + "migration" + ], + "summary": "This API creates a destination from a source index", + "description": "It copies the mappings and settings from the source 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" + }, + "post": { + "tags": [ + "migration" + ], + "summary": "This API creates a destination from a source index", + "description": "It copies the mappings and settings from the source 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" + } + }, "/_data_stream/_stats": { "get": { "tags": [ @@ -14130,6 +14217,89 @@ } } }, + "/_migration/reindex/{index}/_status": { + "get": { + "tags": [ + "migration" + ], + "summary": "This API returns the status of a migration reindex attempt for a data stream or index", + "operationId": "indices-get-migrate-reindex-status", + "parameters": [ + { + "in": "path", + "name": "index", + "description": "The index or data stream name", + "required": true, + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Indices" + }, + "style": "simple" + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "start_time": { + "$ref": "#/components/schemas/_types:DateTime" + }, + "start_time_millis": { + "$ref": "#/components/schemas/_types:EpochTimeUnitMillis" + }, + "complete": { + "type": "boolean" + }, + "total_indices_in_data_stream": { + "type": "number" + }, + "total_indices_requiring_upgrade": { + "type": "number" + }, + "successes": { + "type": "number" + }, + "in_progress": { + "type": "array", + "items": { + "$ref": "#/components/schemas/indices.get_migrate_reindex_status:StatusInProgress" + } + }, + "pending": { + "type": "number" + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/indices.get_migrate_reindex_status:StatusError" + } + }, + "exception": { + "type": "string" + } + }, + "required": [ + "start_time_millis", + "complete", + "total_indices_in_data_stream", + "total_indices_requiring_upgrade", + "successes", + "in_progress", + "pending", + "errors" + ] + } + } + } + } + }, + "x-state": "Technical preview" + } + }, "/_settings": { "get": { "tags": [ @@ -14410,6 +14580,39 @@ } } }, + "/_migration/reindex": { + "post": { + "tags": [ + "migration" + ], + "summary": "\"This API reindexes all legacy backing indices for a data stream", + "description": "It does this in a persistent task. The persistent task id is returned immediately, and the reindexing work is completed in that task", + "operationId": "indices-migrate-reindex", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/indices.migrate_reindex:MigrateReindex" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/_types:AcknowledgedResponseBase" + } + } + } + } + }, + "x-state": "Technical preview" + } + }, "/_data_stream/_migrate/{name}": { "post": { "tags": [ @@ -17890,209 +18093,6 @@ "x-state": "Added in 1.3.0" } }, - "/_migration/reindex/{index}/_cancel": { - "post": { - "tags": [ - "migration" - ], - "summary": "This API cancels a migration reindex attempt for a data stream or index", - "operationId": "migrate-cancel-reindex", - "parameters": [ - { - "in": "path", - "name": "index", - "description": "The index or data stream name", - "required": true, - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Indices" - }, - "style": "simple" - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/_types:AcknowledgedResponseBase" - } - } - } - } - }, - "x-state": "Technical preview" - } - }, - "/_create_from/{source}/{dest}": { - "put": { - "tags": [ - "migration" - ], - "summary": "This API creates a destination from a source index", - "description": "It copies the mappings and settings from the source index while allowing request settings and mappings to override the source values.", - "operationId": "migrate-create-from", - "parameters": [ - { - "$ref": "#/components/parameters/migrate.create_from#source" - }, - { - "$ref": "#/components/parameters/migrate.create_from#dest" - } - ], - "requestBody": { - "$ref": "#/components/requestBodies/migrate.create_from" - }, - "responses": { - "200": { - "$ref": "#/components/responses/migrate.create_from#200" - } - }, - "x-state": "Technical preview" - }, - "post": { - "tags": [ - "migration" - ], - "summary": "This API creates a destination from a source index", - "description": "It copies the mappings and settings from the source index while allowing request settings and mappings to override the source values.", - "operationId": "migrate-create-from-1", - "parameters": [ - { - "$ref": "#/components/parameters/migrate.create_from#source" - }, - { - "$ref": "#/components/parameters/migrate.create_from#dest" - } - ], - "requestBody": { - "$ref": "#/components/requestBodies/migrate.create_from" - }, - "responses": { - "200": { - "$ref": "#/components/responses/migrate.create_from#200" - } - }, - "x-state": "Technical preview" - } - }, - "/_migration/reindex/{index}/_status": { - "get": { - "tags": [ - "migration" - ], - "summary": "This API returns the status of a migration reindex attempt for a data stream or index", - "operationId": "migrate-get-reindex-status", - "parameters": [ - { - "in": "path", - "name": "index", - "description": "The index or data stream name", - "required": true, - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Indices" - }, - "style": "simple" - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "start_time": { - "$ref": "#/components/schemas/_types:DateTime" - }, - "start_time_millis": { - "$ref": "#/components/schemas/_types:EpochTimeUnitMillis" - }, - "complete": { - "type": "boolean" - }, - "total_indices_in_data_stream": { - "type": "number" - }, - "total_indices_requiring_upgrade": { - "type": "number" - }, - "successes": { - "type": "number" - }, - "in_progress": { - "type": "array", - "items": { - "$ref": "#/components/schemas/migrate.get_reindex_status:StatusInProgress" - } - }, - "pending": { - "type": "number" - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/migrate.get_reindex_status:StatusError" - } - }, - "exception": { - "type": "string" - } - }, - "required": [ - "start_time_millis", - "complete", - "total_indices_in_data_stream", - "total_indices_requiring_upgrade", - "successes", - "in_progress", - "pending", - "errors" - ] - } - } - } - } - }, - "x-state": "Technical preview" - } - }, - "/_migration/reindex": { - "post": { - "tags": [ - "migration" - ], - "summary": "\"This API reindexes all legacy backing indices for a data stream", - "description": "It does this in a persistent task. The persistent task id is returned immediately, and the reindexing work is completed in that task", - "operationId": "migrate-reindex", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/migrate.reindex:MigrateReindex" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/_types:AcknowledgedResponseBase" - } - } - } - } - }, - "x-state": "Technical preview" - } - }, "/_migration/deprecations": { "get": { "tags": [ @@ -71070,6 +71070,21 @@ "failures" ] }, + "indices.create_from:CreateFrom": { + "type": "object", + "properties": { + "mappings_override": { + "$ref": "#/components/schemas/_types.mapping:TypeMapping" + }, + "settings_override": { + "$ref": "#/components/schemas/indices._types:IndexSettings" + }, + "remove_index_blocks": { + "description": "If index blocks should be removed when creating destination index (optional)", + "type": "boolean" + } + } + }, "indices.data_streams_stats:DataStreamsStatsItem": { "type": "object", "properties": { @@ -71546,6 +71561,40 @@ "mappings" ] }, + "indices.get_migrate_reindex_status:StatusInProgress": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "total_doc_count": { + "type": "number" + }, + "reindexed_doc_count": { + "type": "number" + } + }, + "required": [ + "index", + "total_doc_count", + "reindexed_doc_count" + ] + }, + "indices.get_migrate_reindex_status:StatusError": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "required": [ + "index", + "message" + ] + }, "indices._types:TemplateMapping": { "type": "object", "properties": { @@ -71585,6 +71634,38 @@ "settings" ] }, + "indices.migrate_reindex:MigrateReindex": { + "type": "object", + "properties": { + "mode": { + "$ref": "#/components/schemas/indices.migrate_reindex:ModeEnum" + }, + "source": { + "$ref": "#/components/schemas/indices.migrate_reindex:SourceIndex" + } + }, + "required": [ + "mode", + "source" + ] + }, + "indices.migrate_reindex:ModeEnum": { + "type": "string", + "enum": [ + "upgrade" + ] + }, + "indices.migrate_reindex:SourceIndex": { + "type": "object", + "properties": { + "index": { + "$ref": "#/components/schemas/_types:IndexName" + } + }, + "required": [ + "index" + ] + }, "indices.modify_data_stream:Action": { "type": "object", "properties": { @@ -76305,87 +76386,6 @@ "_index" ] }, - "migrate.create_from:CreateFrom": { - "type": "object", - "properties": { - "mappings_override": { - "$ref": "#/components/schemas/_types.mapping:TypeMapping" - }, - "settings_override": { - "$ref": "#/components/schemas/indices._types:IndexSettings" - }, - "remove_index_blocks": { - "description": "If index blocks should be removed when creating destination index (optional)", - "type": "boolean" - } - } - }, - "migrate.get_reindex_status:StatusInProgress": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "total_doc_count": { - "type": "number" - }, - "reindexed_doc_count": { - "type": "number" - } - }, - "required": [ - "index", - "total_doc_count", - "reindexed_doc_count" - ] - }, - "migrate.get_reindex_status:StatusError": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "index", - "message" - ] - }, - "migrate.reindex:MigrateReindex": { - "type": "object", - "properties": { - "mode": { - "$ref": "#/components/schemas/migrate.reindex:ModeEnum" - }, - "source": { - "$ref": "#/components/schemas/migrate.reindex:SourceIndex" - } - }, - "required": [ - "mode", - "source" - ] - }, - "migrate.reindex:ModeEnum": { - "type": "string", - "enum": [ - "upgrade" - ] - }, - "migrate.reindex:SourceIndex": { - "type": "object", - "properties": { - "index": { - "$ref": "#/components/schemas/_types:IndexName" - } - }, - "required": [ - "index" - ] - }, "migration.deprecations:Deprecation": { "type": "object", "properties": { @@ -94942,6 +94942,32 @@ } } }, + "indices.create_from#200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "acknowledged": { + "type": "boolean" + }, + "index": { + "$ref": "#/components/schemas/_types:IndexName" + }, + "shards_acknowledged": { + "type": "boolean" + } + }, + "required": [ + "acknowledged", + "index", + "shards_acknowledged" + ] + } + } + } + }, "indices.data_streams_stats#200": { "description": "", "content": { @@ -95696,32 +95722,6 @@ } } }, - "migrate.create_from#200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "acknowledged": { - "type": "boolean" - }, - "index": { - "$ref": "#/components/schemas/_types:IndexName" - }, - "shards_acknowledged": { - "type": "boolean" - } - }, - "required": [ - "acknowledged", - "index", - "shards_acknowledged" - ] - } - } - } - }, "migration.deprecations#200": { "description": "", "content": { @@ -101211,6 +101211,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.data_streams_stats#name": { "in": "path", "name": "name", @@ -103309,28 +103331,6 @@ }, "style": "form" }, - "migrate.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" - }, - "migrate.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" - }, "migration.deprecations#index": { "in": "path", "name": "index", @@ -108217,6 +108217,16 @@ } } }, + "indices.create_from": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/indices.create_from:CreateFrom" + } + } + }, + "required": true + }, "indices.put_alias": { "content": { "application/json": { @@ -108824,16 +108834,6 @@ }, "required": true }, - "migrate.create_from": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/migrate.create_from:CreateFrom" - } - } - }, - "required": true - }, "ml.delete_expired_data": { "content": { "application/json": { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index ab4d9a566a..d67cca74b5 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -95751,6 +95751,19 @@ "kind": "union_of" } }, + { + "kind": "enum", + "members": [ + { + "name": "upgrade" + } + ], + "name": { + "name": "ModeEnum", + "namespace": "indices.migrate_reindex" + }, + "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L51-L53" + }, { "kind": "enum", "members": [ @@ -96318,19 +96331,6 @@ }, "specLocation": "license/_types/License.ts#L23-L33" }, - { - "kind": "enum", - "members": [ - { - "name": "upgrade" - } - ], - "name": { - "name": "ModeEnum", - "namespace": "migrate.reindex" - }, - "specLocation": "migrate/reindex/MigrateReindexRequest.ts#L51-L53" - }, { "kind": "enum", "members": [ diff --git a/output/schema/schema.json b/output/schema/schema.json index 453581425e..4371b6c9df 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -6260,6 +6260,46 @@ } ] }, + { + "availability": { + "serverless": { + "stability": "experimental", + "visibility": "private" + }, + "stack": { + "since": "8.18.0", + "stability": "experimental" + } + }, + "description": "This API cancels a migration reindex attempt for a data stream or index", + "docId": "migrate", + "docTag": "migration", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/migrate-data-stream.html", + "name": "indices.cancel_migrate_reindex", + "request": { + "name": "Request", + "namespace": "indices.cancel_migrate_reindex" + }, + "requestBodyRequired": false, + "requestMediaType": [ + "application/json" + ], + "response": { + "name": "Response", + "namespace": "indices.cancel_migrate_reindex" + }, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "POST" + ], + "path": "/_migration/reindex/{index}/_cancel" + } + ] + }, { "availability": { "serverless": { @@ -6470,6 +6510,47 @@ } ] }, + { + "availability": { + "serverless": { + "stability": "experimental", + "visibility": "private" + }, + "stack": { + "since": "8.18.0", + "stability": "experimental" + } + }, + "description": "This API creates a destination from a source index. It copies the mappings and settings from the source index while allowing request settings and mappings to override the source values.", + "docId": "migrate", + "docTag": "migration", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/migrate-data-stream.html", + "name": "indices.create_from", + "request": { + "name": "Request", + "namespace": "indices.create_from" + }, + "requestBodyRequired": true, + "requestMediaType": [ + "application/json" + ], + "response": { + "name": "Response", + "namespace": "indices.create_from" + }, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "PUT", + "POST" + ], + "path": "/_create_from/{source}/{dest}" + } + ] + }, { "availability": { "serverless": { @@ -7508,6 +7589,46 @@ } ] }, + { + "availability": { + "serverless": { + "stability": "experimental", + "visibility": "private" + }, + "stack": { + "since": "8.18.0", + "stability": "experimental" + } + }, + "description": "This API returns the status of a migration reindex attempt for a data stream or index", + "docId": "migrate", + "docTag": "migration", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/migrate-data-stream.html", + "name": "indices.get_migrate_reindex_status", + "request": { + "name": "Request", + "namespace": "indices.get_migrate_reindex_status" + }, + "requestBodyRequired": false, + "requestMediaType": [ + "application/json" + ], + "response": { + "name": "Response", + "namespace": "indices.get_migrate_reindex_status" + }, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "GET" + ], + "path": "/_migration/reindex/{index}/_status" + } + ] + }, { "availability": { "serverless": { @@ -7610,6 +7731,42 @@ } ] }, + { + "availability": { + "stack": { + "since": "8.18.0", + "stability": "experimental" + } + }, + "description": "\"This API reindexes all legacy backing indices for a data stream. It does this in a persistent task. The persistent task id is returned immediately, and the reindexing work is completed in that task", + "docId": "migrate", + "docTag": "migration", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/migrate-data-stream.html", + "name": "indices.migrate_reindex", + "request": { + "name": "Request", + "namespace": "indices.migrate_reindex" + }, + "requestBodyRequired": true, + "requestMediaType": [ + "application/json" + ], + "response": { + "name": "Response", + "namespace": "indices.migrate_reindex" + }, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "POST" + ], + "path": "/_migration/reindex" + } + ] + }, { "availability": { "serverless": { @@ -10027,163 +10184,6 @@ } ] }, - { - "availability": { - "serverless": { - "stability": "experimental", - "visibility": "private" - }, - "stack": { - "since": "8.18.0", - "stability": "experimental" - } - }, - "description": "This API cancels a migration reindex attempt for a data stream or index", - "docId": "migrate", - "docTag": "migration", - "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/migrate-data-stream.html", - "name": "migrate.cancel_reindex", - "request": { - "name": "Request", - "namespace": "migrate.cancel_reindex" - }, - "requestBodyRequired": false, - "requestMediaType": [ - "application/json" - ], - "response": { - "name": "Response", - "namespace": "migrate.cancel_reindex" - }, - "responseMediaType": [ - "application/json" - ], - "urls": [ - { - "methods": [ - "POST" - ], - "path": "/_migration/reindex/{index}/_cancel" - } - ] - }, - { - "availability": { - "serverless": { - "stability": "experimental", - "visibility": "private" - }, - "stack": { - "since": "8.18.0", - "stability": "experimental" - } - }, - "description": "This API creates a destination from a source index. It copies the mappings and settings from the source index while allowing request settings and mappings to override the source values.", - "docId": "migrate", - "docTag": "migration", - "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/migrate-data-stream.html", - "name": "migrate.create_from", - "request": { - "name": "Request", - "namespace": "migrate.create_from" - }, - "requestBodyRequired": true, - "requestMediaType": [ - "application/json" - ], - "response": { - "name": "Response", - "namespace": "migrate.create_from" - }, - "responseMediaType": [ - "application/json" - ], - "urls": [ - { - "methods": [ - "PUT", - "POST" - ], - "path": "/_create_from/{source}/{dest}" - } - ] - }, - { - "availability": { - "serverless": { - "stability": "experimental", - "visibility": "private" - }, - "stack": { - "since": "8.18.0", - "stability": "experimental" - } - }, - "description": "This API returns the status of a migration reindex attempt for a data stream or index", - "docId": "migrate", - "docTag": "migration", - "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/migrate-data-stream.html", - "name": "migrate.get_reindex_status", - "request": { - "name": "Request", - "namespace": "migrate.get_reindex_status" - }, - "requestBodyRequired": false, - "requestMediaType": [ - "application/json" - ], - "response": { - "name": "Response", - "namespace": "migrate.get_reindex_status" - }, - "responseMediaType": [ - "application/json" - ], - "urls": [ - { - "methods": [ - "GET" - ], - "path": "/_migration/reindex/{index}/_status" - } - ] - }, - { - "availability": { - "stack": { - "since": "8.18.0", - "stability": "experimental" - } - }, - "description": "\"This API reindexes all legacy backing indices for a data stream. It does this in a persistent task. The persistent task id is returned immediately, and the reindexing work is completed in that task", - "docId": "migrate", - "docTag": "migration", - "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/migrate-data-stream.html", - "name": "migrate.reindex", - "request": { - "name": "Request", - "namespace": "migrate.reindex" - }, - "requestBodyRequired": true, - "requestMediaType": [ - "application/json" - ], - "response": { - "name": "Response", - "namespace": "migrate.reindex" - }, - "responseMediaType": [ - "application/json" - ], - "urls": [ - { - "methods": [ - "POST" - ], - "path": "/_migration/reindex" - } - ] - }, { "availability": { "stack": { @@ -131896,6 +131896,60 @@ ], "specLocation": "indices/analyze/types.ts#L71-L74" }, + { + "kind": "request", + "attachedBehaviors": [ + "CommonQueryParameters" + ], + "body": { + "kind": "no_body" + }, + "description": "This API cancels a migration reindex attempt for a data stream or index", + "inherits": { + "type": { + "name": "RequestBase", + "namespace": "_types" + } + }, + "name": { + "name": "Request", + "namespace": "indices.cancel_migrate_reindex" + }, + "path": [ + { + "description": "The index or data stream name", + "name": "index", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "Indices", + "namespace": "_types" + } + } + } + ], + "query": [], + "specLocation": "indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts#L23-L37" + }, + { + "kind": "response", + "body": { + "kind": "value", + "value": { + "kind": "instance_of", + "type": { + "name": "AcknowledgedResponseBase", + "namespace": "_types" + } + } + }, + "name": { + "name": "Response", + "namespace": "indices.cancel_migrate_reindex" + }, + "specLocation": "indices/cancel_migrate_reindex/MigrateCancelReindexResponse.ts#L22-L24" + }, { "kind": "request", "attachedBehaviors": [ @@ -132713,6 +132767,155 @@ }, "specLocation": "indices/create_data_stream/IndicesCreateDataStreamResponse.ts#L22-L24" }, + { + "kind": "interface", + "name": { + "name": "CreateFrom", + "namespace": "indices.create_from" + }, + "properties": [ + { + "description": "Mappings overrides to be applied to the destination index (optional)", + "name": "mappings_override", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "TypeMapping", + "namespace": "_types.mapping" + } + } + }, + { + "description": "Settings overrides to be applied to the destination index (optional)", + "name": "settings_override", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "IndexSettings", + "namespace": "indices._types" + } + } + }, + { + "description": "If index blocks should be removed when creating destination index (optional)", + "name": "remove_index_blocks", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "indices/create_from/MigrateCreateFromRequest.ts#L45-L59" + }, + { + "kind": "request", + "attachedBehaviors": [ + "CommonQueryParameters" + ], + "body": { + "kind": "value", + "codegenName": "create_from", + "value": { + "kind": "instance_of", + "type": { + "name": "CreateFrom", + "namespace": "indices.create_from" + } + } + }, + "description": "This API creates a destination from a source index. It copies the mappings and settings from the source index while allowing request settings and mappings to override the source values.", + "inherits": { + "type": { + "name": "RequestBase", + "namespace": "_types" + } + }, + "name": { + "name": "Request", + "namespace": "indices.create_from" + }, + "path": [ + { + "description": "The source index or data stream name", + "name": "source", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } + } + }, + { + "description": "The destination index or data stream name", + "name": "dest", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } + } + } + ], + "query": [], + "specLocation": "indices/create_from/MigrateCreateFromRequest.ts#L25-L43" + }, + { + "kind": "response", + "body": { + "kind": "properties", + "properties": [ + { + "name": "acknowledged", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "name": "index", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } + } + }, + { + "name": "shards_acknowledged", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + } + ] + }, + "name": { + "name": "Response", + "namespace": "indices.create_from" + }, + "specLocation": "indices/create_from/MigrateCreateFromResponse.ts#L22-L28" + }, { "kind": "interface", "name": { @@ -136365,6 +136568,255 @@ }, "specLocation": "indices/get_mapping/IndicesGetMappingResponse.ts#L24-L27" }, + { + "kind": "request", + "attachedBehaviors": [ + "CommonQueryParameters" + ], + "body": { + "kind": "no_body" + }, + "description": "This API returns the status of a migration reindex attempt for a data stream or index", + "inherits": { + "type": { + "name": "RequestBase", + "namespace": "_types" + } + }, + "name": { + "name": "Request", + "namespace": "indices.get_migrate_reindex_status" + }, + "path": [ + { + "description": "The index or data stream name", + "name": "index", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "Indices", + "namespace": "_types" + } + } + } + ], + "query": [], + "specLocation": "indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts#L23-L37" + }, + { + "kind": "response", + "body": { + "kind": "properties", + "properties": [ + { + "name": "start_time", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "DateTime", + "namespace": "_types" + } + } + }, + { + "name": "start_time_millis", + "required": true, + "type": { + "kind": "instance_of", + "generics": [ + { + "kind": "instance_of", + "type": { + "name": "UnitMillis", + "namespace": "_types" + } + } + ], + "type": { + "name": "EpochTime", + "namespace": "_types" + } + } + }, + { + "name": "complete", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "name": "total_indices_in_data_stream", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "total_indices_requiring_upgrade", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "successes", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "in_progress", + "required": true, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "StatusInProgress", + "namespace": "indices.get_migrate_reindex_status" + } + } + } + }, + { + "name": "pending", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "errors", + "required": true, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "StatusError", + "namespace": "indices.get_migrate_reindex_status" + } + } + } + }, + { + "name": "exception", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + ] + }, + "name": { + "name": "Response", + "namespace": "indices.get_migrate_reindex_status" + }, + "specLocation": "indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L23-L36" + }, + { + "kind": "interface", + "name": { + "name": "StatusError", + "namespace": "indices.get_migrate_reindex_status" + }, + "properties": [ + { + "name": "index", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "message", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L44-L47" + }, + { + "kind": "interface", + "name": { + "name": "StatusInProgress", + "namespace": "indices.get_migrate_reindex_status" + }, + "properties": [ + { + "name": "index", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "total_doc_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "reindexed_doc_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + } + ], + "specLocation": "indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L38-L42" + }, { "kind": "request", "attachedBehaviors": [ @@ -136639,6 +137091,123 @@ }, "specLocation": "indices/get_template/IndicesGetTemplateResponse.ts#L23-L26" }, + { + "kind": "interface", + "name": { + "name": "MigrateReindex", + "namespace": "indices.migrate_reindex" + }, + "properties": [ + { + "description": "Reindex mode. Currently only 'upgrade' is supported.", + "name": "mode", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "ModeEnum", + "namespace": "indices.migrate_reindex" + } + } + }, + { + "description": "The source index or data stream (only data streams are currently supported).", + "name": "source", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "SourceIndex", + "namespace": "indices.migrate_reindex" + } + } + } + ], + "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L36-L45" + }, + { + "kind": "enum", + "members": [ + { + "name": "upgrade" + } + ], + "name": { + "name": "ModeEnum", + "namespace": "indices.migrate_reindex" + }, + "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L51-L53" + }, + { + "kind": "request", + "attachedBehaviors": [ + "CommonQueryParameters" + ], + "body": { + "kind": "value", + "codegenName": "reindex", + "value": { + "kind": "instance_of", + "type": { + "name": "MigrateReindex", + "namespace": "indices.migrate_reindex" + } + } + }, + "description": "\"This API reindexes all legacy backing indices for a data stream. It does this in a persistent task. The persistent task id is returned immediately, and the reindexing work is completed in that task", + "inherits": { + "type": { + "name": "RequestBase", + "namespace": "_types" + } + }, + "name": { + "name": "Request", + "namespace": "indices.migrate_reindex" + }, + "path": [], + "query": [], + "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L23-L34" + }, + { + "kind": "response", + "body": { + "kind": "value", + "value": { + "kind": "instance_of", + "type": { + "name": "AcknowledgedResponseBase", + "namespace": "_types" + } + } + }, + "name": { + "name": "Response", + "namespace": "indices.migrate_reindex" + }, + "specLocation": "indices/migrate_reindex/MigrateReindexResponse.ts#L22-L24" + }, + { + "kind": "interface", + "name": { + "name": "SourceIndex", + "namespace": "indices.migrate_reindex" + }, + "properties": [ + { + "name": "index", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } + } + } + ], + "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L47-L49" + }, { "kind": "request", "attachedBehaviors": [ @@ -153971,575 +154540,6 @@ }, "specLocation": "logstash/put_pipeline/LogstashPutPipelineResponse.ts#L22-L24" }, - { - "kind": "request", - "attachedBehaviors": [ - "CommonQueryParameters" - ], - "body": { - "kind": "no_body" - }, - "description": "This API cancels a migration reindex attempt for a data stream or index", - "inherits": { - "type": { - "name": "RequestBase", - "namespace": "_types" - } - }, - "name": { - "name": "Request", - "namespace": "migrate.cancel_reindex" - }, - "path": [ - { - "description": "The index or data stream name", - "name": "index", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "Indices", - "namespace": "_types" - } - } - } - ], - "query": [], - "specLocation": "migrate/cancel_reindex/MigrateCancelReindexRequest.ts#L23-L37" - }, - { - "kind": "response", - "body": { - "kind": "value", - "value": { - "kind": "instance_of", - "type": { - "name": "AcknowledgedResponseBase", - "namespace": "_types" - } - } - }, - "name": { - "name": "Response", - "namespace": "migrate.cancel_reindex" - }, - "specLocation": "migrate/cancel_reindex/MigrateCancelReindexResponse.ts#L22-L24" - }, - { - "kind": "interface", - "name": { - "name": "CreateFrom", - "namespace": "migrate.create_from" - }, - "properties": [ - { - "description": "Mappings overrides to be applied to the destination index (optional)", - "name": "mappings_override", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "TypeMapping", - "namespace": "_types.mapping" - } - } - }, - { - "description": "Settings overrides to be applied to the destination index (optional)", - "name": "settings_override", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "IndexSettings", - "namespace": "indices._types" - } - } - }, - { - "description": "If index blocks should be removed when creating destination index (optional)", - "name": "remove_index_blocks", - "required": false, - "serverDefault": false, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } - } - ], - "specLocation": "migrate/create_from/MigrateCreateFromRequest.ts#L45-L59" - }, - { - "kind": "request", - "attachedBehaviors": [ - "CommonQueryParameters" - ], - "body": { - "kind": "value", - "codegenName": "create_from", - "value": { - "kind": "instance_of", - "type": { - "name": "CreateFrom", - "namespace": "migrate.create_from" - } - } - }, - "description": "This API creates a destination from a source index. It copies the mappings and settings from the source index while allowing request settings and mappings to override the source values.", - "inherits": { - "type": { - "name": "RequestBase", - "namespace": "_types" - } - }, - "name": { - "name": "Request", - "namespace": "migrate.create_from" - }, - "path": [ - { - "description": "The source index or data stream name", - "name": "source", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "IndexName", - "namespace": "_types" - } - } - }, - { - "description": "The destination index or data stream name", - "name": "dest", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "IndexName", - "namespace": "_types" - } - } - } - ], - "query": [], - "specLocation": "migrate/create_from/MigrateCreateFromRequest.ts#L25-L43" - }, - { - "kind": "response", - "body": { - "kind": "properties", - "properties": [ - { - "name": "acknowledged", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } - }, - { - "name": "index", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "IndexName", - "namespace": "_types" - } - } - }, - { - "name": "shards_acknowledged", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } - } - ] - }, - "name": { - "name": "Response", - "namespace": "migrate.create_from" - }, - "specLocation": "migrate/create_from/MigrateCreateFromResponse.ts#L22-L28" - }, - { - "kind": "request", - "attachedBehaviors": [ - "CommonQueryParameters" - ], - "body": { - "kind": "no_body" - }, - "description": "This API returns the status of a migration reindex attempt for a data stream or index", - "inherits": { - "type": { - "name": "RequestBase", - "namespace": "_types" - } - }, - "name": { - "name": "Request", - "namespace": "migrate.get_reindex_status" - }, - "path": [ - { - "description": "The index or data stream name", - "name": "index", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "Indices", - "namespace": "_types" - } - } - } - ], - "query": [], - "specLocation": "migrate/get_reindex_status/MigrateGetReindexStatusRequest.ts#L23-L37" - }, - { - "kind": "response", - "body": { - "kind": "properties", - "properties": [ - { - "name": "start_time", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "DateTime", - "namespace": "_types" - } - } - }, - { - "name": "start_time_millis", - "required": true, - "type": { - "kind": "instance_of", - "generics": [ - { - "kind": "instance_of", - "type": { - "name": "UnitMillis", - "namespace": "_types" - } - } - ], - "type": { - "name": "EpochTime", - "namespace": "_types" - } - } - }, - { - "name": "complete", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } - }, - { - "name": "total_indices_in_data_stream", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "integer", - "namespace": "_types" - } - } - }, - { - "name": "total_indices_requiring_upgrade", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "integer", - "namespace": "_types" - } - } - }, - { - "name": "successes", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "integer", - "namespace": "_types" - } - } - }, - { - "name": "in_progress", - "required": true, - "type": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "StatusInProgress", - "namespace": "migrate.get_reindex_status" - } - } - } - }, - { - "name": "pending", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "integer", - "namespace": "_types" - } - } - }, - { - "name": "errors", - "required": true, - "type": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "StatusError", - "namespace": "migrate.get_reindex_status" - } - } - } - }, - { - "name": "exception", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } - } - ] - }, - "name": { - "name": "Response", - "namespace": "migrate.get_reindex_status" - }, - "specLocation": "migrate/get_reindex_status/MigrateGetReindexStatusResponse.ts#L23-L36" - }, - { - "kind": "interface", - "name": { - "name": "StatusError", - "namespace": "migrate.get_reindex_status" - }, - "properties": [ - { - "name": "index", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } - }, - { - "name": "message", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } - } - ], - "specLocation": "migrate/get_reindex_status/MigrateGetReindexStatusResponse.ts#L44-L47" - }, - { - "kind": "interface", - "name": { - "name": "StatusInProgress", - "namespace": "migrate.get_reindex_status" - }, - "properties": [ - { - "name": "index", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } - }, - { - "name": "total_doc_count", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "long", - "namespace": "_types" - } - } - }, - { - "name": "reindexed_doc_count", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "long", - "namespace": "_types" - } - } - } - ], - "specLocation": "migrate/get_reindex_status/MigrateGetReindexStatusResponse.ts#L38-L42" - }, - { - "kind": "interface", - "name": { - "name": "MigrateReindex", - "namespace": "migrate.reindex" - }, - "properties": [ - { - "description": "Reindex mode. Currently only 'upgrade' is supported.", - "name": "mode", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "ModeEnum", - "namespace": "migrate.reindex" - } - } - }, - { - "description": "The source index or data stream (only data streams are currently supported).", - "name": "source", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "SourceIndex", - "namespace": "migrate.reindex" - } - } - } - ], - "specLocation": "migrate/reindex/MigrateReindexRequest.ts#L36-L45" - }, - { - "kind": "enum", - "members": [ - { - "name": "upgrade" - } - ], - "name": { - "name": "ModeEnum", - "namespace": "migrate.reindex" - }, - "specLocation": "migrate/reindex/MigrateReindexRequest.ts#L51-L53" - }, - { - "kind": "request", - "attachedBehaviors": [ - "CommonQueryParameters" - ], - "body": { - "kind": "value", - "codegenName": "reindex", - "value": { - "kind": "instance_of", - "type": { - "name": "MigrateReindex", - "namespace": "migrate.reindex" - } - } - }, - "description": "\"This API reindexes all legacy backing indices for a data stream. It does this in a persistent task. The persistent task id is returned immediately, and the reindexing work is completed in that task", - "inherits": { - "type": { - "name": "RequestBase", - "namespace": "_types" - } - }, - "name": { - "name": "Request", - "namespace": "migrate.reindex" - }, - "path": [], - "query": [], - "specLocation": "migrate/reindex/MigrateReindexRequest.ts#L23-L34" - }, - { - "kind": "response", - "body": { - "kind": "value", - "value": { - "kind": "instance_of", - "type": { - "name": "AcknowledgedResponseBase", - "namespace": "_types" - } - } - }, - "name": { - "name": "Response", - "namespace": "migrate.reindex" - }, - "specLocation": "migrate/reindex/MigrateReindexResponse.ts#L22-L24" - }, - { - "kind": "interface", - "name": { - "name": "SourceIndex", - "namespace": "migrate.reindex" - }, - "properties": [ - { - "name": "index", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "IndexName", - "namespace": "_types" - } - } - } - ], - "specLocation": "migrate/reindex/MigrateReindexRequest.ts#L47-L49" - }, { "kind": "interface", "name": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 30c8375e77..44342de0ae 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -11628,6 +11628,12 @@ export interface IndicesAnalyzeTokenDetail { tokens: IndicesAnalyzeExplainAnalyzeToken[] } +export interface IndicesCancelMigrateReindexRequest extends RequestBase { + index: Indices +} + +export type IndicesCancelMigrateReindexResponse = AcknowledgedResponseBase + export interface IndicesClearCacheRequest extends RequestBase { index?: Indices allow_no_indices?: boolean @@ -11710,6 +11716,24 @@ export interface IndicesCreateDataStreamRequest extends RequestBase { export type IndicesCreateDataStreamResponse = AcknowledgedResponseBase +export interface IndicesCreateFromCreateFrom { + mappings_override?: MappingTypeMapping + settings_override?: IndicesIndexSettings + remove_index_blocks?: boolean +} + +export interface IndicesCreateFromRequest extends RequestBase { + source: IndexName + dest: IndexName + body?: IndicesCreateFromCreateFrom +} + +export interface IndicesCreateFromResponse { + acknowledged: boolean + index: IndexName + shards_acknowledged: boolean +} + export interface IndicesDataStreamsStatsDataStreamsStatsItem { backing_indices: integer data_stream: Name @@ -12073,6 +12097,34 @@ export interface IndicesGetMappingRequest extends RequestBase { export type IndicesGetMappingResponse = Record +export interface IndicesGetMigrateReindexStatusRequest extends RequestBase { + index: Indices +} + +export interface IndicesGetMigrateReindexStatusResponse { + start_time?: DateTime + start_time_millis: EpochTime + complete: boolean + total_indices_in_data_stream: integer + total_indices_requiring_upgrade: integer + successes: integer + in_progress: IndicesGetMigrateReindexStatusStatusInProgress[] + pending: integer + errors: IndicesGetMigrateReindexStatusStatusError[] + exception?: string +} + +export interface IndicesGetMigrateReindexStatusStatusError { + index: string + message: string +} + +export interface IndicesGetMigrateReindexStatusStatusInProgress { + index: string + total_doc_count: long + reindexed_doc_count: long +} + export interface IndicesGetSettingsRequest extends RequestBase { index?: Indices name?: Names @@ -12096,6 +12148,23 @@ export interface IndicesGetTemplateRequest extends RequestBase { export type IndicesGetTemplateResponse = Record +export interface IndicesMigrateReindexMigrateReindex { + mode: IndicesMigrateReindexModeEnum + source: IndicesMigrateReindexSourceIndex +} + +export type IndicesMigrateReindexModeEnum = 'upgrade' + +export interface IndicesMigrateReindexRequest extends RequestBase { + body?: IndicesMigrateReindexMigrateReindex +} + +export type IndicesMigrateReindexResponse = AcknowledgedResponseBase + +export interface IndicesMigrateReindexSourceIndex { + index: IndexName +} + export interface IndicesMigrateToDataStreamRequest extends RequestBase { name: IndexName master_timeout?: Duration @@ -13882,75 +13951,6 @@ export interface LogstashPutPipelineRequest extends RequestBase { export type LogstashPutPipelineResponse = boolean -export interface MigrateCancelReindexRequest extends RequestBase { - index: Indices -} - -export type MigrateCancelReindexResponse = AcknowledgedResponseBase - -export interface MigrateCreateFromCreateFrom { - mappings_override?: MappingTypeMapping - settings_override?: IndicesIndexSettings - remove_index_blocks?: boolean -} - -export interface MigrateCreateFromRequest extends RequestBase { - source: IndexName - dest: IndexName - body?: MigrateCreateFromCreateFrom -} - -export interface MigrateCreateFromResponse { - acknowledged: boolean - index: IndexName - shards_acknowledged: boolean -} - -export interface MigrateGetReindexStatusRequest extends RequestBase { - index: Indices -} - -export interface MigrateGetReindexStatusResponse { - start_time?: DateTime - start_time_millis: EpochTime - complete: boolean - total_indices_in_data_stream: integer - total_indices_requiring_upgrade: integer - successes: integer - in_progress: MigrateGetReindexStatusStatusInProgress[] - pending: integer - errors: MigrateGetReindexStatusStatusError[] - exception?: string -} - -export interface MigrateGetReindexStatusStatusError { - index: string - message: string -} - -export interface MigrateGetReindexStatusStatusInProgress { - index: string - total_doc_count: long - reindexed_doc_count: long -} - -export interface MigrateReindexMigrateReindex { - mode: MigrateReindexModeEnum - source: MigrateReindexSourceIndex -} - -export type MigrateReindexModeEnum = 'upgrade' - -export interface MigrateReindexRequest extends RequestBase { - body?: MigrateReindexMigrateReindex -} - -export type MigrateReindexResponse = AcknowledgedResponseBase - -export interface MigrateReindexSourceIndex { - index: IndexName -} - export interface MigrationDeprecationsDeprecation { details?: string level: MigrationDeprecationsDeprecationLevel diff --git a/specification/_json_spec/migrate.cancel_reindex.json b/specification/_json_spec/indices.cancel_migrate_reindex.json similarity index 95% rename from specification/_json_spec/migrate.cancel_reindex.json rename to specification/_json_spec/indices.cancel_migrate_reindex.json index 660bd47272..9c333c2736 100644 --- a/specification/_json_spec/migrate.cancel_reindex.json +++ b/specification/_json_spec/indices.cancel_migrate_reindex.json @@ -1,5 +1,5 @@ { - "migrate.cancel_reindex": { + "indices.cancel_migrate_reindex": { "documentation": { "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html", "description": "This API returns the status of a migration reindex attempt for a data stream or index" diff --git a/specification/_json_spec/migrate.create_from.json b/specification/_json_spec/indices.create_from.json similarity index 97% rename from specification/_json_spec/migrate.create_from.json rename to specification/_json_spec/indices.create_from.json index e0d31a2e4c..76fb06d072 100644 --- a/specification/_json_spec/migrate.create_from.json +++ b/specification/_json_spec/indices.create_from.json @@ -1,5 +1,5 @@ { - "migrate.create_from": { + "indices.create_from": { "documentation": { "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html", "description": "This API creates a destination from a source index. It copies the mappings and settings from the source index while allowing request settings and mappings to override the source values." diff --git a/specification/_json_spec/migrate.get_reindex_status.json b/specification/_json_spec/indices.get_migrate_reindex_status.json similarity index 94% rename from specification/_json_spec/migrate.get_reindex_status.json rename to specification/_json_spec/indices.get_migrate_reindex_status.json index d5361ff1bb..309d44f137 100644 --- a/specification/_json_spec/migrate.get_reindex_status.json +++ b/specification/_json_spec/indices.get_migrate_reindex_status.json @@ -1,5 +1,5 @@ { - "migrate.get_reindex_status": { + "indices.get_migrate_reindex_status": { "documentation": { "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html", "description": "This API returns the status of a migration reindex attempt for a data stream or index" diff --git a/specification/_json_spec/migrate.reindex.json b/specification/_json_spec/indices.migrate_reindex.json similarity index 96% rename from specification/_json_spec/migrate.reindex.json rename to specification/_json_spec/indices.migrate_reindex.json index ae2e6a8f8a..1f69103497 100644 --- a/specification/_json_spec/migrate.reindex.json +++ b/specification/_json_spec/indices.migrate_reindex.json @@ -1,5 +1,5 @@ { - "migrate.reindex": { + "indices.migrate_reindex": { "documentation": { "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html", "description": "This API reindexes all legacy backing indices for a data stream. It does this in a persistent task. The persistent task id is returned immediately, and the reindexing work is completed in that task" diff --git a/specification/migrate/cancel_reindex/MigrateCancelReindexRequest.ts b/specification/indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts similarity index 96% rename from specification/migrate/cancel_reindex/MigrateCancelReindexRequest.ts rename to specification/indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts index a58b77ea9a..a10251e578 100644 --- a/specification/migrate/cancel_reindex/MigrateCancelReindexRequest.ts +++ b/specification/indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts @@ -23,7 +23,7 @@ import { Indices } from '@_types/common' /** * This API cancels a migration reindex attempt for a data stream or index * - * @rest_spec_name migrate.cancel_reindex + * @rest_spec_name indices.cancel_migrate_reindex * @availability stack since=8.18.0 stability=experimental * @availability serverless stability=experimental visibility=private * @doc_id migrate diff --git a/specification/migrate/cancel_reindex/MigrateCancelReindexResponse.ts b/specification/indices/cancel_migrate_reindex/MigrateCancelReindexResponse.ts similarity index 100% rename from specification/migrate/cancel_reindex/MigrateCancelReindexResponse.ts rename to specification/indices/cancel_migrate_reindex/MigrateCancelReindexResponse.ts diff --git a/specification/migrate/create_from/MigrateCreateFromRequest.ts b/specification/indices/create_from/MigrateCreateFromRequest.ts similarity index 98% rename from specification/migrate/create_from/MigrateCreateFromRequest.ts rename to specification/indices/create_from/MigrateCreateFromRequest.ts index 2c916ae2eb..1270e4fed7 100644 --- a/specification/migrate/create_from/MigrateCreateFromRequest.ts +++ b/specification/indices/create_from/MigrateCreateFromRequest.ts @@ -25,7 +25,7 @@ import { TypeMapping } from '@_types/mapping/TypeMapping' /** * This API creates a destination from a source index. It copies the mappings and settings from the source index while allowing request settings and mappings to override the source values. * - * @rest_spec_name migrate.create_from + * @rest_spec_name indices.create_from * @availability stack since=8.18.0 stability=experimental * @availability serverless stability=experimental visibility=private * @doc_id migrate diff --git a/specification/migrate/create_from/MigrateCreateFromResponse.ts b/specification/indices/create_from/MigrateCreateFromResponse.ts similarity index 100% rename from specification/migrate/create_from/MigrateCreateFromResponse.ts rename to specification/indices/create_from/MigrateCreateFromResponse.ts diff --git a/specification/migrate/get_reindex_status/MigrateGetReindexStatusRequest.ts b/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts similarity index 95% rename from specification/migrate/get_reindex_status/MigrateGetReindexStatusRequest.ts rename to specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts index b5396085f4..50ffca9646 100644 --- a/specification/migrate/get_reindex_status/MigrateGetReindexStatusRequest.ts +++ b/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts @@ -23,7 +23,7 @@ import { Indices } from '@_types/common' /** * This API returns the status of a migration reindex attempt for a data stream or index * - * @rest_spec_name migrate.get_reindex_status + * @rest_spec_name indices.get_migrate_reindex_status * @availability stack since=8.18.0 stability=experimental * @availability serverless stability=experimental visibility=private * @doc_id migrate diff --git a/specification/migrate/get_reindex_status/MigrateGetReindexStatusResponse.ts b/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts similarity index 100% rename from specification/migrate/get_reindex_status/MigrateGetReindexStatusResponse.ts rename to specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts diff --git a/specification/migrate/reindex/MigrateReindexRequest.ts b/specification/indices/migrate_reindex/MigrateReindexRequest.ts similarity index 97% rename from specification/migrate/reindex/MigrateReindexRequest.ts rename to specification/indices/migrate_reindex/MigrateReindexRequest.ts index f156a26ffd..7a711ab7af 100644 --- a/specification/migrate/reindex/MigrateReindexRequest.ts +++ b/specification/indices/migrate_reindex/MigrateReindexRequest.ts @@ -23,7 +23,7 @@ import { IndexName } from '@_types/common' /** * "This API reindexes all legacy backing indices for a data stream. It does this in a persistent task. The persistent task id is returned immediately, and the reindexing work is completed in that task * - * @rest_spec_name migrate.reindex + * @rest_spec_name indices.migrate_reindex * @availability stack since=8.18.0 stability=experimental * @doc_id migrate * @doc_tag migration diff --git a/specification/migrate/reindex/MigrateReindexResponse.ts b/specification/indices/migrate_reindex/MigrateReindexResponse.ts similarity index 100% rename from specification/migrate/reindex/MigrateReindexResponse.ts rename to specification/indices/migrate_reindex/MigrateReindexResponse.ts