You can filter the list of content libraries and retrieve only the libraries that match your specific criteria. For example, you might want to publish all local libraries with a specific name.
Prerequisites
Verify that you have access to the Library service.