Loading...
 

Modify Allocation Limits


HTTP VerbPUT
URI Template/account/{accID}/node/{nodeID}/allocation/virtual
MIME Typeapplication/vnd.pncp.v.1.0+json onwards
Normal HTTP Response Code200 OK
Invoked ByResellers can only invoke this for any child accounts they own not for their own account. End-clients cannot place this request.
Response ModeSynchronous.

Sample Request

PUT /pncp-external-api-rest/account/99/node/1/allocation/virtual HTTP/1.1
Accept: application/vnd.pncp.v.5.0+json 
Authorization: PNCP bMEtE5MT27VZi2qoFkMXgUb/jO+5V7iEY7MJyUgjCOs=
Content-Type: application/vnd.pncp.v.5.0+json
Content-Length: 43
User-Agent: Jakarta Commons-HttpClient/3.1
Host: YOUR_API_URL

{
   "memoryMB":60000,
   "storageGB":3000,
   "vCPUs":30,
   "networkStorageGb":256000000, 
}

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 08:56:10 GMT

{
   "memoryMB":60000,
   "maxMemoryMB":1124863,
   "usedMemoryMB":30,
   "storageGB":3000,
   "maxStorageGB":19997,
   "usedStorageGB":100,
   "vCPUs":30,
   "maxVCPUs":47,
   "usedVCPUs":6,
   "networkStorageGb":256000000,
   "usedNetworkStorageGB":0,
   "maxNetworkStorageGB":512000000,
}

Notes

Field Name
Required
memoryMB
YES
storageGB
YES
vCPUs
YES
networkStorageGb
YES