<vmext:VimServerRef type="application/vnd.vmware.admin.vmwvserver+xml"
<vmext:MoRef>dvs-28</vmext:MoRef>
<vmext:VimObjectType>DV_SWITCH</vmext:VimObjectType>
</vmext:VimSwitchRef>
</vmext:VMWNetworkPool>
Get Information About a Network Pool
A system administrator can use the href attribute value of any NetworkPoolReference or VMWNetworkPool
element to get more information about the network pool. Example
network pool created in Example
part of the response is shown in the example
Example 7-27. Get Information About a Network Pool
Request:
GET http://vcloud.example.com/api/v1.0/admin/extension/networkPool/41
Response:
200 OK
...
<vmext:VMWNetworkPool xmlns:vmext="http://www.vmware.com/vcloud/extension/v1"
<vcloud:Description>Extra pool for new Org Nets</vcloud:Description>
...
</vmext:VMWNetworkPool>
Modify a Network Pool
To modify a network pool, make a PUT request to its edit link, and supply a modified version of the
VMWNetworkPool body. In Example
in Example
7‐26, then includes the modified body in a PUT request to the edit link that was returned when
the network pool was created.
Example 7-28. Modify a Network Pool
Request:
PUT http://vcloud.example.com/api/v1.0/admin/extension/networkPool/41
Content-Type: application/vnd.vmware.admin.networkPool+xml
...
<vmext:VMWNetworkPool xmlns:vmext="http://www.vmware.com/vcloud/extension/v1"
<vcloud:Description>Extra pool for new Org Nets</vcloud:Description>
<vmext:VlanRange>
<vmext:Start>100</vmext:Start>
<vmext:End>150</vmext:End>
</vmext:VlanRange>
<vmext:VimSwitchRef>
<vmext:VimServerRef type="application/vnd.vmware.admin.vmwvserver+xml"
<vmext:MoRef>dvs-28</vmext:MoRef>
<vmext:VimObjectType>DV_SWITCH</vmext:VimObjectType>
</vmext:VimSwitchRef>
</vmext:VMWNetworkPool>
VMware, Inc.
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/100"/>
7‐26. The entire VMWNetworkPool body is returned in the response, but only
xmlns:vcloud="http://www.vmware.com/vcloud/v1" xsi:type="vmext:VlanPoolType"
name="NewVlanPool" type="application/vnd.vmware.admin.networkPool+xml"
href="http://vcloud.example.com/api/v1.0/admin/extension/networkPool/41" ... >
7‐28, the client modifies the VlanRange End of the network pool created
xmlns:vcloud="http://www.vmware.com/vcloud/v1" xsi:type="vmext:VlanPoolType"
name="NewVlanPool">
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/100"/>
Chapter 7 VMware vSphere Platform Operations
7‐27 retrieves information about the
137