You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
671 B
Plaintext

#// 通过ES服务WebApi管理ES(单节点ES服务)
#// 对于基本身份认证Authorization: Basic elastic:es-461400这种形式不成功要把 用户名:密码 进行base64编码即可
#// 全局变量
#// ES服务WebAPI网址
@baseUrl = https://127.0.0.1:9200
#//帐号信息elastic:es-461400 的Base64编码值
@account = ZWxhc3RpYzplcy00NjE0MDA=
### ES主页
GET {{baseUrl}}?pretty
Authorization: Basic {{account}}
### 请求ES节点信息
GET {{baseUrl}}/_cat/nodes?v
Content-Type: application/json
Authorization: Basic {{account}}
### ES健康信息
GET {{baseUrl}}/_cat/health?v
Content-Type: application/json
Authorization: Basic {{account}}