User`s guide

About the Example Programs 4
The vCloud SDK for PHP includes example programs that demonstrate how to use the SDK to develop client
applications. The examples are in the samples folder of the SDK downloadable files.
Comments in the examples provide detailed information about how they use the features of the vCloud SDK
for PHP.
Required Permissions
Some of the example programs require system administrator privileges to run. Others can be run by any user
who can create and operate a vApp.
Table 4-1. Summary of Example Programs and Required Permissions
Example Name Description Required Permissions
login.php
Authenticates a user. Requires credentials for a system
administrator or user with the vApp
Author role.
ssologin.php
Authenticates a user using a SAML
identity provider (including the
vSphere SSO server).
Requires the SAML token provided by
the system's SSO server or SAML
identity provider.
createcatalogitem.php
Adds an item to a catalog. vApp Author.
createcatalog.php
Creates a catalog. vApp Author.
deployvapp.php
Deploys and powers on a vApp. vApp Author.
hellovcloud.php
A structured workflow example that
uses command-line parameters.
vApp Author.
instantiatevapptemplate.php
Instantiates a vApp template using
organization defaults.
vApp Author.
updatevm.php
Edits the memory required by a virtual
machine and reduces the existing
value by half.
vApp Author.
uploadvapptemplate.php
Uploads an OVF package to create a
vApp template.
vApp Author.
createorg.php
Creates an organization. System Administrator.
createvdc.php
Creates a vDC. System Administrator.
createextnet.php
Creates an external network from
vSphere resources.
System Administrator.
createnetpool.php
Creates a network pool from vSphere
resources.
System Administrator.
VMware, Inc. 27