vCloud API Programming Guide
68
VMware, Inc.
<ovf:StartupSection xmlns:vcloud="http://www.vmware.com/vcloud/v1"
vcloud:href="http://vcloud.example.com/api/v1.0/vApp/vapp-33/
startupSection/"
vcloud:type="application/vnd.vmware.vcloud.startupxml">
<ovf:Info>VApp startup section</ovf:Info>
<ovf:Item ovf:order="0" ovf:id="CRM-DB"/>
<ovf:Item ovf:order="1" ovf:id="CRM-CRM"/>
</ovf:StartupSection>
</InstantiationParams>
<AllEULAsAccepted>true</AllEULAsAccepted>
<DeleteItem href="http://vcloud.example.com/api/v1.0/vApp/vm-45" />
</RecomposeVAppParams>
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ... operation="Updating Virtual Application Example Corp’s CRM Appliance (33)" ...>
...
</Task>
Capture a vApp to Create a vApp Template
The
captureVApp
request
creates
a
vApp
template
from
an
instantiated
vApp.
The
request
body,
shown
in
Example 5
‐
8
,
is
a
captureVAppParams
element
that
specifies
the
href
of
the
vApp
to
capture,
along
with
a
name
and
optional
description
for
the
template
that
the
capture
creates.
Example 5-8.
Capture a vApp
Request:
POST http://vcloud.example.com/api/v1.0/vdc/5/action/captureVApp
Content-Type: application/vnd.vmware.vcloud.captureVApxml
...
<CaptureVAppParams name="Linux Server Template" xmlns="http://www.vmware.com/vcloud/v1">
<Description>Template captured from Ubuntu vApp</Description>
<Source href=”http://vcloud.example.com/api/v1.0/vApp/vApp-201”/>
</CaptureVAppParams>
Response:
201 Created
Content-Type: application/vnd.vmware.vcloud.vAppTxml
...
<VAppTemplate name="Linux Server Template"" type="application/vnd.vmware.vcloud.vApp+xml"
status="8" href="http://vcloud.example.com/api/v1.0/vAppTemplate/vappTemplate-20"
...>
<Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml"
href="http://vcloud.example.com/api/v1.0/vdc/5"/>
<Description>Template captured from Ubuntu vApp</Description>
<Tasks>
<Task ... operation="Capturing Virtual Application Template CaturedTemplate (20)" ... >
...
</Task>
</Tasks>
...
</VAppTemplate>
The
response
is
a
vAppTemplate
document
that
contains
a
Task
.
The
status
of
the
vAppTemplate
is
initially
0.
When
the
capture
operation
is
complete,
the
status
changes
to
8.
N
OTE
Before
it
can
be
captured,
a
vApp
must
be
undeployed
(
deployed="false"
).
Содержание VCLOUD API 1.0 - TECHNICAL NOTE
Страница 10: ...vCloud API Programming Guide 10 VMware Inc...
Страница 20: ...vCloud API Programming Guide 20 VMware Inc...
Страница 32: ...vCloud API Programming Guide 32 VMware Inc...
Страница 90: ...vCloud API Programming Guide 90 VMware Inc...
Страница 150: ...vCloud API Programming Guide 150 VMware Inc...
Страница 170: ...vCloud API Programming Guide 170 VMware Inc...
Страница 202: ...vCloud API Programming Guide 202 VMware Inc...
Страница 212: ...vCloud API Programming Guide 212 VMware Inc...