Accessing vCD via PHP

This is how you use PHP to work with vCloud.

Getting ready

Download the PHP vCloud API for vCloud from http://www.vmware.com/go/vcloudsdkforphp.

I assume you will use PHP on Linux, so you might need a Linux VM with PHP libraries and the PHP base configuration. You probably need the HTTP_Request2 and Net_URL2 libraries.

Untar the download into the directory from where you would like to use the files. Place the new script in the main directory (vCloudPHP-5.1.2). You can move them; however, that requires you to reconfigure the pointer to the libraries.

If you are playing on a Windows environment, the base install might be different and you will need to follow the instructions that come with the Windows installer.

How to do it...

Get VMware vCloud Director Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.