Loading...
 

Get List of Service Plans


HTTP VerbGET
URI Template/account/{accID}/serviceplans
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 cannot place this request.
Response ModeSynchronous.

Sample Request

GET /pncp-external-api-rest/account/99/serviceplans HTTP/1.1
Accept: application/vnd.pncp.v.5.0+json
Authorization: PNCP v5Bv8HYzhhrnSeALHnt6eCiKcdDRf5F32dIaRvWw1ss=
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-store
Content-Type: application/vnd.pncp.v.5.0+json
Transfer-Encoding: chunked
Date: Thu, 26 Jan 2012 08:56:08 GMT

{  
   "servicePlanSummaries":[  
      {  
         "name":"Intel Xeon E3-1230 (4x3.2GHz)",
         "resource":{  
            "resourceURL":"/account/99/serviceplan/25"
         }
      },
      {  
         "name":"Intel Xeon E3-1240 v3 (4x3.4GHz)",
         "resource":{  
            "resourceURL":"/account/99/serviceplan/26"
         }
      },
      {  
         "name":"Intel Xeon E3-1240 v3 4-bay (4x3.4GHz)",
         "resource":{  
            "resourceURL":"/account/99/serviceplan/27"
         }
      },
      {  
         "name":"Intel Xeon E3-1270 v3 (4x3.5GHz)",
         "resource":{  
            "resourceURL":"/account/99/serviceplan/32"
         }
      },
      {  
         "name":"Dual Intel Xeon E5-2609 (8x2.4GHz)",
         "resource":{  
            "resourceURL":"/account/99/serviceplan/33"
         }
      }      
   ]
}