Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Use the REST API to Add ACL Tags to a Switch (Use Case)

Read this topic to understand the role Access Control Lists (ACLs) play in API access control.

You can use Access Control Lists (ACLs) in the API to allow or deny traffic between clients on a connected switch. You must configure separate rules for both inbound and outbound traffic. ACLs are mainly used to control intra-VLAN traffic, whereas any inter-VLAN traffic is filtered by the stateful rules of the router or firewall.

Note: You can only configure and manage ACLs in the API at this time. This functionality is not fully available in the Mist portal, as configuring from the portal requires you to configure filters on the RADIUS server first, and then create the switch policies in the Mist portal. See Firewall Filters.

Add ACL Tags to a Switch

In the Mist API, you can apply ACLs to all switches in a site, rather than having to manage ACLs at the device level. You can assign permissions to switches using ACL policies and ACL tags. ACL tags enable you to define permissions within them, then you assign the tags where access control is needed in the policy. In other words, ACL tags are reusable network objects that can be referenced in ACL policies.

Note: ACL configuration in the Mist API is only available for switches at this time.

Let's say you want to control the traffic that will be forwarded by a switch, for example, if you want to allow or deny certain traffic from a wired client to the rest of the network. To do this, you can add ACL tags in the ACL policy to control the allowed or denied traffic sources and destinations from which the switch is allowed to forward traffic.

You can set these rules in the API by adding the source and destination tags within the acl_tags object referenced within the acl_policies and specify the action you want the switch to take (allow or deny) when the traffic matches the ACL tags. Remember, you must configure separate rules for both inbound and outbound traffic due to the stateless nature of ACLs.

You can configure this from the Mist API Reference by navigating to Update Site Device > Body > Device Switch.

Below is a sample payload of the ACL policy configuration and the definitions for each of the ACL tags are featured therein:

For more information on the available ACL tags you can add, see Acl Tag.