Is your feature request related to a problem? Please describe
We want to disallow some APIs' which are involved in Index resizing and shard relocation, when Document-Replication type to Segment-Replication type migration is happening.
Describe the solution you'd like
Resize requests are :
- Always allowed if source Index setting/metadata has SETTING_REMOTE_STORE_ENABLED as true.
- Disallowed If cluster settings has REMOTE_STORE_COMPATIBILITY_MODE_SETTING as MIXED and MIGRATION_DIRECTION_SETTING as REMOTE_STORE and Condition 1 is not met.
Related component
Storage:Remote
Describe alternatives you've considered
No response
Additional context
No response