Move clusters
Moves the clusters to a different allocator.
Path parameters
-
The allocator identifier.
Query parameters
-
force_update boolean
When
true
, cancels and overwrites the pending plans, or treats the instance as an error.Default value is
false
. -
move_only boolean
When
true
, moves the specified instances and ignores the changes for the cluster state.Default value is
true
. -
force_move boolean
When
true
, execute a primitive vacate by moving data at file-system level, and recreating instances on the target allocator(s).Default value is
false
. -
allocator_down boolean
When
true
, considers all instances on the allocator as permanently shut down when deciding how to migrate data to new nodes.When left blank, the system automatically decides. NOTE: The default treats the allocator as up. -
validate_only boolean
When
true
, validates the plan overrides, then returns the plan without performing the move.Default value is
false
.
Body
Overrides defaults for the move of each cluster
-
elasticsearch_clusters array[object]
Optional list of Elasticsearch clusters to move off the allocator.
-
kibana_clusters array[object]
Optional list of Kibana clusters to move off the allocator.
-
apm_clusters array[object]
Optional list of Apm clusters to move off the allocator.
-
appsearch_clusters array[object]
Optional list of App Search clusters to move off the allocator.
-
enterprise_search_clusters array[object]
Optional list of Elastic Enterprise Search clusters to move off the allocator.
Responses
-
The move command was issued successfully, use the "GET" command on each /{cluster_id} resource to monitor progress
-
- The cluster definition contained errors. (code:
clusters.cluster_invalid_plan
) - The cluster definition contained errors. (code:
clusters.plan_feature_not_implemented
)
- The cluster definition contained errors. (code:
-
The move command was prohibited for the given cluster. (code:
clusters.command_prohibited
)
curl \
-X POST https://{{hostname}}/api/v1/platform/infrastructure/allocators/{allocator_id}/clusters/_move \
-d '{"elasticsearch_clusters":[{"cluster_ids":["string"],"plan_override":{"strategy":{"rolling":{"group_by":"string","allow_inline_resize":true,"skip_synced_flush":true,"shard_init_wait_time":42},"grow_and_shrink":{},"rolling_grow_and_shrink":{},"autodetect":{}},"plan_configuration":{"timeout":42,"calm_wait_time":42,"move_instances":[{"from":"string","to":["string"],"instance_down":true}],"move_allocators":[{"from":"string","to":["string"],"allocator_down":true}],"move_only":true,"reallocate_instances":true,"preferred_allocators":["string"],"preferred_allocator_tags":{"additionalProperty1":"string","additionalProperty2":"string"},"skip_snapshot":true,"max_snapshot_attempts":42,"max_snapshot_age":42,"extended_maintenance":true,"cluster_reboot":"forced","override_failsafe":true,"skip_data_migration":true,"skip_upgrade_checker":true,"skip_post_upgrade_steps":true,"skip_snapshot_post_major_upgrade":true},"restore_snapshot":{"repository_name":"string","snapshot_name":"string","repository_config":{"raw_settings":{}},"restore_payload":{"indices":["string"],"raw_settings":{}},"strategy":"partial","source_cluster_id":"string"},"remote_clusters":{"resources":[{"deployment_id":"string","elasticsearch_ref_id":"string","alias":"string","skip_unavailable":true}]},"cluster_settings_json":{}}}],"kibana_clusters":[{"cluster_ids":["string"],"plan_override":{"strategy":{"rolling":{"group_by":"string","allow_inline_resize":true,"skip_synced_flush":true,"shard_init_wait_time":42},"grow_and_shrink":{},"rolling_grow_and_shrink":{},"autodetect":{}},"plan_configuration":{"timeout":42,"calm_wait_time":42,"move_instances":[{"from":"string","to":["string"],"instance_down":true}],"move_allocators":[{"from":"string","to":["string"],"allocator_down":true}],"reallocate_instances":true,"preferred_allocators":["string"],"preferred_allocator_tags":{"additionalProperty1":"string","additionalProperty2":"string"},"extended_maintenance":true,"cluster_reboot":"forced","override_failsafe":true}}}],"apm_clusters":[{"cluster_ids":["string"],"plan_override":{"strategy":{"rolling":{"group_by":"string","allow_inline_resize":true,"skip_synced_flush":true,"shard_init_wait_time":42},"grow_and_shrink":{},"rolling_grow_and_shrink":{},"autodetect":{}},"plan_configuration":{"timeout":42,"calm_wait_time":42,"move_instances":[{"from":"string","to":["string"],"instance_down":true}],"move_allocators":[{"from":"string","to":["string"],"allocator_down":true}],"reallocate_instances":true,"preferred_allocators":["string"],"preferred_allocator_tags":{"additionalProperty1":"string","additionalProperty2":"string"},"extended_maintenance":true,"cluster_reboot":"forced","override_failsafe":true}}}],"appsearch_clusters":[{"cluster_ids":["string"],"plan_override":{"strategy":{"rolling":{"group_by":"string","allow_inline_resize":true,"skip_synced_flush":true,"shard_init_wait_time":42},"grow_and_shrink":{},"rolling_grow_and_shrink":{},"autodetect":{}},"plan_configuration":{"timeout":42,"calm_wait_time":42,"move_instances":[{"from":"string","to":["string"],"instance_down":true}],"move_allocators":[{"from":"string","to":["string"],"allocator_down":true}],"reallocate_instances":true,"preferred_allocators":["string"],"preferred_allocator_tags":{"additionalProperty1":"string","additionalProperty2":"string"},"extended_maintenance":true,"cluster_reboot":"forced","override_failsafe":true}}}],"enterprise_search_clusters":[{"cluster_ids":["string"],"plan_override":{"strategy":{"rolling":{"group_by":"string","allow_inline_resize":true,"skip_synced_flush":true,"shard_init_wait_time":42},"grow_and_shrink":{},"rolling_grow_and_shrink":{},"autodetect":{}},"plan_configuration":{"timeout":42,"calm_wait_time":42,"move_instances":[{"from":"string","to":["string"],"instance_down":true}],"move_allocators":[{"from":"string","to":["string"],"allocator_down":true}],"reallocate_instances":true,"preferred_allocators":["string"],"preferred_allocator_tags":{"additionalProperty1":"string","additionalProperty2":"string"},"extended_maintenance":true,"cluster_reboot":"forced","override_failsafe":true}}}]}'
{
"elasticsearch_clusters": [
{
"cluster_ids": [
"string"
],
"plan_override": {
"strategy": {
"rolling": {
"group_by": "string",
"allow_inline_resize": true,
"skip_synced_flush": true,
"shard_init_wait_time": 42
},
"grow_and_shrink": {},
"rolling_grow_and_shrink": {},
"autodetect": {}
},
"plan_configuration": {
"timeout": 42,
"calm_wait_time": 42,
"move_instances": [
{
"from": "string",
"to": [
"string"
],
"instance_down": true
}
],
"move_allocators": [
{
"from": "string",
"to": [
"string"
],
"allocator_down": true
}
],
"move_only": true,
"reallocate_instances": true,
"preferred_allocators": [
"string"
],
"preferred_allocator_tags": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"skip_snapshot": true,
"max_snapshot_attempts": 42,
"max_snapshot_age": 42,
"extended_maintenance": true,
"cluster_reboot": "forced",
"override_failsafe": true,
"skip_data_migration": true,
"skip_upgrade_checker": true,
"skip_post_upgrade_steps": true,
"skip_snapshot_post_major_upgrade": true
},
"restore_snapshot": {
"repository_name": "string",
"snapshot_name": "string",
"repository_config": {
"raw_settings": {}
},
"restore_payload": {
"indices": [
"string"
],
"raw_settings": {}
},
"strategy": "partial",
"source_cluster_id": "string"
},
"remote_clusters": {
"resources": [
{
"deployment_id": "string",
"elasticsearch_ref_id": "string",
"alias": "string",
"skip_unavailable": true
}
]
},
"cluster_settings_json": {}
}
}
],
"kibana_clusters": [
{
"cluster_ids": [
"string"
],
"plan_override": {
"strategy": {
"rolling": {
"group_by": "string",
"allow_inline_resize": true,
"skip_synced_flush": true,
"shard_init_wait_time": 42
},
"grow_and_shrink": {},
"rolling_grow_and_shrink": {},
"autodetect": {}
},
"plan_configuration": {
"timeout": 42,
"calm_wait_time": 42,
"move_instances": [
{
"from": "string",
"to": [
"string"
],
"instance_down": true
}
],
"move_allocators": [
{
"from": "string",
"to": [
"string"
],
"allocator_down": true
}
],
"reallocate_instances": true,
"preferred_allocators": [
"string"
],
"preferred_allocator_tags": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"extended_maintenance": true,
"cluster_reboot": "forced",
"override_failsafe": true
}
}
}
],
"apm_clusters": [
{
"cluster_ids": [
"string"
],
"plan_override": {
"strategy": {
"rolling": {
"group_by": "string",
"allow_inline_resize": true,
"skip_synced_flush": true,
"shard_init_wait_time": 42
},
"grow_and_shrink": {},
"rolling_grow_and_shrink": {},
"autodetect": {}
},
"plan_configuration": {
"timeout": 42,
"calm_wait_time": 42,
"move_instances": [
{
"from": "string",
"to": [
"string"
],
"instance_down": true
}
],
"move_allocators": [
{
"from": "string",
"to": [
"string"
],
"allocator_down": true
}
],
"reallocate_instances": true,
"preferred_allocators": [
"string"
],
"preferred_allocator_tags": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"extended_maintenance": true,
"cluster_reboot": "forced",
"override_failsafe": true
}
}
}
],
"appsearch_clusters": [
{
"cluster_ids": [
"string"
],
"plan_override": {
"strategy": {
"rolling": {
"group_by": "string",
"allow_inline_resize": true,
"skip_synced_flush": true,
"shard_init_wait_time": 42
},
"grow_and_shrink": {},
"rolling_grow_and_shrink": {},
"autodetect": {}
},
"plan_configuration": {
"timeout": 42,
"calm_wait_time": 42,
"move_instances": [
{
"from": "string",
"to": [
"string"
],
"instance_down": true
}
],
"move_allocators": [
{
"from": "string",
"to": [
"string"
],
"allocator_down": true
}
],
"reallocate_instances": true,
"preferred_allocators": [
"string"
],
"preferred_allocator_tags": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"extended_maintenance": true,
"cluster_reboot": "forced",
"override_failsafe": true
}
}
}
],
"enterprise_search_clusters": [
{
"cluster_ids": [
"string"
],
"plan_override": {
"strategy": {
"rolling": {
"group_by": "string",
"allow_inline_resize": true,
"skip_synced_flush": true,
"shard_init_wait_time": 42
},
"grow_and_shrink": {},
"rolling_grow_and_shrink": {},
"autodetect": {}
},
"plan_configuration": {
"timeout": 42,
"calm_wait_time": 42,
"move_instances": [
{
"from": "string",
"to": [
"string"
],
"instance_down": true
}
],
"move_allocators": [
{
"from": "string",
"to": [
"string"
],
"allocator_down": true
}
],
"reallocate_instances": true,
"preferred_allocators": [
"string"
],
"preferred_allocator_tags": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"extended_maintenance": true,
"cluster_reboot": "forced",
"override_failsafe": true
}
}
}
]
}
{
"failures": {
"elasticsearch_clusters": [
{
"cluster_id": "string",
"calculated_plan": {
"strategy": {
"rolling": {
"group_by": "string",
"allow_inline_resize": true,
"skip_synced_flush": true,
"shard_init_wait_time": 42
},
"grow_and_shrink": {},
"rolling_grow_and_shrink": {},
"autodetect": {}
},
"plan_configuration": {
"timeout": 42,
"calm_wait_time": 42,
"move_instances": [
{
"from": "string",
"to": [
"string"
],
"instance_down": true
}
],
"move_allocators": [
{
"from": "string",
"to": [
"string"
],
"allocator_down": true
}
],
"move_only": true,
"reallocate_instances": true,
"preferred_allocators": [
"string"
],
"preferred_allocator_tags": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"skip_snapshot": true,
"max_snapshot_attempts": 42,
"max_snapshot_age": 42,
"extended_maintenance": true,
"cluster_reboot": "forced",
"override_failsafe": true,
"skip_data_migration": true,
"skip_upgrade_checker": true,
"skip_post_upgrade_steps": true,
"skip_snapshot_post_major_upgrade": true
},
"restore_snapshot": {
"repository_name": "string",
"snapshot_name": "string",
"repository_config": {
"raw_settings": {}
},
"restore_payload": {
"indices": [
"string"
],
"raw_settings": {}
},
"strategy": "partial",
"source_cluster_id": "string"
},
"remote_clusters": {
"resources": [
{
"deployment_id": "string",
"elasticsearch_ref_id": "string",
"alias": "string",
"skip_unavailable": true,
"info": {
"healthy": true,
"connected": true,
"compatible": true,
"trusted": true,
"trusted_back": true
}
}
]
},
"cluster_settings_json": {}
},
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
],
"kibana_clusters": [
{
"cluster_id": "string",
"calculated_plan": {
"strategy": {
"rolling": {
"group_by": "string",
"allow_inline_resize": true,
"skip_synced_flush": true,
"shard_init_wait_time": 42
},
"grow_and_shrink": {},
"rolling_grow_and_shrink": {},
"autodetect": {}
},
"plan_configuration": {
"timeout": 42,
"calm_wait_time": 42,
"move_instances": [
{
"from": "string",
"to": [
"string"
],
"instance_down": true
}
],
"move_allocators": [
{
"from": "string",
"to": [
"string"
],
"allocator_down": true
}
],
"reallocate_instances": true,
"preferred_allocators": [
"string"
],
"preferred_allocator_tags": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"extended_maintenance": true,
"cluster_reboot": "forced",
"override_failsafe": true
}
},
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
],
"apm_clusters": [
{
"cluster_id": "string",
"calculated_plan": {
"strategy": {
"rolling": {
"group_by": "string",
"allow_inline_resize": true,
"skip_synced_flush": true,
"shard_init_wait_time": 42
},
"grow_and_shrink": {},
"rolling_grow_and_shrink": {},
"autodetect": {}
},
"plan_configuration": {
"timeout": 42,
"calm_wait_time": 42,
"move_instances": [
{
"from": "string",
"to": [
"string"
],
"instance_down": true
}
],
"move_allocators": [
{
"from": "string",
"to": [
"string"
],
"allocator_down": true
}
],
"reallocate_instances": true,
"preferred_allocators": [
"string"
],
"preferred_allocator_tags": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"extended_maintenance": true,
"cluster_reboot": "forced",
"override_failsafe": true
}
},
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
],
"appsearch_clusters": [
{
"cluster_id": "string",
"calculated_plan": {
"strategy": {
"rolling": {
"group_by": "string",
"allow_inline_resize": true,
"skip_synced_flush": true,
"shard_init_wait_time": 42
},
"grow_and_shrink": {},
"rolling_grow_and_shrink": {},
"autodetect": {}
},
"plan_configuration": {
"timeout": 42,
"calm_wait_time": 42,
"move_instances": [
{
"from": "string",
"to": [
"string"
],
"instance_down": true
}
],
"move_allocators": [
{
"from": "string",
"to": [
"string"
],
"allocator_down": true
}
],
"reallocate_instances": true,
"preferred_allocators": [
"string"
],
"preferred_allocator_tags": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"extended_maintenance": true,
"cluster_reboot": "forced",
"override_failsafe": true
}
},
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
],
"enterprise_search_clusters": [
{
"cluster_id": "string",
"calculated_plan": {
"strategy": {
"rolling": {
"group_by": "string",
"allow_inline_resize": true,
"skip_synced_flush": true,
"shard_init_wait_time": 42
},
"grow_and_shrink": {},
"rolling_grow_and_shrink": {},
"autodetect": {}
},
"plan_configuration": {
"timeout": 42,
"calm_wait_time": 42,
"move_instances": [
{
"from": "string",
"to": [
"string"
],
"instance_down": true
}
],
"move_allocators": [
{
"from": "string",
"to": [
"string"
],
"allocator_down": true
}
],
"reallocate_instances": true,
"preferred_allocators": [
"string"
],
"preferred_allocator_tags": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"extended_maintenance": true,
"cluster_reboot": "forced",
"override_failsafe": true
}
},
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
]
},
"moves": {
"elasticsearch_clusters": [
{
"cluster_id": "string",
"calculated_plan": {
"strategy": {
"rolling": {
"group_by": "string",
"allow_inline_resize": true,
"skip_synced_flush": true,
"shard_init_wait_time": 42
},
"grow_and_shrink": {},
"rolling_grow_and_shrink": {},
"autodetect": {}
},
"plan_configuration": {
"timeout": 42,
"calm_wait_time": 42,
"move_instances": [
{
"from": "string",
"to": [
"string"
],
"instance_down": true
}
],
"move_allocators": [
{
"from": "string",
"to": [
"string"
],
"allocator_down": true
}
],
"move_only": true,
"reallocate_instances": true,
"preferred_allocators": [
"string"
],
"preferred_allocator_tags": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"skip_snapshot": true,
"max_snapshot_attempts": 42,
"max_snapshot_age": 42,
"extended_maintenance": true,
"cluster_reboot": "forced",
"override_failsafe": true,
"skip_data_migration": true,
"skip_upgrade_checker": true,
"skip_post_upgrade_steps": true,
"skip_snapshot_post_major_upgrade": true
},
"restore_snapshot": {
"repository_name": "string",
"snapshot_name": "string",
"repository_config": {
"raw_settings": {}
},
"restore_payload": {
"indices": [
"string"
],
"raw_settings": {}
},
"strategy": "partial",
"source_cluster_id": "string"
},
"remote_clusters": {
"resources": [
{
"deployment_id": "string",
"elasticsearch_ref_id": "string",
"alias": "string",
"skip_unavailable": true,
"info": {
"healthy": true,
"connected": true,
"compatible": true,
"trusted": true,
"trusted_back": true
}
}
]
},
"cluster_settings_json": {}
},
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
],
"kibana_clusters": [
{
"cluster_id": "string",
"calculated_plan": {
"strategy": {
"rolling": {
"group_by": "string",
"allow_inline_resize": true,
"skip_synced_flush": true,
"shard_init_wait_time": 42
},
"grow_and_shrink": {},
"rolling_grow_and_shrink": {},
"autodetect": {}
},
"plan_configuration": {
"timeout": 42,
"calm_wait_time": 42,
"move_instances": [
{
"from": "string",
"to": [
"string"
],
"instance_down": true
}
],
"move_allocators": [
{
"from": "string",
"to": [
"string"
],
"allocator_down": true
}
],
"reallocate_instances": true,
"preferred_allocators": [
"string"
],
"preferred_allocator_tags": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"extended_maintenance": true,
"cluster_reboot": "forced",
"override_failsafe": true
}
},
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
],
"apm_clusters": [
{
"cluster_id": "string",
"calculated_plan": {
"strategy": {
"rolling": {
"group_by": "string",
"allow_inline_resize": true,
"skip_synced_flush": true,
"shard_init_wait_time": 42
},
"grow_and_shrink": {},
"rolling_grow_and_shrink": {},
"autodetect": {}
},
"plan_configuration": {
"timeout": 42,
"calm_wait_time": 42,
"move_instances": [
{
"from": "string",
"to": [
"string"
],
"instance_down": true
}
],
"move_allocators": [
{
"from": "string",
"to": [
"string"
],
"allocator_down": true
}
],
"reallocate_instances": true,
"preferred_allocators": [
"string"
],
"preferred_allocator_tags": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"extended_maintenance": true,
"cluster_reboot": "forced",
"override_failsafe": true
}
},
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
],
"appsearch_clusters": [
{
"cluster_id": "string",
"calculated_plan": {
"strategy": {
"rolling": {
"group_by": "string",
"allow_inline_resize": true,
"skip_synced_flush": true,
"shard_init_wait_time": 42
},
"grow_and_shrink": {},
"rolling_grow_and_shrink": {},
"autodetect": {}
},
"plan_configuration": {
"timeout": 42,
"calm_wait_time": 42,
"move_instances": [
{
"from": "string",
"to": [
"string"
],
"instance_down": true
}
],
"move_allocators": [
{
"from": "string",
"to": [
"string"
],
"allocator_down": true
}
],
"reallocate_instances": true,
"preferred_allocators": [
"string"
],
"preferred_allocator_tags": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"extended_maintenance": true,
"cluster_reboot": "forced",
"override_failsafe": true
}
},
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
],
"enterprise_search_clusters": [
{
"cluster_id": "string",
"calculated_plan": {
"strategy": {
"rolling": {
"group_by": "string",
"allow_inline_resize": true,
"skip_synced_flush": true,
"shard_init_wait_time": 42
},
"grow_and_shrink": {},
"rolling_grow_and_shrink": {},
"autodetect": {}
},
"plan_configuration": {
"timeout": 42,
"calm_wait_time": 42,
"move_instances": [
{
"from": "string",
"to": [
"string"
],
"instance_down": true
}
],
"move_allocators": [
{
"from": "string",
"to": [
"string"
],
"allocator_down": true
}
],
"reallocate_instances": true,
"preferred_allocators": [
"string"
],
"preferred_allocator_tags": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"extended_maintenance": true,
"cluster_reboot": "forced",
"override_failsafe": true
}
},
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
]
}
}
# Headers
x-cloud-error-codes: clusters.cluster_invalid_plan
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
# Headers
x-cloud-error-codes: clusters.command_prohibited
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}