elastic

command
v0.0.0-...-808247b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 13 Imported by: 0

README

Elastic API

tutorials / databases / elastic

API Documentation:

CURL commands

  • -v Verbose
  • -u "elasticUser:elasticPass"
  • -k Ignore unsafe certificate
  • -X GET to use http method GET

First set the environment variables as desired:

$ ES_AUTH="elastic:<password>"
$ ES_OPTS='-vkX GET'
$ ES_HOST=https://localhost:9200

Try some commands:

$ curl -u $ES_AUTH $ES_OPTS "$ES_HOST/_security/privilege?pretty"
$ curl -u $ES_AUTH $ES_OPTS "$ES_HOST/_all/_mapping?pretty"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL