Connect to the network on a catalog server as a user with the star$define role granted to it.
To create a new port, use create_port() to create the port. When created, a port is universally available to all sources across the network.
To drop an existing port, detach the port from any sources using detach_source() and then use drop_port() to drop the port. You can query the star$sources view to find sources attached to the port.