{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Adds or updates the high-availability configuration for a Mesh node.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/tunnel_identifier"},"tunnel_id":{"$ref":"#/definitions/tunnel_tunnel_id-2"}},"required":["account_id","tunnel_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/tunnel_mesh_configuration_request_body"}},"required":["path","body"],"additionalProperties":false,"definitions":{"tunnel_identifier":{"description":"Identifier.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"tunnel_tunnel_id-2":{"description":"UUID of the tunnel.","type":"string","format":"uuid","maxLength":36,"examples":["f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"]},"tunnel_mesh_configuration_request_body":{"type":"object","properties":{"config":{"description":"Provider-specific configuration. Required shape depends on ha_mode. For `aws`, must contain `fnr_id`. For `local`, must contain `vips`. For `none` and `disabled`, must be empty or omitted.","type":["object","null"],"oneOf":[{"$ref":"#/definitions/tunnel_mesh_aws_config"},{"$ref":"#/definitions/tunnel_mesh_local_config"},{"additionalProperties":false,"description":"Empty object for none/disabled modes.","type":"object"}]},"ha_mode":{"$ref":"#/definitions/tunnel_mesh_ha_mode"}},"required":["ha_mode"]},"tunnel_mesh_aws_config":{"type":"object","properties":{"fnr_id":{"description":"Floating Network Resource ID — the secondary ENI that is moved between nodes on failover.","type":"string","examples":["eni-0123456789abcdef0"]}},"required":["fnr_id"]},"tunnel_mesh_local_config":{"type":"object","properties":{"vips":{"description":"VIPs to assign on the CloudflareWARP interface.","type":"array","items":{"$ref":"#/definitions/tunnel_mesh_vip_entry"},"maxItems":8,"minItems":1},"vips_previous":{"description":"VIPs to clean up on demotion or version drift.","type":"array","items":{"$ref":"#/definitions/tunnel_mesh_vip_entry"},"maxItems":8}},"required":["vips"]},"tunnel_mesh_ha_mode":{"description":"High-availability mode for the Mesh node. `none` means HA is enabled but no provider is configured yet (newly created nodes default to this). `disabled` means HA is explicitly turned off. `aws` uses AWS ENI move for failover. `local` uses virtual IPs (VIPs) on the local interface.","type":"string","enum":["none","disabled","aws","local"],"examples":["aws"]},"tunnel_mesh_vip_entry":{"type":"object","properties":{"address":{"description":"Virtual IP address (IPv4 or IPv6).","type":"string","examples":["10.0.0.1"]}},"required":["address"]}}},"name":"Update Mesh node HA configuration","id":"cloudflare.cloudflare-tunnel-configuration-update-warp-connector-configuration","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353","tunnel_id":"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"},"body":{"ha_mode":"aws"}},"maxRequests":1,"summary":false}}