{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/canonical/main/json-schema/canonical-cluster-member-state-post-schema.json",
  "title": "ClusterMemberStatePost represents the fields required to evacuate a cluster member.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canonical-cluster-api-openapi.yml#/components/schemas/ClusterMemberStatePost",
  "properties": {
    "action": {
      "description": "The action to be performed. Valid actions are \"evacuate\" and \"restore\".",
      "type": "string",
      "x-go-name": "Action"
    },
    "force": {
      "description": "Permit evacuation even if it would drop the cluster below the required voter majority.\n\nAPI extension: clustering_evacuation_force",
      "type": "boolean",
      "x-go-name": "Force"
    },
    "mode": {
      "description": "Override the configured evacuation mode.\nValid modes for the \"evacuate\" action are \"stop\", \"migrate\", and \"live-migrate\".\nValid modes for the \"restore\" action are \"skip\".\n\nAPI extension: clustering_evacuation_mode",
      "type": "string",
      "x-go-name": "Mode"
    }
  },
  "type": "object",
  "x-go-package": "github.com/canonical/lxd/shared/api"
}