
VMware, Inc. 9
Chapter 1 About the vCloud SDK for .NET
Virtual Systems and Media Images in a vCloud
VirtualsystemsandmediaimagesarestoredinavDCandcanbeincludedinacatalog.Mediaimagesare
storedintheirnativerepresentation(ISOorfloppy).Virtualsystemsarestoredastemplates,usinganopen
standardformat(OVF1.0).Thesetemplatescanberetrievedfromcatalogsandtransformedintovirtual
systems,calledvApps,throughaprocesscalledinstantiation,whichbindsatemplate’sabstractresource
requirementstoresourcesavailableinavDC.AvAppcontainsoneormoreindividualvirtualmachines(Vm
elements),alongwithparametersthatdefineoperationaldetailssuchas:
Howthecontainedvirtualmachinesareconnectedtoeachotherandtoexternalnetworks.
Theorderinwhichindividualvirtualmachinesarepoweredonoroff.
End‐userlicenseagreementtermsforeachvirtualmachine.
Deploymentleaseterms(typicallyinheritedfromthecontainingorganization)thatconstrainthevApp’s
consumptionofvDCresources
Accesscontrolinformationspecifyingwhichusersandgroupscanperformoperationssuchasdeploy,
poweron,modify,andsuspendonthevAppandthevirtualmachinesitcontains.
vCloud SDK for .NET Design
ThevCloudSDKfor.NETprovidesobject‐specificmethodsforcreating,updating,retrieving,anddeleting
objectsdefinedbythevCloudAPI.Italsoprovidesmethodsforoperatingvirtualsystems.TheSDKincludes
thefollowingclasslibraries
com.vmware.vcloud.api.rest.schemaprovidesconstructor,getter,andsettermethodsforallobjects
definedbythevCloudAPI.
com.vmware.vcloud.sdkprovidesmethodsthatcreate,update,retrieve,anddeletevCloudAPIobjects.
com.vmware.vcloud.sdk.adminprovidesmethodsthatcreate,update,retrieve,anddeletevCloud
administrativeAPIobjects.
com.vmware.vcloud.sdk.admin.extensionsprovidesmethodsthatcreate,update,retrieve,and
deletevCloudAPIvSphereextensionobjects.
com.vmware.vcloud.sdk.utilityprovidesutilitymethodsthatsimplifytheimplementationofclients.
ManyoftheclassesimplementedintheselibrariesarewrapperclasseswhosemethodsaccessvCloudAPI
resourcesusinganobjectreference.EachvCloudAPIobjectreferenceincludestheURL(hrefattributevalue),
resourcetype,andnamepropertiesthatdefinetheobject.Staticmethodsgetresourcesbypassingobject
references,andactasconstructorsforSDKwrapperobjects.
NOTEThevCloudSDKfor.NETdoesnotprovideobjectlifecyclemanagement.Everywrapperobject
representstheresourceatthetimeoftheGEToperation.IfaclientmakesmultipleGETrequestsforthesame
resource,theclientreceivesmultiplerepresentationsoftheresourcewrappedinthehelperobject.Thereisno
automaticrefreshoftheclient‐siderepresentation.Itistheclient’sresponsibilitytomakenewrequeststoget
thelatestvalues.Toavoidmemoryleaks,theclientmustdisposeofobjectsthatarenotinuse.