Zone-pair security is the central component of Zone-Based Firewall (ZBF) that binds a source zone to a destination zone and defines the traffic policy between them. A zone-pair references two previously defined security zones and optionally attaches an inspect-type policy-map via service-policy type inspect to activate stateful traffic inspection.
The self zone is a built-in IOS-XE security zone that represents traffic originated by or destined to the router itself (control-plane and management traffic). It does not need to be declared under zone_security.zones. A zone-pair where source: self governs router-originated traffic (e.g., outbound SSH/SNMP/NTP), while destination: self governs traffic terminating on the router (e.g., inbound management).