Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 247559

//communities130.rssing.com/chan-7575833/article1443-live.html

$
0
0

Hello,

<Vdc xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" status="1" name="Org-vDC-xxx-SATA" id="urn:vcloud:vdc:80f0d15e-e9d9-4925-adb1-aed94df85482" type="application/vnd.vmware.vcloud.vdc+xml" href="https://xxx.xxx.xxx/api/vdc/80f0d15e-e9d9-4925-adb1-aed94df85482" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5http://xx.xx.xxx.xx/api/v1.5/schema/master.xsd">  <Link rel="up" type="application/vnd.vmware.vcloud.org+xml" href="https://xxx.xxx.xxx.xxx/api/org/65b449a2-e41a-419c-99ef-c4fd10f333d5"/>  <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="https://xxx.xxx.xxx.xxx/api/vdc/80f0d15e-e9d9-4925-adb1-aed94df85482/metadata"/>  <Link rel="add" type="application/vnd.vmware.vcloud.uploadVAppTemplateParams+xml" href="https://xxx.xxx.xxx.xxx/api/vdc/80f0d15e-e9d9-4925-adb1-aed94df85482/action/uploadVAppTemplate"/>  <Link rel="add" type="application/vnd.vmware.vcloud.media+xml" href="https://xxx.xxx.xxx.xxx/api/vdc/80f0d15e-e9d9-4925-adb1-aed94df85482/media"/>  <Link rel="add" type="application/vnd.vmware.vcloud.instantiateVAppTemplateParams+xml" href="https://xxx.xxx.xxx.xxx/api/vdc/80f0d15e-e9d9-4925-adb1-aed94df85482/action/instantiateVAppTemplate"/>  <Link rel="add" type="application/vnd.vmware.vcloud.cloneVAppParams+xml" href="https://xxx.xxx.xxx.xxx/api/vdc/80f0d15e-e9d9-4925-adb1-aed94df85482/action/cloneVApp"/>  <Link rel="add" type="application/vnd.vmware.vcloud.cloneVAppTemplateParams+xml" href="https://xxx.xxx.xxx.xxx/api/vdc/80f0d15e-e9d9-4925-adb1-aed94df85482/action/cloneVAppTemplate"/>  <Link rel="add" type="application/vnd.vmware.vcloud.cloneMediaParams+xml" href="https://xxx.xxx.xxx.xxx/api/vdc/80f0d15e-e9d9-4925-adb1-aed94df85482/action/cloneMedia"/>  <Link rel="add" type="application/vnd.vmware.vcloud.captureVAppParams+xml" href="https://xxx.xxx.xxx.xxx/api/vdc/80f0d15e-e9d9-4925-adb1-aed94df85482/action/captureVApp"/>  <Link rel="add" type="application/vnd.vmware.vcloud.composeVAppParams+xml" href="https://xxx.xxx.xxx.xxx/api/vdc/80f0d15e-e9d9-4925-adb1-aed94df85482/action/composeVApp"/>  <Description/>  <AllocationModel>AllocationPool</AllocationModel>

My goal is to add a VM to an existing vApp using a VM inside vAppTemplates.

I noticed that i do not have a reComposevApp but only a composeVApp element when displaying Org:

 

I have:

SourceVM: https://xxx.xxx.xxx.xxx/api/vAppTemplate/vm-6ef03da1-e55d-4748-9751-1066abb1852e

TargetvApp: Demo-vApp

 

So I do a post:

 

 

instantiate=`curl -s -k --header "$authHeader" -H "Content-Type:application/vnd.vmware.vcloud.recomposeVAppParams+xml" -X POST https://xxx.xxx.xxx/api/vdc/80f0d15e-e9d9-4925-adb1-aed94df85482/action/recomposeVApp -d @deploy_request`

 

deploy_request:

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><RecomposeVAppParams name="Demo-vApp">    <SourcedItem sourceDelete="false">        <Source type="application/vnd.vmware.vcloud.vm+xml" name="NewVMinVAPP href="https://xxx.xxx.xxx.xxx/api/vAppTemplate/vm-6ef03da1-e55d-4748-9751-1066abb1852e"/>    </SourcedItem></RecomposeVAppParams>

 

 

I get this message back:

 

<?xml version="1.0" encoding="UTF-8"?><Error xmlns="http://www.vmware.com/vcloud/v1.5" minorErrorCode="INTERNAL_SERVER_ERROR" message="Unable to perform this action. Contact your cloud administrator." majorErrorCode="500" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5http://xxx.xxx.xxx/api/v1.5/schema/master.xsd"></Error>

 

 

Why don't I get a recomposevApp element in the Vdc output above?

How can I else add a VM to an existing vApp?

 

Thank


Viewing all articles
Browse latest Browse all 247559

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>