Add command to run API calls on deployment resources
- 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
Assessment
This issue has not been assessed yet.