This example is based on the code in the content_library_workflow.py sample file. The sample resource is located in the following vCloud Suite SDK for Python directory, client/samples/src/com/vmware/vcloud/suite/sample/workflow.

This example uses the steps that are described in Listing All Content Libraries.

from com.vmware import content_client
 
library_stub = content_client.Library(my_stub_config)
libraries = library_stub.list()
print(’List of all library identifiers:’)
for library_id in library_ids :
  library = library_stub.get(library_id)
  print(’Library ID {}: {}’.format(library_id, library.name))