Support / KnowledgeBase

 
Search the KnowledgeBase Search
feedCurrently Browsing: API
Launch

API: Service Service Object JSON Representation { "service" : { "id" : 556, "serviceType" : 605, "serviceTypeName" : "DV Base 3.5", "ipAddresses" : [ "192.168.200.66" ], "hostServer" : "vz000.mediatemple.net", "billingStatus" : "0", "billingStatusText" : "OPEN", "operatingSystem" : "1002", "operatingSys ... Applies To: API

Launch

(mt) API PHP Client READ ME FIRST This article is provided as a courtesy. Installing, configuring, and troubleshooting third-party applications is outside the scope of support provided by (mt) Media Temple. Please take a moment to review the Statement of Support. This user-generated PHP class covers all the fun ... Applies To: API

Launch

Service API The (mt) Media Temple Service API provides developers with information about their servers, including listing of all services and detailed information about each particular service. Add Service – This method provides a way to add a new (mt) Media Temple service to the authenticated account. ... Applies To: API

Launch

API: Add Service This method provides a way to add a new (mt) Media Temple service to the authenticated account. Request Info The following URL and HTTP method should be used. HTTP Method URL POST https://api.mediatemple.net/api/v1/services The following data must be provided as a type-specific object ... Applies To: API

Launch

API: List Available Operating Systems This method retrieves a list of Operating Systems that may be installed. Note: Currently, the only service that allows a specific operating system to be selected is the (ve) Servers. Request Info HTTP Method URL GET https://api.mediatemple.net/api/v1/services/types/os Remember: You nee ... Applies To: API

Launch

API: List Available Services This method returns a list of Service type types that can be provisioned via the Add Service method. Request Info HTTP Method URL GET https://api.mediatemple.net/api/v1/services/types Remember: You need to specify your API Key in either the Authentication header or as a URL parameter in ... Applies To: API

Launch

API: Add Temporary Disk Space Add temporary disk space to your server over the Public API. This method provides a way to add temporary disk space to a sever for a specific (mt) Media Temple service that is associated with the authenticated account. Request Info The following URL and HTTP method should be used. HTTP Met ... Applies To: API

Launch

API: Flush Firewall This method provides a way to flush the server firewall rules for a specific (mt) Media Temple service that is associated with the authenticated account. Request Info The following URL and HTTP method should be used. HTTP Method URL POST https://api.mediatemple.net/api/v1/services/{servic ... Applies To: API

Launch

API: Get All Service Detail 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 con ... Applies To: API

Launch

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. HTTP Method URL GET https://api.mediatemple.net/api/v1/services/{serviceId} The following parameters must be provided in the URL. Parameter Type Descriptio ... Applies To: API

Launch

API: Get Service IDs 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 URL GET https://api.mediatemple.net/api/v1/services/ids Response Info The response ... Applies To: API

Launch

API: Reboot Server This method provides a way to reboot the server for a specific (mt) Media Temple service that is associated with the authenticated account. Request Info The following URL and HTTP method should be used. HTTP Method URL POST https://api.mediatemple.net/api/v1/services/{serviceId}/reboot ... Applies To: API

Launch

API: Set Plesk Password This method provides a way to set the Plesk password for a specific (mt) Media Temple service associated with the authenticated account. Request Info The following URL and HTTP method should be used. HTTP Method URL PUT https://api.mediatemple.net/api/v1/services/{serviceId}/pleskPassword ... Applies To: API

Launch

API: Set Root Password Overview This method provides a way to set the root password for a specific (mt) Media Temple service associated with the authenticated account. Caution: This article is for use with the (mt) API. For more information, please see: ProDev API. Request Info The following URL and HTTP method sh ... Applies To: API

Launch

API: Get Current Stats Request Info The following URL and HTTP method should be used. HTTP Method URL GET https://api.mediatemple.net/api/v1/stats/{serviceId} The following parameters must be provided in the URL. Parameter Type Description serviceId int The service id Response Info The response will re ... Applies To: API

Launch

API: Get Range Stats This method provides a way to retrieve the resource usage levels for a specific (mt) Media Temple server over a specific range of time. Request Info The following URL and HTTP method should be used. HTTP Method URL GET https://api.mediatemple.net/api/v1/stats/{serviceId} See also Get P ... Applies To: API

Launch

API: Get Predefined Range Stats This method provides a way to retrieve the resource usage levels for a specific (mt) Media Temple server over certain predefined ranges of time. Request Info The following URL and HTTP methods are available. HTTP Method URL Resolution* GET https://api.mediatemple.net/api/v1/stats/{service ... Applies To: API

Launch

API: Get Warnings This method provides a way to retrieve current warnings for all services associated with the authenticated account. This method only provides warnings that are currently in progress (e.g. it will not return all warnings for exceeded thresholds over the past hour). Request Info The following U ... Applies To: API

Launch

API: Get Warning Thresholds This method provides a way to retrieve the pre-defined thresholds for service warnings. Request Info The following URL and HTTP method should be used. HTTP Method URL GET https://api.mediatemple.net/api/v1/stats/warnings/thresholds Response Info The response will return an HTTP status ... Applies To: API

Launch

API: Service Type serviceType Object JSON representation { "serviceType": { "id":668, "duration":"month-to-month", "description":"(ve) Server 1GB" } } XML representation <serviceType> <id>668</id> <duration>month-to-month</duration> <description>(ve) Server 1GB</ ... Applies To: API

Launch

API: Operating System osType Object JSON Representation { "osType":{ "id":16, "templateName":"ubuntu-9.10-x86_64", "osName":"Ubuntu 9.10", "osDescription":"Ubuntu 9.10 Karmic", "primarySortOrder":10, "secondarySortOrder":10, "defaultSelection":1 } } XML Representation <?xml version="1.0" encoding="UTF- ... Applies To: API

Launch

API-enabled Services The table below identifies which API functions are available to each (mt) Media Temple service type. As additional capabilities are added or extended to more services, this table will be updated. Applies To: API

Launch

Appendix A: API Objects The various Objects that the API can return/consume include the following. Operating System Service Service Type Applies To: API

Launch

Stats API The (mt) Media Temple Stats API provides developers with resource usage information on their servers, including current and historical data for: cpu, memory, process, load, disk space, and network traffic. The API can also be used to determine when resource usage is abnormally high. Get Curre ... Applies To: API

Launch

Parsing API Responses The (mt) Media Temple API uses HTTP status codes to indicate the result of API calls to the client. In addition to this, the (mt) Media Temple API also provides additional information in the response body to identify specific faults and other data to the client. HTTP Response Codes The follow ... Applies To: API

Launch

API Query parameters The (mt) Media Temple API provides several query parameters that can be used across resource requests to perform common operations. HTTP Query Parameters The following is a list of query parameters that are globally available across resource requests. Param Description Default Example ap ... Applies To: API

Launch

API HTTP headers The (mt) Media Temple Public API provides several HTTP headers that can be used across resource requests to perform common operations. HTTP headers The following is a list of HTTP headers that are globally available across resource requests. Param Description Default Example Authorization ... Applies To: API

Launch

API Content Types The (mt) Media Temple API provides resource extensions and Accept Headers (see also API HTTP headers) that can be added to the request to specify content types for API requests and responses. Extensions The following is a list of extensions that can be used for any resource requests. Para ... Applies To: API

Launch

Global API mechanisms The (mt) Media Temple API provides several mechanisms that can be used across resource requests to authenticate when accessing resources, specify the desired Content Type for results, etc. API Content Types - (mt) Media Temple Content Types for requests and responses. API HTTP headers – HTTP ... Applies To: API

Launch

(mt) Media Temple API Guide Overview The (mt) Media Temple API documentation is organized by the following articles. Global API Mechanisms – The common mechanisms used across API resources: authentication, request/response formats, etc. API Content Types – (mt) Media Temple Content Types for requests and responses. API ... Applies To: API