3
Hello vCloud: A Structured Workflow
Example
This chapter presents an example of using the vCloud SDK for .NET to implement a structured workflow
through the lifecycle of a vApp.
This chapter contains the following topics.
"Running the HellovCloud Example" on page 13
"Logging In and Getting an Organization List" on page 14
"Getting References to the vDC and Catalog" on page 14
"Upload an OVF Package to Create a vApp Template" on page 14
"Add the vApp Template to a Catalog" on page 16
"Instantiate the vApp Template" on page 16
"Operate the vApp" on page 17
Running the HellovCloud Example
The HellovCloud example, included in the Samples folder, demonstrates the following operations supported
by the vCloud SDK for .NET:
Logging in to the vCloud
Uploading an OVF package to create a vApp template
Adding the vApp template to a catalog
Instantiating the vApp template to create a vApp
Operating the vApp
The file HellovCloud.txt in the Samples folder includes example program input and output.
N
Before you can run the HellovCloud example, you must build it. For information about building the
OTE
examples, see "Building the Examples" on page 19.
To run the HellovCloud example, use a command of the following form:
.Net HellovCloud
ovfFileLocation vmdkFileLocation vmdkFileName catalogName
The following options are required:
vCloudApiVersionsURL is the base API URL of the vCloud.
versionId is the version of the API to use. Use the value 1.0 with vCloud Director 1.0.
username is the name of a vCloud Director user, in the form user@vcloud‐organization, who has rights to
upload OVF, create vApp templates, create vApps, and operate vApps.
VMware, Inc.
vCloudApiVersionsURL versionId user@vcloud-organization password orgName vdcName
3
13