Cisco APIC Security Configuration Guide, Release 6.2(x)

PDF

Cisco APIC Security Configuration Guide, Release 6.2(x)

View ACL permit and deny logs by using the REST API

Want to summarize with AI?

Log in

Retrieves access control list (ACL) permit and deny log entries by querying the applicable managed object class.


Before you begin

Enable contract permit or deny logging and generate traffic that matches the logged rule.

Use the following managed object (MO) classes to retrieve flow-level or packet-level ACL logs:

Table 1. ACL log managed object classes

Log type

Flow MO class

Packet MO class

Layer 2 permit

acllogPermitL2Flow

acllogPermitL2Pkt

Layer 2 drop

acllogDropL2Flow

acllogDropL2Pkt

Layer 3 permit

acllogPermitL3Flow

acllogPermitL3Pkt

Layer 3 drop

acllogDropL3Flow

acllogDropL3Pkt

Procedure

Send a GET request for the required ACL log MO class.

Example:

The following request retrieves Layer 3 drop flow logs:

GET https://apic_ip_address/api/class/acllogDropL3Flow

The response contains the Layer 3 drop flow log entries available on the fabric.