{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Update a specific Site LAN.","properties":{"path":{"type":"object","properties":{"site_id":{"$ref":"#/definitions/magic_identifier"},"account_id":{"$ref":"#/definitions/magic_identifier"},"lan_id":{"$ref":"#/definitions/magic_identifier"}},"required":["site_id","account_id","lan_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/magic_lan_update_request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"magic_identifier":{"description":"Identifier","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"magic_lan_update_request":{"type":"object","properties":{"bond_id":{"$ref":"#/definitions/magic_bond_id"},"ha_link":{"description":"mark true to use this LAN for HA probing. only works for site with HA turned on. only one LAN can be set as the ha_link.","type":"boolean"},"is_breakout":{"description":"mark true to use this LAN for source-based breakout traffic","type":"boolean"},"is_prioritized":{"description":"mark true to use this LAN for source-based prioritized traffic","type":"boolean"},"name":{"type":"string"},"nat":{"$ref":"#/definitions/magic_nat"},"physport":{"$ref":"#/definitions/magic_port"},"remote_subnets":{"type":"array","items":{"$ref":"#/definitions/magic_remote_subnet"}},"routed_subnets":{"type":"array","items":{"$ref":"#/definitions/magic_routed_subnet"}},"static_addressing":{"$ref":"#/definitions/magic_lan_static_addressing"},"vlan_tag":{"$ref":"#/definitions/magic_vlan_tag"}}},"magic_bond_id":{"type":"integer","examples":[2]},"magic_nat":{"type":"object","properties":{"static_prefix":{"$ref":"#/definitions/magic_cidr"}}},"magic_port":{"type":"integer","examples":[1]},"magic_remote_subnet":{"description":"A remote subnet reachable through Cloudflare that is addressed from this LAN by a local alias prefix of the same size. The local alias prefix must not overlap other subnets on the LAN, and the remote prefix must not overlap other remote prefixes on the LAN.","type":"object","properties":{"local_alias_prefix":{"$ref":"#/definitions/magic_cidr"},"remote_prefix":{"$ref":"#/definitions/magic_cidr"}},"required":["remote_prefix","local_alias_prefix"]},"magic_routed_subnet":{"type":"object","properties":{"nat":{"$ref":"#/definitions/magic_nat"},"next_hop":{"$ref":"#/definitions/magic_ip-address"},"prefix":{"$ref":"#/definitions/magic_cidr"}},"required":["prefix","next_hop"]},"magic_lan_static_addressing":{"description":"If the site is not configured in high availability mode, this configuration is optional (if omitted, use DHCP). However, if in high availability mode, static_address is required along with secondary and virtual address.","type":"object","properties":{"address":{"$ref":"#/definitions/magic_cidr"},"dhcp_relay":{"$ref":"#/definitions/magic_lan_dhcp_relay"},"dhcp_server":{"$ref":"#/definitions/magic_lan_dhcp_server"},"secondary_address":{"$ref":"#/definitions/magic_cidr"},"virtual_address":{"$ref":"#/definitions/magic_cidr"}},"required":["address"]},"magic_vlan_tag":{"description":"VLAN ID. Use zero for untagged.","type":"integer","examples":[42]},"magic_cidr":{"description":"A valid CIDR notation representing an IP range.","type":"string","examples":["192.0.2.0/24"]},"magic_ip-address":{"description":"A valid IPv4 address.","type":"string","examples":["192.0.2.1"]},"magic_lan_dhcp_relay":{"type":"object","properties":{"server_addresses":{"description":"List of DHCP server IPs.","type":"array","items":{"$ref":"#/definitions/magic_ip-address"}}}},"magic_lan_dhcp_server":{"type":"object","properties":{"dhcp_options":{"description":"Optional list of custom DHCP options to include in DHCP responses. Only valid when DHCP server is enabled.","type":"array","items":{"$ref":"#/definitions/magic_dhcp_option"}},"dhcp_pool_end":{"$ref":"#/definitions/magic_ip-address"},"dhcp_pool_start":{"$ref":"#/definitions/magic_ip-address"},"dns_server":{"allOf":[{"$ref":"#/definitions/magic_ip-address"}]},"dns_servers":{"type":"array","items":{"$ref":"#/definitions/magic_ip-address"}},"reservations":{"description":"Mapping of MAC addresses to IP addresses","type":"object","additionalProperties":{"description":"IP address associated with the MAC address","type":"string"},"examples":[{"00:11:22:33:44:55":"192.0.2.100","AA:BB:CC:DD:EE:FF":"192.168.1.101"}]}}},"magic_dhcp_option":{"description":"A custom DHCP option to include in DHCP responses.","type":"object","properties":{"code":{"description":"DHCP option number (1-254). Options 0 and 255 are reserved by RFC 2132. Options 3, 6, and 51 are not allowed because they conflict with connector-managed configuration.","type":"integer","maximum":254,"minimum":1},"type":{"description":"The type of the option value. text: a string (max 255 bytes). hex: colon-separated hex bytes (e.g. \"01:04:aa:bb:cc\", max 255 bytes). ip: an IPv4 address (e.g. \"10.20.30.40\"). byte: an unsigned integer 0-255 (1 byte). short: an unsigned integer 0-65535 (2 bytes). integer: an unsigned integer 0-4294967295 (4 bytes).\n","type":"string","enum":["text","hex","ip","byte","short","integer"]},"value":{"description":"The option value, interpreted according to the type field.","type":"string"}},"required":["code","type","value"],"examples":[{"code":66,"type":"ip","value":"10.20.30.40"}]}}},"name":"Update Site LAN","id":"cloudflare.magic-site-lans-update-lan","example":{"path":{"site_id":"023e105f4ecef8ad9ca31a8372d0c353","account_id":"023e105f4ecef8ad9ca31a8372d0c353","lan_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{}},"maxRequests":1,"summary":false}}