vCloud API Programming Guide
132
VMware, Inc.
</vcloud:Memory>
</vcloud:ComputeCapacity>
<vcloud:StorageCapacity>
<vcloud:Units>MB</vcloud:Units>
<vcloud:Allocation>18944</vcloud:Allocation>
<vcloud:Total>2260224</vcloud:Total>
</vcloud:StorageCapacity>
<vmext:DataStoreRefs>
<vmext:VimObjectRef>
<vmext:VimServerRef type="application/vnd.vmware.admin.vmwvirtuaxml"
name="VC2"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/
101"/>
<vmext:MoRef>datastore-418</vmext:MoRef>
<vmext:VimObjectType>DATASTORE</vmext:VimObjectType>
</vmext:VimObjectRef>
</vmext:DataStoreRefs>
<vmext:ResourcePoolRef>
<vmext:VimServerRef type="application/vnd.vmware.admin.vmwvirtuaxml" 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.vmwvirtuaxml" name="VC2"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101"/>
</vmext:VMWProviderVdc>
Response:
200 OK
Content-Type: application/vnd.vmware.admin.vmwprovxml
...
<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.vmwprovxml" ... >
...
</vmext:VMWProviderVdc>
The
response,
most
of
which
is
not
shown
here,
echoes
the
request.
Enable or Disable a Provider vDC
A
system
administrator
can
use
the
enable
or
disable
action
links
in
a
VMWProviderVdc
element
to
enable
or
disable
a
provider
vDC,
as
shown
in
Example 7
‐
20
.
The
enablement
state
of
the
VMWProviderVdc
is
shown
in
its
IsEnabled
element.
Example 7-20.
Disable a Provider vDC
Request:
POST http://vcloud.example.com/api/v1.0/admin/extension/providervdc/43/action/disable
Response:
204 No Content
Remove a Provider vDC
Before
you
can
remove
a
provider
vDC,
you
must
disable
it.
After
the
provider
vDC
has
been
disabled,
its
representation
includes
a
rel="remove"
link.
A
system
administrator
can
make
a
DELETE
request
to
that
link
to
remove
a
provider
vDC
from
a
vCloud.
The
response
contains
a
Task
that
tracks
the
delete
operation.
Содержание 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...