{
    "swagger": "2.0",
    "host": "localhost",
    "info": {
        "description": "",
        "version": "",
        "title": "",
        "termsOfService": ""
    },
    "basePath": "/api/v1/",
    "paths": {
        "/platform/infrastructure/allocators/{allocator_id}/clusters/_move": {
            "post": {
                "summary": "Move clusters",
                "description": "Moves clusters.",
                "operationId": "move-clusters",
                "parameters": [
                    {
                        "in": "body",
                        "name": "body",
                        "description": "Overrides defaults for the move of each cluster",
                        "required": false,
                        "schema": {
                            "$ref": "#/definitions/MoveClustersRequest"
                        }
                    },
                    {
                        "name": "allocator_id",
                        "in": "path",
                        "description": "The identifier of the allocator of which to move clusters.",
                        "required": true,
                        "type": "string"
                    }
                ],
                "responses": {
                    "202": {
                        "description": "response"
                    }
                }
            }
        }
    },
    "definitions": {
        "MoveElasticsearchClusterConfiguration": {
            "type": "object",
            "required": [
                "cluster_ids"
            ],
            "properties": {
                "cluster_ids": {
                    "type": "array",
                    "description": "Identifiers for the Elasticsearch clusters.",
                    "items": {
                        "type": "string"
                    }
                }
            },
            "description": "Configuration object for moving Elasticsearch clusters."
        },
        "MoveKibanaClusterConfiguration": {
            "type": "object",
            "required": [
                "cluster_ids"
            ],
            "properties": {
                "cluster_ids": {
                    "type": "array",
                    "description": "Identifiers for the Kibana clusters.",
                    "items": {
                        "type": "string"
                    }
                }
            },
            "description": "Configuration object for moving Kibana clusters."
        },
        "MoveClustersRequest": {
            "type": "object",
            "properties": {
                "elasticsearch_clusters": {
                    "type": "array",
                    "description": "Optional list of Elasticsearch clusters to move off the allocator. If not specified, then all Elasticsearch clusters on the allocator are moved.",
                    "items": {
                        "$ref": "#/definitions/MoveElasticsearchClusterConfiguration"
                    }
                },
                "kibana_clusters": {
                    "type": "array",
                    "description": "Optional list of Kibana clusters to move off the allocator. If not specified, then all Kibana clusters on the allocator are moved.",
                    "items": {
                        "$ref": "#/definitions/MoveKibanaClusterConfiguration"
                    }
                }
            },
            "description": "Configuration for moving clusters off an allocator"
        }
    }
}
