{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Update a specific Site ACL.","properties":{"path":{"type":"object","properties":{"site_id":{"$ref":"#/definitions/magic_identifier"},"account_id":{"$ref":"#/definitions/magic_identifier"},"acl_id":{"$ref":"#/definitions/magic_identifier"}},"required":["site_id","account_id","acl_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/magic_acl_update_request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"magic_identifier":{"description":"Identifier","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"magic_acl_update_request":{"type":"object","properties":{"description":{"description":"Description for the ACL.","type":"string","examples":["Allows local traffic between PIN pads and cash register."]},"forward_locally":{"$ref":"#/definitions/magic_forward_locally"},"lan_1":{"$ref":"#/definitions/magic_lan-acl-configuration"},"lan_2":{"$ref":"#/definitions/magic_lan-acl-configuration"},"name":{"description":"The name of the ACL.","type":"string","examples":["PIN Pad - Cash Register"]},"protocols":{"type":"array","items":{"description":"Array of allowed communication protocols between configured LANs. If no protocols are provided, all protocols are allowed.","enum":["tcp","udp","icmp"],"type":"string"}},"unidirectional":{"$ref":"#/definitions/magic_unidirectional"}}},"magic_forward_locally":{"description":"The desired forwarding action for this ACL policy. If set to \"false\", the policy will forward traffic to Cloudflare. If set to \"true\", the policy will forward traffic locally on the Magic Connector. If not included in request, will default to false.","type":"boolean"},"magic_lan-acl-configuration":{"type":"object","properties":{"lan_id":{"description":"The identifier for the LAN you want to create an ACL policy with.","type":"string"},"lan_name":{"description":"The name of the LAN based on the provided lan_id.","type":"string"},"port_ranges":{"description":"Array of port ranges on the provided LAN that will be included in the ACL. If no ports or port rangess are provided, communication on any port on this LAN is allowed.","type":"array","items":{"$ref":"#/definitions/magic_acl-port-range"}},"ports":{"description":"Array of ports on the provided LAN that will be included in the ACL. If no ports or port ranges are provided, communication on any port on this LAN is allowed.","type":"array","items":{"$ref":"#/definitions/magic_port"}},"subnets":{"description":"Array of subnet IPs within the LAN that will be included in the ACL. If no subnets are provided, communication on any subnets on this LAN are allowed.","type":"array","items":{"$ref":"#/definitions/magic_acl-subnet"}}},"required":["lan_id"]},"magic_unidirectional":{"description":"The desired traffic direction for this ACL policy. If set to \"false\", the policy will allow bidirectional traffic. If set to \"true\", the policy will only allow traffic in one direction. If not included in request, will default to false.","type":"boolean"},"magic_acl-port-range":{"description":"A valid port range value.","type":"string","examples":["8080-9000"]},"magic_port":{"type":"integer","examples":[1]},"magic_acl-subnet":{"oneOf":[{"$ref":"#/definitions/magic_ip-address"},{"$ref":"#/definitions/magic_cidr"}]},"magic_ip-address":{"description":"A valid IPv4 address.","type":"string","examples":["192.0.2.1"]},"magic_cidr":{"description":"A valid CIDR notation representing an IP range.","type":"string","examples":["192.0.2.0/24"]}}},"name":"Update Site ACL","id":"cloudflare.magic-site-acls-update-acl","example":{"path":{"site_id":"023e105f4ecef8ad9ca31a8372d0c353","account_id":"023e105f4ecef8ad9ca31a8372d0c353","acl_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{}},"maxRequests":1,"summary":false}}