Loading...
 

Get Service Plan Details


HTTP VerbGET
URI Template/account/{accID}/serviceplan/{servicePlanID}
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/serviceplan/33 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

{
    "name": "USA E5-2670 v3 (3-082014) [Secured Servers, 1]",
    "notes": null,
    "optionGroups": [
        {
            "name": "Datacenter",
            "required": true,
            "options": [
                {
                    "description": "Phoenix (PHX)",
                    "restrictions": "NONE",
                    "defaultFor": "NONE",
                    "optionResource": {
                        "resourceURL": "/serviceplan/674/option/28703"
                    }
                },
                {
                    "description": "Ashburn (ASH)",
                    "restrictions": "NONE",
                    "defaultFor": "NONE",
                    "optionResource": {
                        "resourceURL": "/serviceplan/674/option/28704"
                    }
                },
                {
                    "description": "Amsterdam (NLD)",
                    "restrictions": "NONE",
                    "defaultFor": "NONE",
                    "optionResource": {
                        "resourceURL": "/serviceplan/674/option/28705"
                    }
                }
            ]
        },
        {
            "name": "RAM (In GB)",
            "required": false,
            "options": [
                {
                    "description": "64 GB ECC DDR3  (Included)",
                    "restrictions": "NONE",
                    "defaultFor": "ALL",
                    "optionResource": {
                        "resourceURL": "/serviceplan/674/option/28706"
                    }
                },
                {
                    "description": "96 GB ECC DDR3",
                    "restrictions": "NONE",
                    "defaultFor": "NONE",
                    "optionResource": {
                        "resourceURL": "/serviceplan/674/option/28707"
                    }
                },
                {
                    "description": "128 GB ECC DDR3",
                    "restrictions": "NONE",
                    "defaultFor": "NONE",
                    "optionResource": {
                        "resourceURL": "/serviceplan/674/option/28708"
                    }
                },
                {
                    "description": "192 GB ECC DDR3",
                    "restrictions": "NONE",
                    "defaultFor": "NONE",
                    "optionResource": {
                        "resourceURL": "/serviceplan/674/option/28709"
                    }
                },
                {
                    "description": "256 GB ECC DDR3",
                    "restrictions": "NONE",
                    "defaultFor": "NONE",
                    "optionResource": {
                        "resourceURL": "/serviceplan/674/option/28710"
                    }
                }
            ]
        }
    }
  ]
}

Notes:

  • The Boolean “required” field denotes whether an option from that group is expected to be specified explicitly when creating an order.
  • The “defaultFor” field flags the option as a default selection for that option group. The field can show 3 values:
    • “ALL” denotes that the option is a default for all available datacenters
    • “NONE” denotes that the option is not a default and will not be selected if not specified
    • A set of datacenter abbreviations for which the option is a default for e.g. “PHX, NLD” is default for Phoenix and Netherlands service plans otherwise it is not the default and the default selection falls under a separate option.