Difference between revisions of "Opensearch-cli curl"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  opensearch-cli curl --help
+
 
 +
* <code>[[opensearch-cli curl get]]</code>
 +
 
 +
  [[opensearch-cli]] curl --help
 
  Use the curl command to execute any REST API calls against the cluster.
 
  Use the curl command to execute any REST API calls against the cluster.
 
   
 
   
Line 8: Line 11:
 
  Available Commands:
 
  Available Commands:
 
   delete      Delete command to execute requests against cluster
 
   delete      Delete command to execute requests against cluster
   get        Get command to execute requests against cluster
+
   [[opensearch-cli curl get|get]]         Get command to execute requests against cluster
 
   post        Post command to execute requests against cluster
 
   post        Post command to execute requests against cluster
 
   put        Put command to execute requests against cluster
 
   put        Put command to execute requests against cluster
Line 26: Line 29:
 
== Related ==
 
== Related ==
 
* [[cURL]]
 
* [[cURL]]
 +
* [[Elasticsearch curl URLs]]
  
 
== See also ==
 
== See also ==

Latest revision as of 20:18, 5 July 2022

opensearch-cli curl --help
Use the curl command to execute any REST API calls against the cluster.

Usage:
  opensearch-cli curl [command]

Available Commands:
  delete      Delete command to execute requests against cluster
  get         Get command to execute requests against cluster
  post        Post command to execute requests against cluster
  put         Put command to execute requests against cluster

Flags:
  -f, --filter-path string     Filter output fields returned by OpenSearch. Use comma ',' to separate list of filters
  -h, --help                   Help for curl command
  -o, --output-format string   Output format if supported by cluster, else, default format by OpenSearch. Example json, yaml
      --pretty                 Response will be formatted

Global Flags:
  -c, --config string    Configuration file for opensearch-cli, default is /Users/sf/.opensearch-cli/config.yaml
  -p, --profile string   Use a specific profile from your configuration file

Use "opensearch-cli curl [command] --help" for more information about a command.

Related[edit]

See also[edit]

Advertising: