You can use the vCloud Suite SDK to work with content library features. For example, you can create a local content library on a datastore.
The following sample script illustrates how you can get the content library service and retrieve information about existing content libraries. You can then combine working with both the vCenter Server API and the vCloud Suite SDK, as well as their corresponding objects, to create a new content library on a specific datastore. Optionally, you can create an advanced function that lets you list all content libraries and their details.