Splits an IPv4 network into the specified number of networks.
Output / ResponseReturns an array of networks created after splitting the
network.
API call:
APIEntity[] splitIP4Network ( long networkId, int
numberOfParts, String options )
Parameter |
Description |
networkId |
The database object ID of the network that is being split. |
numberOfParts |
The number of the networks into which the network will be split.
Valid values are 2 to the power of 2 up to 1024. |
options |
A string containing the following options:
- assignDefaultGateway—a Boolean value. If set to
true, a gateway will be created by using
the default gateway value which is the first IP address in the
network. If set to false, no gateway will be
created. The default value is true.
- overwriteConflicts—a Boolean value. If set to
true, any conflicts within the split IPv4
network will be removed. The default value is
false.
- template—a network template ID. The default
value is 0 which means no network template will be used. Specify
a network template ID if you wish to apply one.
- preserveGateway—a Boolean value. If set to
true, the gateway in the original network will be
preserved. The default value is true.
|