API: Get Service Detail

Retrieve details about a particular service over the Public API.

Request Info

The following URL and HTTP method should be used.


The following parameters must be provided in the URL.

Parameter Type Description
serviceId int The service id

Response Info

The response will return an HTTP status code to indicate the general category of success or failure to the client. More specific error codes and messages will be contained in the response data itself, if provided. For more information on response codes and parsing response data, see Parsing API Responses.

Sample Request

To get a list of services in JSON format for service id 556, do the following.

curl -D log.txt -s -X "GET" ""

Sample Response

Here is an example of the returned result.


"service" : {
"id" : 556,
"serviceType" : 605,
"serviceTypeName" : "DV Base 3.5",
"ipAddresses" : [ "" ],
"hostServer" : "",
"billingStatus" : "0",
"billingStatusText" : "OPEN",
"operatingSystem" : "1002",
"operatingSystemName" : "Centos 5",
"accessDomain" : null,
"primaryDomain" : "",
"addons" : [ {
"id" : 258,
"description" : "DV Linux Plesk Basic Unlimit"
}, {
"id" : 298,
"description" : "DV Snapshot Backups"
}, {
"id" : 69,
"description" : "DV 256mb memory"
} ]

Next line of text

Response Fields

The fields in the result represent the following.

Field Description
services The list of services associated with the currently authenticated account.

The fields for each of the service items in the result represent the following.

Field Description
id The service id
serviceType The service type as an integer
serviceTypeName The service type description
ipAddresses The list of IP addresses associated with the service
hostServer The server this service is hosted on
billingStatus The billing status as an integer
billingStatusText The billing status description
operatingSystem The operating system as an integer
operatingSystemName The operating system description
accessDomain The access domain* associated with the service
(* This is a unique domain for your Grid or (ve) Server. See your Server Guide for details.)
primaryDomain The primary domain for the service
addons Any add-ons associated with the service

The fields for each Add-on represent the following.

Field Description
id The add-on id
description The description of the add-on
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Powered by Zendesk