VMware, Inc.
135
Chapter 7 VMware vSphere Platform Operations
Modify an External Network
To
modify
an
external
network,
make
a
PUT
request
to
its
edit
link,
and
supply
a
modified
version
of
the
VMWExternalNetwork
element
in
the
request
body.
In
Example 7
‐
24
,
the
client
modifies
the
IpRange
EndAddress
of
the
external
network
created
in
Example 7
‐
22
,
then
includes
the
modified
body
in
a
PUT
request
to
the
edit
link
that
was
returned
when
the
external
network
was
created.
Example 7-24.
Modify an External Network
Request:
PUT http://vcloud.example.com/api/v1.0/admin/extension/externalnet/27
Content-Type: application/vnd.vmware.admin.vmwextexml
...
<vmext:VMWExternalNetwork xmlns:vmext="http://www.vmware.com/vcloud/extension/v1"
xmlns:vcloud="http://www.vmware.com/vcloud/v1" name="ExternalNet-VC100"
href="http://vcloud.example.com/api/v1.0/admin/extension/externalnet/27"/>
<vcloud:Description>Description>Portgroup-25 on VC-100</vcloud:Description>
<vcloud:Configuration>
<vcloud:IpScope>
<vcloud:IsInherited>false</vcloud:IsInherited>
<vcloud:Gateway>10.147.58.253</vcloud:Gateway>
<vcloud:Netmask>255.255.255.0</vcloud:Netmask>
<vcloud:Dns1>10.147.115.1</vcloud:Dns1>
<vcloud:Dns2>10.147.115.2</vcloud:Dns2>
<vcloud:DnsSuffix>eng.vmware.com</vcloud:DnsSuffix>
<vcloud:IpRanges>
<vcloud:IpRange>
<vcloud:StartAddress>10.147.58.1</vcloud:StartAddress>
<vcloud:EndAddress>10.147.58.201</vcloud:EndAddress>
</vcloud:IpRange>
</vcloud:IpRanges>
</vcloud:IpScope>
<vcloud:FenceMode>isolated</vcloud:FenceMode>
</vcloud:Configuration>
<vmext:VimPortGroupRef>
<vmext:VimServerRef type="application/vnd.vmware.admin.vmwxml"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/100"/>
<vmext:MoRef>dvportgroup-25</vmext:MoRef>
<vmext:VimObjectType>NETWORK</vmext:VimObjectType>
</vmext:VimPortGroupRef>
</vmext:VMWExternalNetwork>
Response:
200 OK
Content-Type: application/vnd.vmware.admin.vmwextexml
...
<vmext:VMWExternalNetwork xmlns:vmext="http://www.vmware.com/vcloud/extension/v1"
xmlns:vcloud="http://www.vmware.com/vcloud/v1" name="ExternalNet-VC100">
...
</vmext:VMWExternalNetwork>
Remove an External Network
To
remove
an
external
network,
a
system
administrator
can
make
a
DELETE
request
to
its
rel="remove"
link.
The
response
is
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...