Summary:
Deletes all resources from a resource pool and then adds the specified new resources.
Request specification:
Name |
Min/Max |
Type |
Description |
|
|
|
|
|
|
|
|
|
|
The new resource pool configuration. Use the appropriate subtype of |
|
|
|
|
|
Returns:
OK/Error
Description:
The call first removes all resources from a given pool, and then adds the new ones. The call does not check if the resources are currently in use, and it does not check if the new values are valid or are, in general, available. If you pass an empty resource structure, the call will remove all resources from a pool without adding the new ones.
Example 1:
The following example removes all current resources from the IP address pool and the adds a new IP address range.
<packet xmlns:ns2="http://www.swsoft.com/webservices/vzl/4.0.0/resourcem" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="4.0.0">
<target>resourcem</target>
<data>
<resourcem>
<set_pool>
<resource_pool xsi:type="ns2:resource_ip_poolType">
<type>resource_ip</type>
<ip_range>
<start_ip>10.17.3.125</start_ip>
<end_ip>10.17.3.127</end_ip>
</ip_range>
</resource_pool>
</set_pool>
</resourcem>
</data>
</packet>
Example 2
The following example removes all resources from the IP address pool without adding any new resources.
<packet xmlns:ns2="http://www.swsoft.com/webservices/vzl/4.0.0/resourcem" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="4.0.0">
<target>resourcem</target>
<data>
<resourcem>
<set_pool>
<resource_pool xsi:type="ns2:resource_ip_poolType">
<type>resource_ip</type>
</resource_pool>
</set_pool>
</resourcem>
</data>
</packet>