diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 8cfff46c33..035034e5c2 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -19303,109 +19303,67 @@ "operationId": "indices-resolve-index", "parameters": [ { - "in": "path", - "name": "name", - "description": "Comma-separated name(s) or index pattern(s) of the indices, aliases, and data streams to resolve.\nResources on remote clusters can be specified using the ``:`` syntax.", - "required": true, - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types.Names" - }, - "style": "simple" + "$ref": "#/components/parameters/indices.resolve_index-name" }, { - "in": "query", - "name": "expand_wildcards", - "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types.ExpandWildcards" - }, - "style": "form" + "$ref": "#/components/parameters/indices.resolve_index-expand_wildcards" }, { - "in": "query", - "name": "ignore_unavailable", - "description": "If `false`, the request returns an error if it targets a missing or closed index.", - "deprecated": false, - "schema": { - "type": "boolean" - }, - "style": "form" + "$ref": "#/components/parameters/indices.resolve_index-ignore_unavailable" }, { - "in": "query", - "name": "allow_no_indices", - "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.\nFor example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.", - "deprecated": false, - "schema": { - "type": "boolean" - }, - "style": "form" + "$ref": "#/components/parameters/indices.resolve_index-allow_no_indices" }, { - "in": "query", - "name": "mode", - "description": "Filter indices by index mode - standard, lookup, time_series, etc. Comma-separated list of IndexMode. Empty means no filter.", - "deprecated": false, - "schema": { - "oneOf": [ - { - "$ref": "#/components/schemas/indices._types.IndexMode" - }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/indices._types.IndexMode" - } - } - ] - }, - "x-state": "Generally available; Added in 9.2.0", - "style": "form" + "$ref": "#/components/parameters/indices.resolve_index-mode" } ], + "requestBody": { + "$ref": "#/components/requestBodies/indices.resolve_index" + }, "responses": { "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "indices": { - "type": "array", - "items": { - "$ref": "#/components/schemas/indices.resolve_index.ResolveIndexItem" - } - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/components/schemas/indices.resolve_index.ResolveIndexAliasItem" - } - }, - "data_streams": { - "type": "array", - "items": { - "$ref": "#/components/schemas/indices.resolve_index.ResolveIndexDataStreamsItem" - } - } - }, - "required": [ - "indices", - "aliases", - "data_streams" - ] - }, - "examples": { - "ResolveIndexResponseExample1": { - "description": "A successful response from `GET /_resolve/index/f*,remoteCluster1:bar*?expand_wildcards=all`.", - "value": "{\n \"indices\": [\n {\n \"name\": \"foo_closed\",\n \"attributes\": [\n \"closed\"\n ],\n \"mode\": \"standard\"\n },\n {\n \"name\": \"freeze-index\",\n \"aliases\": [\n \"f-alias\"\n ],\n \"attributes\": [\n \"open\"\n ]\n },\n {\n \"name\": \"remoteCluster1:bar-01\",\n \"attributes\": [\n \"open\"\n ]\n }\n ],\n \"aliases\": [\n {\n \"name\": \"f-alias\",\n \"indices\": [\n \"freeze-index\",\n \"my-index-000001\"\n ]\n }\n ],\n \"data_streams\": [\n {\n \"name\": \"foo\",\n \"backing_indices\": [\n \".ds-foo-2099.03.07-000001\"\n ],\n \"timestamp_field\": \"@timestamp\"\n }\n ]\n}" - } - } - } - } + "$ref": "#/components/responses/indices.resolve_index-200" + } + }, + "x-state": "Generally available; Added in 7.9.0", + "x-metaTags": [ + { + "content": "Elasticsearch", + "name": "product_name" + } + ] + }, + "post": { + "tags": [ + "indices" + ], + "summary": "Resolve indices", + "description": "Resolve the names and/or index patterns for indices, aliases, and data streams.\nMultiple patterns and remote clusters are supported.\n\n## Required authorization\n\n* Index privileges: `view_index_metadata`\n", + "operationId": "indices-resolve-index-1", + "parameters": [ + { + "$ref": "#/components/parameters/indices.resolve_index-name" + }, + { + "$ref": "#/components/parameters/indices.resolve_index-expand_wildcards" + }, + { + "$ref": "#/components/parameters/indices.resolve_index-ignore_unavailable" + }, + { + "$ref": "#/components/parameters/indices.resolve_index-allow_no_indices" + }, + { + "$ref": "#/components/parameters/indices.resolve_index-mode" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/indices.resolve_index" + }, + "responses": { + "200": { + "$ref": "#/components/responses/indices.resolve_index-200" } }, "x-state": "Generally available; Added in 7.9.0", @@ -134625,6 +134583,47 @@ } } }, + "indices.resolve_index-200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "indices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/indices.resolve_index.ResolveIndexItem" + } + }, + "aliases": { + "type": "array", + "items": { + "$ref": "#/components/schemas/indices.resolve_index.ResolveIndexAliasItem" + } + }, + "data_streams": { + "type": "array", + "items": { + "$ref": "#/components/schemas/indices.resolve_index.ResolveIndexDataStreamsItem" + } + } + }, + "required": [ + "indices", + "aliases", + "data_streams" + ] + }, + "examples": { + "ResolveIndexResponseExample1": { + "description": "A successful response from `GET /_resolve/index/f*,remoteCluster1:bar*?expand_wildcards=all`.", + "value": "{\n \"indices\": [\n {\n \"name\": \"foo_closed\",\n \"attributes\": [\n \"closed\"\n ],\n \"mode\": \"standard\"\n },\n {\n \"name\": \"freeze-index\",\n \"aliases\": [\n \"f-alias\"\n ],\n \"attributes\": [\n \"open\"\n ]\n },\n {\n \"name\": \"remoteCluster1:bar-01\",\n \"attributes\": [\n \"open\"\n ]\n }\n ],\n \"aliases\": [\n {\n \"name\": \"f-alias\",\n \"indices\": [\n \"freeze-index\",\n \"my-index-000001\"\n ]\n }\n ],\n \"data_streams\": [\n {\n \"name\": \"foo\",\n \"backing_indices\": [\n \".ds-foo-2099.03.07-000001\"\n ],\n \"timestamp_field\": \"@timestamp\"\n }\n ]\n}" + } + } + } + } + }, "indices.rollover-200": { "description": "", "content": { @@ -142714,6 +142713,68 @@ }, "style": "form" }, + "indices.resolve_index-name": { + "in": "path", + "name": "name", + "description": "Comma-separated name(s) or index pattern(s) of the indices, aliases, and data streams to resolve.\nResources on remote clusters can be specified using the ``:`` syntax.", + "required": true, + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types.Names" + }, + "style": "simple" + }, + "indices.resolve_index-expand_wildcards": { + "in": "query", + "name": "expand_wildcards", + "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types.ExpandWildcards" + }, + "style": "form" + }, + "indices.resolve_index-ignore_unavailable": { + "in": "query", + "name": "ignore_unavailable", + "description": "If `false`, the request returns an error if it targets a missing or closed index.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, + "indices.resolve_index-allow_no_indices": { + "in": "query", + "name": "allow_no_indices", + "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.\nFor example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, + "indices.resolve_index-mode": { + "in": "query", + "name": "mode", + "description": "Filter indices by index mode - standard, lookup, time_series, etc. Comma-separated list of IndexMode. Empty means no filter.", + "deprecated": false, + "schema": { + "oneOf": [ + { + "$ref": "#/components/schemas/indices._types.IndexMode" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/indices._types.IndexMode" + } + } + ] + }, + "x-state": "Generally available; Added in 9.2.0", + "style": "form" + }, "indices.rollover-alias": { "in": "path", "name": "alias", @@ -149296,6 +149357,15 @@ }, "required": true }, + "indices.resolve_index": { + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, "indices.rollover": { "content": { "application/json": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 399828704a..07afd7ea7d 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -10830,109 +10830,67 @@ "operationId": "indices-resolve-index", "parameters": [ { - "in": "path", - "name": "name", - "description": "Comma-separated name(s) or index pattern(s) of the indices, aliases, and data streams to resolve.\nResources on remote clusters can be specified using the ``:`` syntax.", - "required": true, - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types.Names" - }, - "style": "simple" + "$ref": "#/components/parameters/indices.resolve_index-name" }, { - "in": "query", - "name": "expand_wildcards", - "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types.ExpandWildcards" - }, - "style": "form" + "$ref": "#/components/parameters/indices.resolve_index-expand_wildcards" }, { - "in": "query", - "name": "ignore_unavailable", - "description": "If `false`, the request returns an error if it targets a missing or closed index.", - "deprecated": false, - "schema": { - "type": "boolean" - }, - "style": "form" + "$ref": "#/components/parameters/indices.resolve_index-ignore_unavailable" }, { - "in": "query", - "name": "allow_no_indices", - "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.\nFor example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.", - "deprecated": false, - "schema": { - "type": "boolean" - }, - "style": "form" + "$ref": "#/components/parameters/indices.resolve_index-allow_no_indices" }, { - "in": "query", - "name": "mode", - "description": "Filter indices by index mode - standard, lookup, time_series, etc. Comma-separated list of IndexMode. Empty means no filter.", - "deprecated": false, - "schema": { - "oneOf": [ - { - "$ref": "#/components/schemas/indices._types.IndexMode" - }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/indices._types.IndexMode" - } - } - ] - }, - "x-state": "Generally available", - "style": "form" + "$ref": "#/components/parameters/indices.resolve_index-mode" } ], + "requestBody": { + "$ref": "#/components/requestBodies/indices.resolve_index" + }, "responses": { "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "indices": { - "type": "array", - "items": { - "$ref": "#/components/schemas/indices.resolve_index.ResolveIndexItem" - } - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/components/schemas/indices.resolve_index.ResolveIndexAliasItem" - } - }, - "data_streams": { - "type": "array", - "items": { - "$ref": "#/components/schemas/indices.resolve_index.ResolveIndexDataStreamsItem" - } - } - }, - "required": [ - "indices", - "aliases", - "data_streams" - ] - }, - "examples": { - "ResolveIndexResponseExample1": { - "description": "A successful response from `GET /_resolve/index/f*,remoteCluster1:bar*?expand_wildcards=all`.", - "value": "{\n \"indices\": [\n {\n \"name\": \"foo_closed\",\n \"attributes\": [\n \"closed\"\n ],\n \"mode\": \"standard\"\n },\n {\n \"name\": \"freeze-index\",\n \"aliases\": [\n \"f-alias\"\n ],\n \"attributes\": [\n \"open\"\n ]\n },\n {\n \"name\": \"remoteCluster1:bar-01\",\n \"attributes\": [\n \"open\"\n ]\n }\n ],\n \"aliases\": [\n {\n \"name\": \"f-alias\",\n \"indices\": [\n \"freeze-index\",\n \"my-index-000001\"\n ]\n }\n ],\n \"data_streams\": [\n {\n \"name\": \"foo\",\n \"backing_indices\": [\n \".ds-foo-2099.03.07-000001\"\n ],\n \"timestamp_field\": \"@timestamp\"\n }\n ]\n}" - } - } - } - } + "$ref": "#/components/responses/indices.resolve_index-200" + } + }, + "x-state": "Generally available", + "x-metaTags": [ + { + "content": "Elasticsearch", + "name": "product_name" + } + ] + }, + "post": { + "tags": [ + "indices" + ], + "summary": "Resolve indices", + "description": "Resolve the names and/or index patterns for indices, aliases, and data streams.\nMultiple patterns and remote clusters are supported.\n\n## Required authorization\n\n* Index privileges: `view_index_metadata`\n", + "operationId": "indices-resolve-index-1", + "parameters": [ + { + "$ref": "#/components/parameters/indices.resolve_index-name" + }, + { + "$ref": "#/components/parameters/indices.resolve_index-expand_wildcards" + }, + { + "$ref": "#/components/parameters/indices.resolve_index-ignore_unavailable" + }, + { + "$ref": "#/components/parameters/indices.resolve_index-allow_no_indices" + }, + { + "$ref": "#/components/parameters/indices.resolve_index-mode" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/indices.resolve_index" + }, + "responses": { + "200": { + "$ref": "#/components/responses/indices.resolve_index-200" } }, "x-state": "Generally available", @@ -83264,6 +83222,47 @@ } } }, + "indices.resolve_index-200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "indices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/indices.resolve_index.ResolveIndexItem" + } + }, + "aliases": { + "type": "array", + "items": { + "$ref": "#/components/schemas/indices.resolve_index.ResolveIndexAliasItem" + } + }, + "data_streams": { + "type": "array", + "items": { + "$ref": "#/components/schemas/indices.resolve_index.ResolveIndexDataStreamsItem" + } + } + }, + "required": [ + "indices", + "aliases", + "data_streams" + ] + }, + "examples": { + "ResolveIndexResponseExample1": { + "description": "A successful response from `GET /_resolve/index/f*,remoteCluster1:bar*?expand_wildcards=all`.", + "value": "{\n \"indices\": [\n {\n \"name\": \"foo_closed\",\n \"attributes\": [\n \"closed\"\n ],\n \"mode\": \"standard\"\n },\n {\n \"name\": \"freeze-index\",\n \"aliases\": [\n \"f-alias\"\n ],\n \"attributes\": [\n \"open\"\n ]\n },\n {\n \"name\": \"remoteCluster1:bar-01\",\n \"attributes\": [\n \"open\"\n ]\n }\n ],\n \"aliases\": [\n {\n \"name\": \"f-alias\",\n \"indices\": [\n \"freeze-index\",\n \"my-index-000001\"\n ]\n }\n ],\n \"data_streams\": [\n {\n \"name\": \"foo\",\n \"backing_indices\": [\n \".ds-foo-2099.03.07-000001\"\n ],\n \"timestamp_field\": \"@timestamp\"\n }\n ]\n}" + } + } + } + } + }, "indices.rollover-200": { "description": "", "content": { @@ -87427,6 +87426,68 @@ }, "style": "form" }, + "indices.resolve_index-name": { + "in": "path", + "name": "name", + "description": "Comma-separated name(s) or index pattern(s) of the indices, aliases, and data streams to resolve.\nResources on remote clusters can be specified using the ``:`` syntax.", + "required": true, + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types.Names" + }, + "style": "simple" + }, + "indices.resolve_index-expand_wildcards": { + "in": "query", + "name": "expand_wildcards", + "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types.ExpandWildcards" + }, + "style": "form" + }, + "indices.resolve_index-ignore_unavailable": { + "in": "query", + "name": "ignore_unavailable", + "description": "If `false`, the request returns an error if it targets a missing or closed index.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, + "indices.resolve_index-allow_no_indices": { + "in": "query", + "name": "allow_no_indices", + "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.\nFor example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, + "indices.resolve_index-mode": { + "in": "query", + "name": "mode", + "description": "Filter indices by index mode - standard, lookup, time_series, etc. Comma-separated list of IndexMode. Empty means no filter.", + "deprecated": false, + "schema": { + "oneOf": [ + { + "$ref": "#/components/schemas/indices._types.IndexMode" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/indices._types.IndexMode" + } + } + ] + }, + "x-state": "Generally available", + "style": "form" + }, "indices.rollover-alias": { "in": "path", "name": "alias", @@ -91176,6 +91237,15 @@ }, "required": true }, + "indices.resolve_index": { + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, "indices.rollover": { "content": { "application/json": { diff --git a/output/schema/schema.json b/output/schema/schema.json index c864610e70..7eebe7556b 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -9576,7 +9576,8 @@ "urls": [ { "methods": [ - "GET" + "GET", + "POST" ], "path": "/_resolve/index/{name}" } @@ -27227,25 +27228,6 @@ } } }, - { - "availability": { - "serverless": { - "featureFlag": "serverless.cross_project.enabled", - "stability": "stable", - "visibility": "feature_flag" - } - }, - "description": "Specifies a subset of projects to target for the search using project\nmetadata tags in a subset of Lucene query syntax.\nAllowed Lucene queries: the _alias tag and a single value (possibly wildcarded).\nExamples:\n _alias:my-project\n _alias:_origin\n _alias:*pr*\nSupported in serverless only.", - "name": "project_routing", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "ProjectRouting", - "namespace": "_types" - } - } - }, { "description": "A custom value used to route operations to a specific shard.", "name": "routing", @@ -27283,7 +27265,7 @@ } } ], - "specLocation": "_global/count/CountRequest.ts#L32-L175" + "specLocation": "_global/count/CountRequest.ts#L26-L157" }, { "kind": "response", @@ -30165,28 +30147,9 @@ "namespace": "_builtins" } } - }, - { - "availability": { - "serverless": { - "featureFlag": "serverless.cross_project.enabled", - "stability": "stable", - "visibility": "feature_flag" - } - }, - "description": "Specifies a subset of projects to target for the field-caps query using project\nmetadata tags in a subset of Lucene query syntax.\nAllowed Lucene queries: the _alias tag and a single value (possibly wildcarded).\nExamples:\n _alias:my-project\n _alias:_origin\n _alias:*pr*\nSupported in serverless only.", - "name": "project_routing", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "ProjectRouting", - "namespace": "_types" - } - } } ], - "specLocation": "_global/field_caps/FieldCapabilitiesRequest.ts#L31-L162" + "specLocation": "_global/field_caps/FieldCapabilitiesRequest.ts#L31-L150" }, { "kind": "response", @@ -35972,25 +35935,6 @@ } } }, - { - "availability": { - "serverless": { - "featureFlag": "serverless.cross_project.enabled", - "stability": "stable", - "visibility": "feature_flag" - } - }, - "description": "Specifies a subset of projects to target for the PIT request using project\nmetadata tags in a subset of Lucene query syntax.\nAllowed Lucene queries: the _alias tag and a single value (possibly wildcarded).\nExamples:\n _alias:my-project\n _alias:_origin\n _alias:*pr*\nSupported in serverless only.", - "name": "project_routing", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "ProjectRouting", - "namespace": "_types" - } - } - }, { "description": "A custom value that is used to route operations to a specific shard.", "name": "routing", @@ -36043,7 +35987,7 @@ } } ], - "specLocation": "_global/open_point_in_time/OpenPointInTimeRequest.ts#L32-L162" + "specLocation": "_global/open_point_in_time/OpenPointInTimeRequest.ts#L32-L150" }, { "kind": "response", @@ -40339,25 +40283,6 @@ } } }, - { - "availability": { - "serverless": { - "featureFlag": "serverless.cross_project.enabled", - "stability": "stable", - "visibility": "feature_flag" - } - }, - "description": "Specifies a subset of projects to target for the search using project\nmetadata tags in a subset of Lucene query syntax.\nAllowed Lucene queries: the _alias tag and a single value (possibly wildcarded).\nExamples:\n _alias:my-project\n _alias:_origin\n _alias:*pr*\nSupported in serverless only.", - "name": "project_routing", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "ProjectRouting", - "namespace": "_types" - } - } - }, { "description": "If `true`, the caching of search results is enabled for requests where `size` is `0`.\nIt defaults to index level settings.", "extDocId": "shard-request-cache", @@ -40737,7 +40662,7 @@ } } ], - "specLocation": "_global/search/SearchRequest.ts#L55-L623" + "specLocation": "_global/search/SearchRequest.ts#L55-L611" }, { "kind": "response", @@ -102302,25 +102227,6 @@ } } }, - { - "availability": { - "serverless": { - "featureFlag": "serverless.cross_project.enabled", - "stability": "stable", - "visibility": "feature_flag" - } - }, - "description": "Specifies a subset of projects to target for the search using project\nmetadata tags in a subset of Lucene query syntax.\nAllowed Lucene queries: the _alias tag and a single value (possibly wildcarded).\nExamples:\n _alias:my-project\n _alias:_origin\n _alias:*pr*\nSupported in serverless only.", - "name": "project_routing", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "ProjectRouting", - "namespace": "_types" - } - } - }, { "description": "Specify if request cache should be used for this request or not, defaults to true", "name": "request_cache", @@ -102633,7 +102539,7 @@ } } ], - "specLocation": "async_search/submit/AsyncSearchSubmitRequest.ts#L56-L444" + "specLocation": "async_search/submit/AsyncSearchSubmitRequest.ts#L56-L432" }, { "kind": "response", @@ -144010,25 +143916,6 @@ } } }, - { - "availability": { - "serverless": { - "featureFlag": "serverless.cross_project.enabled", - "stability": "stable", - "visibility": "feature_flag" - } - }, - "description": "Specifies a subset of projects to target for the search using project\nmetadata tags in a subset of Lucene query syntax.\nAllowed Lucene queries: the _alias tag and a single value (possibly wildcarded).\nExamples:\n _alias:my-project\n _alias:_origin\n _alias:*pr*\nSupported in serverless only.", - "name": "project_routing", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "ProjectRouting", - "namespace": "_types" - } - } - }, { "description": "Timeout duration to wait for the request to finish. Defaults to no timeout, meaning the request waits for complete search results.", "name": "wait_for_completion_timeout", @@ -144042,7 +143929,7 @@ } } ], - "specLocation": "eql/search/EqlSearchRequest.ts#L34-L192" + "specLocation": "eql/search/EqlSearchRequest.ts#L28-L174" }, { "kind": "response", @@ -170726,7 +170613,28 @@ "CommonQueryParameters" ], "body": { - "kind": "no_body" + "kind": "properties", + "properties": [ + { + "availability": { + "serverless": { + "featureFlag": "serverless.cross_project.enabled", + "stability": "stable", + "visibility": "feature_flag" + } + }, + "description": "Specifies a subset of projects to target using project\nmetadata tags in a subset of Lucene query syntax.\nAllowed Lucene queries: the _alias tag and a single value (possibly wildcarded).\nExamples:\n _alias:my-project\n _alias:_origin\n _alias:*pr*\nSupported in serverless only.", + "name": "project_routing", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "ProjectRouting", + "namespace": "_types" + } + } + } + ] }, "description": "Resolve indices.\n\nResolve the names and/or index patterns for indices, aliases, and data streams.\nMultiple patterns and remote clusters are supported.", "examples": { @@ -170856,28 +170764,9 @@ } ] } - }, - { - "availability": { - "serverless": { - "featureFlag": "serverless.cross_project.enabled", - "stability": "stable", - "visibility": "feature_flag" - } - }, - "description": "Specifies a subset of projects to target using project\nmetadata tags in a subset of Lucene query syntax.\nAllowed Lucene queries: the _alias tag and a single value (possibly wildcarded).\nExamples:\n _alias:my-project\n _alias:_origin\n _alias:*pr*\nSupported in serverless only.", - "name": "project_routing", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "ProjectRouting", - "namespace": "_types" - } - } } ], - "specLocation": "indices/resolve_index/ResolveIndexRequest.ts#L29-L94" + "specLocation": "indices/resolve_index/ResolveIndexRequest.ts#L29-L96" }, { "kind": "interface", @@ -268088,28 +267977,9 @@ "namespace": "sql.query" } } - }, - { - "availability": { - "serverless": { - "featureFlag": "serverless.cross_project.enabled", - "stability": "stable", - "visibility": "feature_flag" - } - }, - "description": "Specifies a subset of projects to target for the search using project\nmetadata tags in a subset of Lucene query syntax.\nAllowed Lucene queries: the _alias tag and a single value (possibly wildcarded).\nExamples:\n _alias:my-project\n _alias:_origin\n _alias:*pr*\nSupported in serverless only.", - "name": "project_routing", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "ProjectRouting", - "namespace": "_types" - } - } } ], - "specLocation": "sql/query/QuerySqlRequest.ts#L28-L167" + "specLocation": "sql/query/QuerySqlRequest.ts#L28-L155" }, { "kind": "response", @@ -268231,7 +268101,7 @@ "name": "SqlFormat", "namespace": "sql.query" }, - "specLocation": "sql/query/QuerySqlRequest.ts#L169-L177" + "specLocation": "sql/query/QuerySqlRequest.ts#L157-L165" }, { "kind": "request", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 478e127529..f358ca53f2 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -7,11 +7,61 @@ ], "response": [] }, + "async_search.submit": { + "request": [ + "Request: missing json spec query parameter 'project_routing'" + ], + "response": [] + }, "capabilities": { "request": [ "Request: query parameter 'timeout' does not exist in the json spec" ], "response": [] + }, + "count": { + "request": [ + "Request: missing json spec query parameter 'project_routing'" + ], + "response": [] + }, + "eql.search": { + "request": [ + "Request: missing json spec query parameter 'project_routing'" + ], + "response": [] + }, + "field_caps": { + "request": [ + "Request: missing json spec query parameter 'project_routing'" + ], + "response": [] + }, + "indices.resolve_index": { + "request": [ + "/_resolve/index/{name}: different http methods in the json spec", + "Request: missing json spec query parameter 'project_routing'", + "Request: should not have a body" + ], + "response": [] + }, + "open_point_in_time": { + "request": [ + "Request: missing json spec query parameter 'project_routing'" + ], + "response": [] + }, + "search": { + "request": [ + "Request: missing json spec query parameter 'project_routing'" + ], + "response": [] + }, + "sql.query": { + "request": [ + "Request: missing json spec query parameter 'project_routing'" + ], + "response": [] } }, "generalErrors": [ diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 0590943900..63eaf94e3e 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -165,7 +165,6 @@ export interface CountRequest extends RequestBase { lenient?: boolean min_score?: double preference?: string - project_routing?: ProjectRouting routing?: Routing terminate_after?: long q?: string @@ -383,7 +382,6 @@ export interface FieldCapsRequest extends RequestBase { filters?: string | string[] types?: string[] include_empty_fields?: boolean - project_routing?: ProjectRouting body?: { fields?: Fields index_filter?: QueryDslQueryContainer @@ -908,7 +906,6 @@ export interface OpenPointInTimeRequest extends RequestBase { keep_alive: Duration ignore_unavailable?: boolean preference?: string - project_routing?: ProjectRouting routing?: Routing expand_wildcards?: ExpandWildcards allow_partial_search_results?: boolean @@ -1210,7 +1207,6 @@ export interface SearchRequest extends RequestBase { max_concurrent_shard_requests?: integer preference?: string pre_filter_shard_size?: long - project_routing?: ProjectRouting request_cache?: boolean routing?: Routing scroll?: Duration @@ -7323,7 +7319,6 @@ export interface AsyncSearchSubmitRequest extends RequestBase { lenient?: boolean max_concurrent_shard_requests?: integer preference?: string - project_routing?: ProjectRouting request_cache?: boolean routing?: Routing search_type?: SearchType @@ -11360,7 +11355,6 @@ export interface EqlSearchRequest extends RequestBase { ignore_unavailable?: boolean keep_alive?: Duration keep_on_completion?: boolean - project_routing?: ProjectRouting wait_for_completion_timeout?: Duration body?: { query: string @@ -13798,7 +13792,9 @@ export interface IndicesResolveIndexRequest extends RequestBase { ignore_unavailable?: boolean allow_no_indices?: boolean mode?: IndicesIndexMode | IndicesIndexMode[] - project_routing?: ProjectRouting + body?: { + project_routing?: ProjectRouting + } } export interface IndicesResolveIndexResolveIndexAliasItem { @@ -22655,7 +22651,6 @@ export interface SqlGetAsyncStatusResponse { export interface SqlQueryRequest extends RequestBase { format?: SqlQuerySqlFormat - project_routing?: ProjectRouting body?: { allow_partial_search_results?: boolean catalog?: string diff --git a/specification/_global/count/CountRequest.ts b/specification/_global/count/CountRequest.ts index eb5aac3cb5..1f0a0e9669 100644 --- a/specification/_global/count/CountRequest.ts +++ b/specification/_global/count/CountRequest.ts @@ -18,13 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { - ExpandWildcards, - Indices, - MediaType, - ProjectRouting, - Routing -} from '@_types/common' +import { ExpandWildcards, Indices, MediaType, Routing } from '@_types/common' import { double, long } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Operator } from '@_types/query_dsl/Operator' @@ -133,18 +127,6 @@ export interface Request extends RequestBase { * By default, it is random. */ preference?: string - /** - * Specifies a subset of projects to target for the search using project - * metadata tags in a subset of Lucene query syntax. - * Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). - * Examples: - * _alias:my-project - * _alias:_origin - * _alias:*pr* - * Supported in serverless only. - * @availability serverless stability=stable visibility=feature_flag feature_flag=serverless.cross_project.enabled - */ - project_routing?: ProjectRouting /** * A custom value used to route operations to a specific shard. */ diff --git a/specification/_global/field_caps/FieldCapabilitiesRequest.ts b/specification/_global/field_caps/FieldCapabilitiesRequest.ts index 9bd767e3c1..195da8980f 100644 --- a/specification/_global/field_caps/FieldCapabilitiesRequest.ts +++ b/specification/_global/field_caps/FieldCapabilitiesRequest.ts @@ -110,18 +110,6 @@ export interface Request extends RequestBase { * @server_default true */ include_empty_fields?: boolean - /** - * Specifies a subset of projects to target for the field-caps query using project - * metadata tags in a subset of Lucene query syntax. - * Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). - * Examples: - * _alias:my-project - * _alias:_origin - * _alias:*pr* - * Supported in serverless only. - * @availability serverless stability=stable visibility=feature_flag feature_flag=serverless.cross_project.enabled - */ - project_routing?: ProjectRouting } body?: { /** diff --git a/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts b/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts index fad18251d8..721396a6ff 100644 --- a/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts +++ b/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts @@ -105,18 +105,6 @@ export interface Request extends RequestBase { * By default, it is random. */ preference?: string - /** - * Specifies a subset of projects to target for the PIT request using project - * metadata tags in a subset of Lucene query syntax. - * Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). - * Examples: - * _alias:my-project - * _alias:_origin - * _alias:*pr* - * Supported in serverless only. - * @availability serverless stability=stable visibility=feature_flag feature_flag=serverless.cross_project.enabled - */ - project_routing?: ProjectRouting /** * A custom value that is used to route operations to a specific shard. */ diff --git a/specification/_global/search/SearchRequest.ts b/specification/_global/search/SearchRequest.ts index c6617dad67..1a6c9e6572 100644 --- a/specification/_global/search/SearchRequest.ts +++ b/specification/_global/search/SearchRequest.ts @@ -223,18 +223,6 @@ export interface Request extends RequestBase { * * The primary sort of the query targets an indexed field. */ pre_filter_shard_size?: long - /** - * Specifies a subset of projects to target for the search using project - * metadata tags in a subset of Lucene query syntax. - * Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). - * Examples: - * _alias:my-project - * _alias:_origin - * _alias:*pr* - * Supported in serverless only. - * @availability serverless stability=stable visibility=feature_flag feature_flag=serverless.cross_project.enabled - */ - project_routing?: ProjectRouting /** * If `true`, the caching of search results is enabled for requests where `size` is `0`. * It defaults to index level settings. diff --git a/specification/async_search/submit/AsyncSearchSubmitRequest.ts b/specification/async_search/submit/AsyncSearchSubmitRequest.ts index dd92035506..815968291e 100644 --- a/specification/async_search/submit/AsyncSearchSubmitRequest.ts +++ b/specification/async_search/submit/AsyncSearchSubmitRequest.ts @@ -181,18 +181,6 @@ export interface Request extends RequestBase { * @server_default random */ preference?: string - /** - * Specifies a subset of projects to target for the search using project - * metadata tags in a subset of Lucene query syntax. - * Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). - * Examples: - * _alias:my-project - * _alias:_origin - * _alias:*pr* - * Supported in serverless only. - * @availability serverless stability=stable visibility=feature_flag feature_flag=serverless.cross_project.enabled - */ - project_routing?: ProjectRouting /** * Specify if request cache should be used for this request or not, defaults to true * @server_default true diff --git a/specification/eql/search/EqlSearchRequest.ts b/specification/eql/search/EqlSearchRequest.ts index 81ca361cec..b539888b8a 100644 --- a/specification/eql/search/EqlSearchRequest.ts +++ b/specification/eql/search/EqlSearchRequest.ts @@ -18,13 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { - ExpandWildcards, - Field, - Indices, - MediaType, - ProjectRouting -} from '@_types/common' +import { ExpandWildcards, Field, Indices, MediaType } from '@_types/common' import { RuntimeFields } from '@_types/mapping/RuntimeFields' import { integer, uint } from '@_types/Numeric' import { FieldAndFormat, QueryContainer } from '@_types/query_dsl/abstractions' @@ -98,18 +92,6 @@ export interface Request extends RequestBase { * @server_default false */ keep_on_completion?: boolean - /** - * Specifies a subset of projects to target for the search using project - * metadata tags in a subset of Lucene query syntax. - * Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). - * Examples: - * _alias:my-project - * _alias:_origin - * _alias:*pr* - * Supported in serverless only. - * @availability serverless stability=stable visibility=feature_flag feature_flag=serverless.cross_project.enabled - */ - project_routing?: ProjectRouting /** * Timeout duration to wait for the request to finish. Defaults to no timeout, meaning the request waits for complete search results. */ diff --git a/specification/indices/resolve_index/ResolveIndexRequest.ts b/specification/indices/resolve_index/ResolveIndexRequest.ts index 8197eccc12..55656a1599 100644 --- a/specification/indices/resolve_index/ResolveIndexRequest.ts +++ b/specification/indices/resolve_index/ResolveIndexRequest.ts @@ -41,7 +41,7 @@ export interface Request extends RequestBase { urls: [ { path: '/_resolve/index/{name}' - methods: ['GET'] + methods: ['GET', 'POST'] } ] path_parts: { @@ -78,6 +78,8 @@ export interface Request extends RequestBase { * @availability serverless stability=stable visibility=public */ mode?: IndexMode | IndexMode[] + } + body?: { /** * Specifies a subset of projects to target using project * metadata tags in a subset of Lucene query syntax. diff --git a/specification/sql/query/QuerySqlRequest.ts b/specification/sql/query/QuerySqlRequest.ts index aa31128dcf..2c41787a76 100644 --- a/specification/sql/query/QuerySqlRequest.ts +++ b/specification/sql/query/QuerySqlRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { MediaType, ProjectRouting } from '@_types/common' +import { MediaType } from '@_types/common' import { RuntimeFields } from '@_types/mapping/RuntimeFields' import { integer } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' @@ -52,18 +52,6 @@ export interface Request extends RequestBase { * @ext_doc_id sql-rest-format */ format?: SqlFormat - /** - * Specifies a subset of projects to target for the search using project - * metadata tags in a subset of Lucene query syntax. - * Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). - * Examples: - * _alias:my-project - * _alias:_origin - * _alias:*pr* - * Supported in serverless only. - * @availability serverless stability=stable visibility=feature_flag feature_flag=serverless.cross_project.enabled - */ - project_routing?: ProjectRouting } body: { /**