POST /accounts/{account_id}/magic/sites/{site_id}/acls

Creates a new Site ACL.

Servers

Path parameters

Name Type Required Description
site_id String Yes
account_id String Yes

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
name String Yes

The name of the ACL.

description String No

Description for the ACL.

forward_locally Boolean No

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.

protocols[] Array No
unidirectional Boolean No

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.

lan_2 Object Yes
lan_2.lan_id String Yes

The identifier for the LAN you want to create an ACL policy with.

lan_2.port_ranges[] Array No

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.

lan_2.subnets[] Array No

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.

lan_2.lan_name String No

The name of the LAN based on the provided lan_id.

lan_2.ports[] Array No

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.

lan_1 Object Yes
lan_1.lan_id String Yes

The identifier for the LAN you want to create an ACL policy with.

lan_1.port_ranges[] Array No

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.

lan_1.subnets[] Array No

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.

lan_1.lan_name String No

The name of the LAN based on the provided lan_id.

lan_1.ports[] Array No

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.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.