From 0ce113f4c6cc04260b8d6719b1f9fd3e687804fc Mon Sep 17 00:00:00 2001 From: bicijinlian Date: Wed, 12 Apr 2023 14:02:56 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=99=AE=E9=80=9A=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Docs/使用RestClient管理ES.http | 11 +++++++---- Docs/使用RestClient管理ES集群.http | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/Docs/使用RestClient管理ES.http b/Docs/使用RestClient管理ES.http index 0e5795d..102275a 100644 --- a/Docs/使用RestClient管理ES.http +++ b/Docs/使用RestClient管理ES.http @@ -1,12 +1,15 @@ ### 请求ES首页 -GET https://127.0.0.1:9201 +GET https://127.0.0.1:9200?pretty Content-Type: application/json Authorization: Basic elastic:es-461400 ### 请求ES节点信息 -GET https://127.0.0.1:9201/_cat/nodes +GET https://127.0.0.1:9200/_cat/nodes?v +Content-Type: application/json +Authorization: Basic elastic:es-461400 + +### ES健康信息 +GET https://127.0.0.1:9200/_cat/health?v Content-Type: application/json Authorization: Basic elastic:es-461400 -### -curl --request GET --url http://www.baidu.com/ --header 'user-agent: vscode-restclient' diff --git a/Docs/使用RestClient管理ES集群.http b/Docs/使用RestClient管理ES集群.http index 0e5795d..1f54509 100644 --- a/Docs/使用RestClient管理ES集群.http +++ b/Docs/使用RestClient管理ES集群.http @@ -1,12 +1,15 @@ ### 请求ES首页 -GET https://127.0.0.1:9201 +GET https://127.0.0.1:9201?pretty Content-Type: application/json Authorization: Basic elastic:es-461400 ### 请求ES节点信息 -GET https://127.0.0.1:9201/_cat/nodes +GET https://127.0.0.1:9201/_cat/nodes?v +Content-Type: application/json +Authorization: Basic elastic:es-461400 + +### ES健康信息 +GET https://127.0.0.1:9201/_cat/health?v Content-Type: application/json Authorization: Basic elastic:es-461400 -### -curl --request GET --url http://www.baidu.com/ --header 'user-agent: vscode-restclient'