Want to follow along? Check out [add YT link when published].
You need cUrl installed: try here.
#! /bin/bash | |
curl -u icopensearch:<Password> "https://<cluster endpoint>:9200" |
!# /bin/bash | |
curl -X PUT -u icopensearch:<password> "https://<cluster endpoint>:9200/testing/_doc/1?pretty" -H 'Content-Type: application/json' -d' | |
{ | |
"description" : "this is a test", | |
"timestamp" : "1970-01-01T00:00:01" | |
}' |
#! /bin/bash | |
curl -u icopensearch:<Password> "https://<Cluster endpoint>:9200/testing/_doc/1?pretty" |