参考 https://www.cnblogs.com/dance-walter/p/10471950.html

参考 https://www.elastic.co/guide/en/kibana/current/saved-objects-api-create.html

如果需要认证,使用curl保留cookie的方式:

curl -c cookie.txt -XPOST -H 'Content-Type: application/json'  -H 'kbn-xsrf: anything'  "http://localhost:5601/api/security/v1/login" -d"{\"username\": \"elastic\", \"password\": \"elastic\"}"

curl -b @cookie.txt -f -XPOST -H 'Content-Type: application/json' -H 'kbn-xsrf: anything' "http://localhost:5601/api/saved_objects/index-pattern" -d"{\"attributes\":{\"title\":\"cus*\"}}"

 

相关文章:

  • 2021-07-13
  • 2022-12-23
  • 2021-12-10
  • 2021-05-31
  • 2021-12-21
猜你喜欢
  • 2021-11-19
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-09-14
相关资源
相似解决方案