Loading...
 

Modify Bare Metal Firewall


HTTP VerbPUT
URI Template/baremetalfirewall/{firewallID}
MIME Typeapplication/vnd.pncp.v.4.0+json onwards
Normal HTTP Response Code200 OK
Invoked ByResellers can invoke this for bare metal firewalls found in their own account as well as any other account they own. End-clients cannot place this request.
Response ModeSynchronous.

Sample Request

PUT /pncp-external-api-rest/baremetalfirewall/542 HTTP/1.1
Accept: application/vnd.pncp.v.5.0+json
Authorization: PNCP MBSGE4XjJBXa18d/FBaT5N7onODL2UYNwuKE3qZZmd4=
Content-Length: 0
User-Agent: Jakarta Commons-HttpClient/3.1
Host: YOUR_API_URL

{
   "newName":"test bare metal firewall",
   "newDescription":"test bare metal firewall full description"
}

Sample Response

HTTP/1.1 200 OK
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:24:35 GMT

{ 
   "name":"test bare metal firewall",
   "description":"test bare metal firewall full description",
   "nodeResource":{  
      "resourceURL":"/node/1"
   },
   "accountResource":{  
      "resourceURL":"/account/10"
   },
      "privateIps":[  
      "172.23.0.27"
   ],
   "publicIps":[  
      "66.85.161.218",
      "66.85.161.219",
      "66.85.161.220",
      "66.85.161.221",
      "66.85.161.222"
   ],
   
   "rootPassword":"pass",
   "userAccount":"uname",
   "userAccountPassword":"password",
   "serviceName":"Dummy Service",
   "servicePrice":0.0,
   "invoiceStatus":"Unbilled",
   "lastRenewedOn":1416812400000,
   "renewalDate":1419404400000,
   "serviceDiscount": 50,
   "serviceDiscountType": "PERCENTAGE",
   "serviceDiscountedPrice": 119,
   "serviceBillingPeriod": "Monthly",
   "childServices":[  
      {  
         "name":"testmt",
         "description":"Dummy Child Service",
         "servicePrice":20.0,
         "invoiceStatus":"Pre-billed",
         "lastRenewedOn":1414393200000,
         "renewalDate":1418108400000,
         "serviceDiscount": 8,
         "serviceDiscountType": "AMOUNT",
         "serviceDiscountedPrice": 10,
         "serviceBillingPeriod": "Monthly"
      }
   ],
   "servicePlanList": [
    {
      "name": "DATACENTER",
      "description": "Phoenix",
      "servicePrice": 0,
      "invoiceStatus": null,
      "lastRenewedOn": null,
      "renewalDate": null,
      "serviceDiscount": 0,
      "serviceDiscountType": "PERCENTAGE",
      "serviceDiscountedPrice": 0,
      "serviceBillingPeriod": null
    },
    {
      "name": "HARDWARE FIREWALL",
      "description": "Dell SonicWALL 215",
      "servicePrice": 0,
      "invoiceStatus": null,
      "lastRenewedOn": null,
      "renewalDate": null,
      "serviceDiscount": 0,
      "serviceDiscountType": "PERCENTAGE",
      "serviceDiscountedPrice": 0,
      "serviceBillingPeriod": null
    }   ]
}