Skip to content

Instantly share code, notes, and snippets.

@nodebotanist
Last active August 20, 2024 21:29
Show Gist options
  • Save nodebotanist/1747359265ed976ff0830cb05ce4599c to your computer and use it in GitHub Desktop.
Save nodebotanist/1747359265ed976ff0830cb05ce4599c to your computer and use it in GitHub Desktop.
Getting Started with OpenSearch on Instaclustr example code

Getting Started with OpenSearch on Instaclustr example code

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment