(mt):Get all service details

  • This page was last modified on February 17, 2011, at 15:27.
The (mt) Community Wiki is a collaborative project. Any (mt) Media Temple customer or employee may contribute. Not all articles and/or content have been tested for accuracy by (mt) Media Temple.

For officially moderated and tested articles, be sure to visit our KnowledgeBase.

From (mt) Community Wiki

Contents

This method provides a way to retrieve the (mt) Media Temple services associated with the currently authenticated account.

Request Info

The following URL and HTTP method should be used:

HTTP Method URL
GET https://api.mediatemple.net/api/v1/services

Response Info

The response will contain a list of Service objects.

Here is an example of the returned result:

{
"services" : [ {
"id" : 555,
"serviceType" : 668,
"serviceTypeName" : "(ve) Server 1GB",
"ipAddresses" : [ "192.168.200.30" ],
"hostServer" : "vzd000.mediatemple.net",
"billingStatus" : "0",
"billingStatusText" : "OPEN",
"operatingSystem" : "16",
"operatingSystemName" : "Ubuntu 9.10 Karmic",
"accessDomain" : "ve.qwrtsdfg.vesrv.com",
"primaryDomain" : "tylerdurden.com",
"addons" : [ ]
}, {
"id" : 556,
"serviceType" : 605,
"serviceTypeName" : "(dv) Dedicated-Virtual Base 3.5",
"ipAddresses" : [ "192.168.200.31" ],
"hostServer" : "vz000.mediatemple.net",
"billingStatus" : "0",
"billingStatusText" : "OPEN",
"operatingSystem" : "1002",
"operatingSystemName" : "Centos 5",
"accessDomain" : null,
"primaryDomain" : "dv35.tylerdurden.com",
"addons" : [ {
"id" : 258,
"description" : "(dv) Linux Plesk Basic Unlimit"
}, {
"id" : 298,
"description" : "(dv) Snapshot Backups"
}, {
"id" : 69,
"description" : "(dv) 256mb memory"
} ]
} ]
}

Sample Request

To get a list of services in JSON format, do the following:

curl -D log.txt -s -X "GET" "https://api.mediatemple.net/api/v1/services.json?apikey=a5h34sf62..."