This example shows how to list the content libraries known to a single vAPI endpoint.
This example uses the steps that are described in Listing All Content Libraries.
use Com::Vmware::Content::Library; # Create client stub for general library functions. my $library_stub = new Com::Vmware::Content::Library($my_connection, $my_stub_config); # List content libraries. my @library_ids = $library_stub->list(); foreach my $id (@library_ids) { my $library = $library_stub->get($id); my $name = $library->get_name(); print "Library ID $id: $name"; }