Add Subnet

Provides the details to add a subnet to your network. The following formats are supported:

XML Format

URL http://localhost:7080/oputilsapi/ipam?&key=9a5525a4-d7d4-48aa-96fe-caa5ac524346&v=1&format=XML&operation=ADD_SUBNET&subnetAddress=192.168.26.0&subnetMask=255.255.255.0
Parameters

1. subnetAddress=<ip-address>

2. subnetMask=<subnet-mask> (default: 255.255.255.0) Optional
Example: subnetAddress=192.168.26.0&subnetMask=255.255.255.0

Operation

ADD_SUBNET

Success Response

<resource>

  <status>Success</status>

  <input>

  <operation>ADD_SUBNET</operation>

  <subnetAddress>192.168.26.0</subnetAddress>

  <subnetMask>255.255.255.0</subnetMask>

  </input>

</resource>

Failure Response

<resource>

  <status>Failure</status>

  <message>Subnet already added : subnet address - 192.168.26.0 and subnet mask - 255.255.255.0</message>

</resource>

<resource>

  <status>Failure</status>

  <message>Please include subnet address parameter and Try again.</message>

</resource>

 

JSON Format

URL http://localhost:7080/oputilsapi/ipam?&key=9a5525a4-d7d4-48aa-96fe-caa5ac524346&v=1&format=JSON&operation=ADD_SUBNET&subnetAddress=192.168.26.0&subnetMask=255.255.255.0
Parameters

1. subnetAddress=<ip-address>

2. subnetMask=<subnet-mask> (default: 255.255.255.0) Optional
 Example: subnetAddress=192.168.26.0&subnetMask=255.255.255.0

Operation

ADD_SUBNET

Success Response

{

   "input":"{domainName=csez.zohocorpin.com, controllerName=WIN2K8MASTER, loginName=amarnath-0642}",

   "status":"Success"

}

Failure Response

{

   "message":"Subnet already added : subnet address - 192.168.44.0 and subnet mask - 255.255.255.0",

   "input":"{subnetAddress=192.168.44.0, subnetMask=255.255.255.0}",

   "status":"Failure"

}

{

   "message":"Please include subnet address parameter and Try again.",

   "input":"{}",

   "status":"Failure"

}

 

Copyright © 2004-2012, ZOHO Corp. All Rights Reserved.
ManageEngine