Loading...
 

Modify Network Configuration


HTTP VerbPUT
URI Template/account/{accID}/node/{nodeID}/network
MIME Typeapplication/vnd.pncp.v.1.0+json onwards
Normal HTTP Response Code200 OK
Invoked byResellers can invoke this for their own account as well as any other account they own. End-clients can invoke this for their account only.
Response ModeAsynchronous.

Sample Request (standard mode)

PUT /account/{accID}/node/{nodeID}/network HTTP/1.1
Accept: application/vnd.pncp.v.5.0+json
Authorization: PNCP riPRdnHM9DAd6aVSNQ9UqTocG3UI7JyGzhvZP2+BeSk=
Content-Type: application/vnd.pncp.v.5.0+json
Content-Length: 115
User-Agent: Jakarta Commons-HttpClient/3.1
Host: YOUR_API_URL
{
   "networkConfig":"STANDARD"
}

Sample Request (advanced mode)

PUT /account/{accID}/node/{nodeID}/network HTTP/1.1
Accept: application/vnd.pncp.v.5.0+json
Authorization: PNCP riPRdnHM9DAd6aVSNQ9UqTocG3UI7JyGzhvZP2+BeSk=
Content-Type: application/vnd.pncp.v.5.0+json
Content-Length: 115
User-Agent: Jakarta Commons-HttpClient/3.1
Host: YOUR_API_URL
{
   "networkConfig":"ADVANCED",
   "networkStoragePrivateIP":"10.0.0.9",
   "networkMask":"255.255.255.0",
   "gatewayIP":"10.0.0.1",
   "dnsServers":[
      "8.8.4.4",
      "8.8.4.5"
   ],
   "privateIpRangeFirst":"10.0.0.20",
   "privateIpRangeLast":"10.0.0.54",
   "leaseTimeDefaultSecs":8900,
   "leaseTimeMaxSecs":90300
}

Sample Request (custom mode)

PUT /account/{accID}/node/{nodeID}/network HTTP/1.1
Accept: application/vnd.pncp.v.5.0+json
Authorization: PNCP riPRdnHM9DAd6aVSNQ9UqTocG3UI7JyGzhvZP2+BeSk=
Content-Type: application/vnd.pncp.v.5.0+json
Content-Length: 115
User-Agent: Jakarta Commons-HttpClient/3.1
Host: YOUR_API_URL
{
   "networkStoragePrivateIP":"10.0.0.9",
   "networkMask":"255.255.255.0",
   "gatewayIP":"10.0.0.1"
}

Sample Response

HTTP/1.1 202 Accepted
Server: Apache-Coyote/1.1
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-store
Content-Type: application/vnd.pncp.v.5.0+json
Transfer-Encoding: chunked
Date: Thu, 26 Jan 2012 11:06:13 GMT

{
   "resourceURL":"/task/8ab670f8-36fd-496d-b214-17943e742c9f"
}

Field Info

Field Name
Required
networkConfig
Always required. Can be STANDARD, ADVANCED or CUSTOM.
networkStoragePrivateIP
Required for ADVANCED and CUSTOM network modes.
networkMask
Required for ADVANCED and CUSTOM network modes.
gatewayIP
Required for ADVANCED and CUSTOM network modes.
dnsServers
Required for ADVANCED network modes.
privateIpRangeFirst
Required for ADVANCED network modes.
privateIpRangeLast
Required for ADVANCED network modes.
leaseTimeDefaultSecs
Required for ADVANCED network modes.
leaseTimeMaxSecs
Required for ADVANCED network modes.