From d4dc5c028743e83c9ff2933e26a9596ddc5b678b Mon Sep 17 00:00:00 2001 From: lcawl Date: Thu, 2 Jan 2025 10:06:18 -0800 Subject: [PATCH 1/5] Add esql.async_query_delete.json specification --- .../api/esql.async_query_delete.json | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 rest-api-spec/src/main/resources/rest-api-spec/api/esql.async_query_delete.json diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/esql.async_query_delete.json b/rest-api-spec/src/main/resources/rest-api-spec/api/esql.async_query_delete.json new file mode 100644 index 0000000000000..a6339559afd72 --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/esql.async_query_delete.json @@ -0,0 +1,27 @@ +{ + "esql.async_query_delete": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/esql-async-query-delete-api.html", + "description": "Delete an async query request given its ID." + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_query/async/{id}", + "methods": ["DELETE"], + "parts": { + "id": { + "type": "string", + "description": "The async query ID" + } + } + } + ] + } + } +} From 97ef7da61a73658e4f084b9849780b59c3a7f508 Mon Sep 17 00:00:00 2001 From: lcawl Date: Thu, 2 Jan 2025 10:06:45 -0800 Subject: [PATCH 2/5] Add indices.get_data_lifecycle_stats specification --- .../api/indices.get_data_lifecycle_stats.json | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_data_lifecycle_stats.json diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_data_lifecycle_stats.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_data_lifecycle_stats.json new file mode 100644 index 0000000000000..8c9e947903402 --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_data_lifecycle_stats.json @@ -0,0 +1,21 @@ +{ + "indices.get_data_lifecycle_stats": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-get-lifecycle-stats.html", + "description": "Get data stream lifecycle statistics." + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_lifecycle/stats", + "methods": ["GET"] + } + ] + } + } +} From 85db5af9a443918ff8b56ffe2c19c0337fd2936e Mon Sep 17 00:00:00 2001 From: lcawl Date: Thu, 2 Jan 2025 14:13:08 -0800 Subject: [PATCH 3/5] Add security.delegate_pki --- .../api/security.delegate_pki.json | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 rest-api-spec/src/main/resources/rest-api-spec/api/security.delegate_pki.json diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/security.delegate_pki.json b/rest-api-spec/src/main/resources/rest-api-spec/api/security.delegate_pki.json new file mode 100644 index 0000000000000..d5b18ea54da03 --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/security.delegate_pki.json @@ -0,0 +1,22 @@ +{ + "security.delegate_pki": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-delegate-pki-authentication.html", + "description": "Delegate PKI authentication." + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_security/delegate_pki", + "methods": ["POST"] + } + ] + }, + "params": {} + } +} From c4bb8ccd94d5137c5ba428d29b50446f3e190b33 Mon Sep 17 00:00:00 2001 From: lcawl Date: Thu, 2 Jan 2025 14:58:08 -0800 Subject: [PATCH 4/5] Add inference.update --- .../rest-api-spec/api/inference.update.json | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 rest-api-spec/src/main/resources/rest-api-spec/api/inference.update.json diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.update.json b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.update.json new file mode 100644 index 0000000000000..6c458ce080aa7 --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.update.json @@ -0,0 +1,45 @@ +{ + "inference.update": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/update-inference-api.html", + "description": "Update inference" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{inference_id}/_update", + "methods": ["POST"], + "parts": { + "inference_id": { + "type": "string", + "description": "The inference Id" + } + } + }, + { + "path": "/_inference/{task_type}/{inference_id}/_update", + "methods": ["POST"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "inference_id": { + "type": "string", + "description": "The inference Id" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } +} From f33e19c83fe5afe11aaa7bcb5a1a07cec5cd9853 Mon Sep 17 00:00:00 2001 From: lcawl Date: Thu, 2 Jan 2025 15:59:11 -0800 Subject: [PATCH 5/5] Add body to security.delegate_pki --- .../resources/rest-api-spec/api/security.delegate_pki.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/security.delegate_pki.json b/rest-api-spec/src/main/resources/rest-api-spec/api/security.delegate_pki.json index d5b18ea54da03..752ea35028b4f 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/security.delegate_pki.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/security.delegate_pki.json @@ -17,6 +17,10 @@ } ] }, - "params": {} + "params": {}, + "body": { + "description":"The X509Certificate chain.", + "required":true + } } }