4
Using the Examples
The vCloud SDK for .NET includes example programs that demonstrate how to use the SDK to develop client
applications. The examples are in the Samples folder of the SDK download.
This chapter contains the following topics:
"Building the Examples" on page 19
"Running the Examples" on page 19
Building the Examples
To build the examples in Visual Studio
1
Double‐click the file samples.sln.
2
Click Build > Build Solution.
Running the Examples
Examples listed in Table
Table 4-1. User API Examples
Example Name
CatalogInventory
CatalogItemCRUD
DiskCRUD
ListAllvApps
ThreadSample
VdcInventoryCRUD
VMware, Inc.
4‐1 can be run by any user with rights to create and modify catalog items and vApps.
Description
Lists name and href for all items in all catalogs in the organization.
Create, retrieve, update, or delete a catalog item.
Create, retrieve, update, or delete a virtual hard disk in a Vm object.
List all vApps in a vDC by name and href.
Examples of how to implement multi‐threaded client applications
that execute multiple requests in parallel.
List name and href for all vApps, vApp templates, and media
images in all vDCs in the organization.
4
19