Cisco Cisco Prime Network Services Controller 3.0 Guide Du Développeur

Page de 103
Page 54 
OL-28369-01 
   <inConfig> 
   <operationTask 
   description="COMPLETED: download image to 
NSC(FSM:sam:dme:ImageAbsImageImporterDownloadImage)" 
   dn="operationEp/task-54" 
   finishedTime="2013-09-30T22:01:16.195" 
   opState="completed" 
   status="modified"/> 
   </inConfig> 
 </configMoChangeEvent> 
InterCloud Template Creation from Imported VM Image 
To create a template from an imported VM image, the API user needs to create a hcloudVmProviderImage Mo and 
add the following Mos under that hcloudVmProviderImage Mo as children: computeOs, computeResource, 
storageResource and hcloudVmVnicTemplate. 
The following is an API request example to create an  
“OvaTemplate” template from an imported OVA image. 
 
 <configConfMos 
 cookie="<real_cookie>" 
 commCookie="5/12/0/e2" 
 srcExtSys="172.25.97.162" 
 destExtSys="172.25.97.162" 
 srcSvc="sam_extXMLApi" 
 destSvc="resource-mgr_dme" 
 inHierarchical="no"> 
 <inConfigs> 
 <pair key="hcloud-root/vpc-VPc1/cp-vm-OvaTemplate"> 
   <hcloudVmProviderImage 
   adminState="deploy" 
   deployState="undeployed" 
   deploymentId="" 
   dn="hcloud-root/vpc-VPc1/cp-vm-OvaTemplate" 
   driverImageDn="" 
   imageDn="org-root/vm-img-ova1Image1" 
   imageId="" 
   markDelete="no" 
   name="OvaTemplate" 
   srcVmInstEpDn="" 
   sshUser="root" 
   status="created" 
   type="Vm"/> 
 </pair> 
 <pair key="hcloud-root/vpc-VPc1/cp-vm-OvaTemplate/os"> 
   <computeOs 
   architecture="64bit" 
   combinedName="RHEL_6.3_64bit" 
   dn="hcloud-root/vpc-VPc1/cp-vm-OvaTemplate/os" 
   fsType="" 
   os="RHEL" 
   status="created" 
   version="Unknown"/> 
 </pair> 
  <pair key="hcloud-root/vpc-VPc1/cp-vm-OvaTemplate/compute-res"> 
   <computeResource 
   actualCpu="1" 
   actualMemorySize="1024" 
   cpu="1" 
   dn="hcloud-root/vpc-VPc1/cp-vm-OvaTemplate/compute-res" 
   memorySize="1024" 
   status="created"/> 
 </pair> 
 <pair key="hcloud-root/vpc-VPc1/cp-vm-OvaTemplate/storage-res"> 
   <storageResource