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 #140 background imageLoading...
Page #140 background image
vCloud API Programming Guide
140 VMware, Inc.
Import a Virtual Machine as a vApp Template
TheworkflowtoimportavirtualmachineasavApptemplateissimilar.AsshowninExample 733,the
requestURListheimportVmAsVAppTemplatelinkintheVimServerresponsebody.Therequestbodyisan
ImportVmAsVAppTemplateParamselementthatcancontainanoptionalreferencetoacataloginwhichthe
template
willbeenteredaftertheimportiscomplete.TheresponseisanunresolvedvAppTemplatebody
containingataskthattrackstheimport.
Example 7-33. Import a Virtual Machine as a vApp Template
Request:
POST http://vcloud.example.com/api/v1.0/admin/extension/vimServer/100/importVmAsVappTemplate
Content-type: application/vnd.vmware.admin.importVmAsVAppTemplateParams+xml
...
<ImportVmAsVAppTemplateParams xmlns="http://www.vmware.com/vcloud/extension/v1"
name="ImportedWin2K8-Template" sourceMove="false">
<VmMoRef>vm-642</VmMoRef>
<Vdc href="http://vcloud.example.com/api/v1.0/vdc/2"/>
<Catalog href="http://vcloud.example.com/api/v1.0/catalog/32"/>
</ImportVmAsVAppTemplateParams>
Response:
201 Created
Content-Type: application/vnd.vmware.vcloud.vAppTemplate+xml
...
<VAppTemplate status="0" name="ImportedWin2K8-Template"
type="application/vnd.vmware.vcloud.vAppTemplate+xml"
href="http://vcloud.example.com/api/v1.0/vAppTemplate/vappTemplate-64" ...>
...
<Description/>
<Tasks>
<Task ... operation=”Busy Virtual Application Template Win2K8” ...>
...
</Task>
</Tasks>
</VApp>

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