From 631b2f45cf3a7be8fa2a2a6d156a3b1b491cee6a Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Tue, 4 Nov 2025 17:28:46 +0400 Subject: [PATCH] Fix migrate_reindex availabilities --- output/openapi/elasticsearch-openapi.json | 10 +- .../elasticsearch-serverless-openapi.json | 178 +++++++++++++++++- output/schema/schema.json | 18 +- .../MigrateCancelReindexRequest.ts | 4 +- .../create_from/MigrateCreateFromRequest.ts | 4 +- .../MigrateGetReindexStatusRequest.ts | 4 +- .../migrate_reindex/MigrateReindexRequest.ts | 2 +- 7 files changed, 197 insertions(+), 23 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 344955ce3c..b364c49cf7 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -14104,7 +14104,7 @@ } } }, - "x-state": "Technical preview; Added in 8.18.0", + "x-state": "Generally available; Added in 8.18.0", "x-metaTags": [ { "content": "Elasticsearch", @@ -15057,7 +15057,7 @@ "$ref": "#/components/responses/indices.create_from-200" } }, - "x-state": "Technical preview; Added in 8.18.0", + "x-state": "Generally available; Added in 8.18.0", "x-metaTags": [ { "content": "Elasticsearch", @@ -15088,7 +15088,7 @@ "$ref": "#/components/responses/indices.create_from-200" } }, - "x-state": "Technical preview; Added in 8.18.0", + "x-state": "Generally available; Added in 8.18.0", "x-metaTags": [ { "content": "Elasticsearch", @@ -18127,7 +18127,7 @@ } } }, - "x-state": "Technical preview; Added in 8.18.0", + "x-state": "Generally available; Added in 8.18.0", "x-metaTags": [ { "content": "Elasticsearch", @@ -18511,7 +18511,7 @@ } } }, - "x-state": "Technical preview; Added in 8.18.0", + "x-state": "Generally available; Added in 8.18.0", "x-metaTags": [ { "content": "Elasticsearch", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 68d188a72e..6ad0ba53d2 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -7641,6 +7641,48 @@ ] } }, + "/_migration/reindex/{index}/_cancel": { + "post": { + "tags": [ + "migration" + ], + "summary": "Cancel a migration reindex operation", + "description": "Cancel 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": "Generally available", + "x-metaTags": [ + { + "content": "Elasticsearch", + "name": "product_name" + } + ] + } + }, "/{index}": { "get": { "tags": [ @@ -8277,7 +8319,7 @@ "$ref": "#/components/responses/indices.create_from-200" } }, - "x-state": "Technical preview", + "x-state": "Generally available", "x-metaTags": [ { "content": "Elasticsearch", @@ -8308,7 +8350,7 @@ "$ref": "#/components/responses/indices.create_from-200" } }, - "x-state": "Technical preview", + "x-state": "Generally available", "x-metaTags": [ { "content": "Elasticsearch", @@ -10113,6 +10155,104 @@ ] } }, + "/_migration/reindex/{index}/_status": { + "get": { + "tags": [ + "migration" + ], + "summary": "Get the migration reindexing status", + "description": "Get 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": { + "allOf": [ + { + "$ref": "#/components/schemas/_types.DateTime" + } + ] + }, + "start_time_millis": { + "allOf": [ + { + "$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": "Generally available", + "x-metaTags": [ + { + "content": "Elasticsearch", + "name": "product_name" + } + ] + } + }, "/_settings": { "get": { "tags": [ @@ -64236,6 +64376,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.modify_data_stream.Action": { "type": "object", "properties": { diff --git a/output/schema/schema.json b/output/schema/schema.json index ee1b8bbfa8..a36efbcd1f 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -6695,12 +6695,12 @@ { "availability": { "serverless": { - "stability": "experimental", - "visibility": "private" + "stability": "stable", + "visibility": "public" }, "stack": { "since": "8.18.0", - "stability": "experimental" + "stability": "stable" } }, "description": "Cancel a migration reindex operation.\n\nCancel a migration reindex attempt for a data stream or index.", @@ -6953,12 +6953,12 @@ { "availability": { "serverless": { - "stability": "experimental", + "stability": "stable", "visibility": "public" }, "stack": { "since": "8.18.0", - "stability": "experimental" + "stability": "stable" } }, "description": "Create an index from a source index.\n\nCopy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values.", @@ -8316,12 +8316,12 @@ { "availability": { "serverless": { - "stability": "experimental", - "visibility": "private" + "stability": "stable", + "visibility": "public" }, "stack": { "since": "8.18.0", - "stability": "experimental" + "stability": "stable" } }, "description": "Get the migration reindexing status.\n\nGet the status of a migration reindex attempt for a data stream or index.", @@ -8571,7 +8571,7 @@ "availability": { "stack": { "since": "8.18.0", - "stability": "experimental" + "stability": "stable" } }, "description": "Reindex legacy backing indices.\n\nReindex all legacy backing indices for a data stream.\nThis operation occurs in a persistent task.\nThe persistent task ID is returned immediately and the reindexing work is completed in that task.", diff --git a/specification/indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts b/specification/indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts index 3f9a478c8c..7a1f17dcf8 100644 --- a/specification/indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts +++ b/specification/indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts @@ -25,8 +25,8 @@ import { Indices } from '@_types/common' * * Cancel a migration reindex attempt for a data stream or index. * @rest_spec_name indices.cancel_migrate_reindex - * @availability stack since=8.18.0 stability=experimental - * @availability serverless stability=experimental visibility=private + * @availability stack since=8.18.0 stability=stable + * @availability serverless stability=stable visibility=public * @doc_id migration-api-cancel * @doc_tag migration */ diff --git a/specification/indices/create_from/MigrateCreateFromRequest.ts b/specification/indices/create_from/MigrateCreateFromRequest.ts index ab22059c21..27a46ab5b3 100644 --- a/specification/indices/create_from/MigrateCreateFromRequest.ts +++ b/specification/indices/create_from/MigrateCreateFromRequest.ts @@ -27,8 +27,8 @@ 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=public + * @availability stack since=8.18.0 stability=stable + * @availability serverless stability=stable visibility=public * @doc_id migration-api-create-from * @doc_tag migration */ diff --git a/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts b/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts index 0f4eec021c..582de89597 100644 --- a/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts +++ b/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts @@ -25,8 +25,8 @@ import { Indices } from '@_types/common' * * Get the status of a migration reindex attempt for a data stream or index. * @rest_spec_name indices.get_migrate_reindex_status - * @availability stack since=8.18.0 stability=experimental - * @availability serverless stability=experimental visibility=private + * @availability stack since=8.18.0 stability=stable + * @availability serverless stability=stable visibility=public * @doc_id migrate * @doc_tag migration */ diff --git a/specification/indices/migrate_reindex/MigrateReindexRequest.ts b/specification/indices/migrate_reindex/MigrateReindexRequest.ts index 1080dd1b66..dd9231ea88 100644 --- a/specification/indices/migrate_reindex/MigrateReindexRequest.ts +++ b/specification/indices/migrate_reindex/MigrateReindexRequest.ts @@ -27,7 +27,7 @@ import { IndexName } from '@_types/common' * This operation occurs in a persistent task. * The persistent task ID is returned immediately and the reindexing work is completed in that task. * @rest_spec_name indices.migrate_reindex - * @availability stack since=8.18.0 stability=experimental + * @availability stack since=8.18.0 stability=stable * @doc_id migration-api-reindex * @doc_tag migration */