add the ability to separately specify internal/admin/public endpoint types
use get_bind_endpoint so no HA assumptions are made
use get_bind_endpoint correctly
adjust api endpoint search result variable name