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'