EasyManuals Logo

VMware VCLOUD API 1.0 - API User Manual

VMware VCLOUD API 1.0 - API
212 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #131 background imageLoading...
Page #131 background image
VMware, Inc. 131
Chapter 7 VMware vSphere Platform Operations
</vmext:VimObjectRef>
</vmext:DataStoreRefs>
<vmext:ResourcePoolRef>
<vmext:VimServerRef type="application/vnd.vmware.admin.vmwvirtualcenter+xml" name="VC2"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101"/>
<vmext:MoRef>resgroup-220</vmext:MoRef>
<vmext:VimObjectType>RESOURCE_POOL</vmext:VimObjectType>
</vmext:ResourcePoolRef>
<vmext:VimServer type="application/vnd.vmware.admin.vmwvirtualcenter+xml" name="VC2"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101"/>
<vmext:HostReferences>
<vmext:HostReference type="application/vnd.vmware.admin.host+xml" name="10.115.121.11"
href="http:// vcloud.example.com/api/v1.0/admin/extension/host/1"/>
<vmext:HostReference type="application/vnd.vmware.admin.host+xml" name="10.115.121.9"
href="http:// vcloud.example.com/api/v1.0/admin/extension/host/2"/>
</vmext:HostReferences>
</vmext:VMWProviderVdc>
Theresponseechoestherequestbutnowhasastatusattributewhosevalueisinitially0andanhref
attributewhosevalueistheURLofthenewprovidervDC.Italsoincludessomeadditionalelementscreated
bytheserver:
Linkelementsforactionsandrelatedreferences
ATaskelementthattrackscreationoftheprovidervDC.Whenthetaskcompletes,thevalueofthe
providervDC’sstatusattributechangesto1.
AHostReferenceselementthatcontainsreferencestotheESX/ESXihostsregisteredtothevCenter
serverbackingthisprovidervDC.
Examine the vSphere Objects in a Provider vDC
AsystemadministratorcanretrievealistofProviderVdcReferences(see“ListProvidervDCsinavCloud”
onpage 120),thenusethevalueofthehrefattributeinanyProviderVdcReferenceasthetargetofaGET
request.TheresponseisaVMWProviderVdcbodysimilartotheoneshownintheresponsein
Example 718.
Modify a Provider vDC
TomodifyaprovidervDC,makeaPUTrequesttoitseditlink,andsupplyamodifiedversionofthe
VMWProviderVdcelementintherequestbody.InExample 719,theclientmodifiestheCpu Allocationof
theprovidervDCcreatedinExample 718,thenincludesthemodifiedelementinaPUT
requesttotheedit
linkintheVMWProviderVdcelement.
Youmustincludeallrequiredelementsandattributesintherequest,eventhosethatyouarenotchanging.
Example 7-19. Modify a Provider vDC
Request:
PUT http://vcloud.example.com/api/v1.0/admin/extension/providervdc/2
Content-Type: application/vnd.vmware.admin.vmwprovidervdc+xml
...
<vmext:VMWProviderVdc xmlns:vmext="http://www.vmware.com/vcloud/extension/v1"
xmlns:vcloud="http://www.vmware.com/vcloud/v1" name="PvDC-VC2"
type="application/vnd.vmware.admin.vmwprovidervdc+xml">
<vcloud:ComputeCapacity>
<vcloud:Cpu>
<vcloud:Units>MHz</vcloud:Units>
<vcloud:Allocation>4096</vcloud:Allocation>
<vcloud:Total>24675</vcloud:Total>
</vcloud:Cpu>
<vcloud:Memory>
<vcloud:Units>MB</vcloud:Units>
<vcloud:Allocation>1319056</vcloud:Allocation>
<vcloud:Total>2097152</vcloud:Total>

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the VMware VCLOUD API 1.0 - API and is the answer not in the manual?

VMware VCLOUD API 1.0 - API Specifications

General IconGeneral
BrandVMware
ModelVCLOUD API 1.0 - API
CategorySoftware
LanguageEnglish

Related product manuals