elastic / elastic/ecctl

Add command to run API calls on deployment resources

Open
#293 0 comments 1 reaction 0 assignees View on GitHub
Team:Delivery
Dominant language
Go
Stars
58
Forks
61
PR merge metrics
No merged PRs in 30d

Description

## Overview
Having a command to run API calls on deployment resources (Elasticsearch for example) is a very handy command. It was available on beta version but was **removed** as part of the deprecation of clusters API.

It would be great to have some way to achieve this. Command would look like this:

`ecctl deployment resource run --kind elasticsearch --query GET /_cat/indices`

This could also be extended to Kibana or other products API.

## Context
This will be interesting when running query against multiple clusters.
**Example**:
Run disable shard allocation on all clusters having node on a specific allocator before shutting it down is a great feature.

## Extension
More generally, having a way to run [disable/enable shard allocation](https://www.elastic.co/guide/en/elasticsearch/reference/current/restart-cluster.html#restart-cluster-rolling) on all elasticsearch clusters having a node within a certain allocator when performing host maintenance with no spare capacity is valuable as well.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.