Loading...
 

Get Assigned Pricing Profile


HTTP VerbGET
URI Template/account/{accID}/assignedpricingprofile/virtual
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 ModeSynchronous.

Sample Request

GET /pncp-external-api-rest/account/4138/assignedpricingprofile/virtual HTTP/1.1
Accept: application/vnd.pncp.v.5.0+json
Authorization: PNCP dmk5SklueWRrTElUL0FGR05RV2xoZkJZVGRsSzVRND0=
Content-Length: 0
User-Agent: Jakarta Commons-HttpClient/3.1
Host: YOUR_API_URL

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, 01 Mar 2012 17:06:15 GMT

{   
   "pricingProfileName":"PNAP PP 2",
   "assignmentDate":"2012/02/29 10:43:00",
   "endDate":null,

   "nodePricingDetails":[
      {
         "nodeResource":{
            "resourceURL":"/node/1"
         },

         "pricePoints":[
            {
               "description":"1 VM on, 2 vCPU, 14 RAM [GIGABYTE PER HOUR]",
               "pricePointResource":{
                  "resourceURL":"/pricepoint/0x1x2x2x3x14"
               },
               "price":1.7
            },
            {
               "description":"1 VM on, 1 vCPU, 512 RAM [MEGABYTE PER HOUR]",
               "pricePointResource":{
                  "resourceURL":"/pricepoint/0x1x2x1x3x512"
               },
               "price":0.1
            },

            {
               "description":"1 VM on, 8 vCPU, 40 RAM [GIGABYTE PER HOUR]",
               "pricePointResource":{
                  "resourceURL":"/pricepoint/0x1x2x8x3x40"
               },
               "price":5.4
            },

		…

            {
               "description":"1 VM on, 8 vCPU, 24 RAM [GIGABYTE PER HOUR]",
               "pricePointResource":{
                  "resourceURL":"/pricepoint/0x1x2x8x3x24"
               },
               "price":3.8
            },
            {
               "description":"1 VM on, 2 vCPU, 2 RAM [GIGABYTE PER HOUR]",
               "pricePointResource":{
                  "resourceURL":"/pricepoint/0x1x2x2x3x2"
               },
               "price":0.5
            },
            {
               "description":"1 VM on, 1 vCPU, 16 RAM [GIGABYTE PER HOUR]",
               "pricePointResource":{
                  "resourceURL":"/pricepoint/0x1x2x1x3x16"
               },
               "price":1.7
            },
            {
               "description":"1 VM on, 8 vCPU, 16 RAM [GIGABYTE PER HOUR]",
               "pricePointResource":{
                  "resourceURL":"/pricepoint/0x1x2x8x3x16"
               },
               "price":3.0
            }
         ]
      }
   ]
}