Skip to main content

Filter

Location in GUI: Tenants » XXX » Contracts » Filters

Diagram

Classes

tenants (apic)

NameTypeConstraintMandatoryDefault Value
filtersList[filters]No

filters (apic.tenants)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
aliasStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$No
descriptionStringRegex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$No
entriesList[entries]No

entries (apic.tenants.filters)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
aliasStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$No
ethertypeChoiceunspecified, ipv4, trill, arp, ipv6, mpls_ucast, mac_security, fcoe, ipNoip
protocolAnyInteger[min: 0, max: 255] or Choice[unspecified, icmp, igmp, tcp, egp, igp, udp, icmpv6, eigrp, ospfigp, pim, l2tp]Notcp
source_from_portAnyInteger[min: 0, max: 65535] or Choice[unspecified, ftpData, smtp, dns, http, pop3, https, rtsp, ssh]Nounspecified
source_to_portAnyInteger[min: 0, max: 65535] or Choice[unspecified, ftpData, smtp, dns, http, pop3, https, rtsp, ssh]No
destination_from_portAnyInteger[min: 0, max: 65535] or Choice[unspecified, ftpData, smtp, dns, http, pop3, https, rtsp, ssh]Nounspecified
destination_to_portAnyInteger[min: 0, max: 65535] or Choice[unspecified, ftpData, smtp, dns, http, pop3, https, rtsp, ssh]No
statefulBooleantrue, falseNofalse

Examples

Simple example:

apic:
tenants:
- name: ABC
filters:
- name: FILTER1
entries:
- name: HTTP
ethertype: ip
protocol: tcp
destination_from_port: 80
stateful: true

Full example:

apic:
tenants:
- name: ABC
filters:
- name: FILTER1
alias: ABC-FILTER1
description: My Desc
entries:
- name: ENTRY1
alias: ENTRY1-ALIAS
ethertype: ip
protocol: tcp
source_from_port: 80
source_to_port: 80
destination_from_port: 80
destination_to_port: 80
stateful: true