Identify which CAPsMAN interface belongs to which AP

I have here a RB3011UiAS-RM (gate) with CAPsMAN enabled and configuring and provisioning two cAP ACs (ap1, ap2).
Now I wanted to gather some information and started to write a script but I stumbled accross the CAPsMAN interface name (on the RB3011) and I just cannot make any link on to which AP (either ap1 or ap2) this interface belongs to.

How can I distinguish which interface belongs to which AP?

/caps-man provisioning add name-format=identity

That helped me a lot! Thank you.
I’m now also using the prefix.