Accounts-accountId-products-productId-services:GET

From Hostway API Documentation
Revision as of 12:23, 31 January 2014 by Mike.robski (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

GET /accounts/{accountId}/products/{productId}/services

Retrieves a list of all services associated with a given product.

Contents

Request

GET /accounts/{accountId}/products/{productId}/services

Parameters

accountId - string
The Id of the account.
productId - string
The Id of the product.

URI Parameters

None.

Request Headers

Authorization - HTTP Authorization header [1]
The Authentication credentials of the client application.

Response

Status Code

200 OK
Success
404 Not Found
The account Id or product Id was not found.
403 Forbidden
Access to closed and suspended accounts requires elevated permissions

Response Body

{
  "list": [
    {
      "name": "Product 1",
      "serviceSpecification": "https://api.hostway.com/serviceSpecifications/{serviceSpecId1}",
      "status": "open",
      "billingCycle": 1,
      "links": [
        {"href": "https://api.hostway.com/accounts/{accountId}/products/{productId}/services/{serviceId1}", "rel": "self"}
      ]
    },
    {
      "name": "Product 2",
      "serviceSpecification": "https://api.hostway.com/serviceSpecifications/{serviceSpecId2}"
      "status": "open",
      "billingCycle": 1,
      "links": [
        {"href": "https://api.hostway.com/accounts/{accountId}/products/{productId}/services/{serviceId2}", "rel": "self"}
      ],
    }
  ],
  "links": [
    {"href": "https://api.hostway.com/accounts/{accountId}/products/{productId}/services", "rel": "self"}
  ]
}
 

Parameters

list - list
A collection of dictionaries containing information about specific services
status - string
Describes the status of a service. Valid values are open, closed, pending, or suspended
name - string
Descriptive name of the service
billingCycle - integer
Billing cycle (length of billing period in months) of the service. Allowed values are from 1 to 120
serviceSpecification - string
Hypermedia for this service resource. Link to the service's specification.
links - list
Hypermedia for this service resource. Links to the service.
links - list
Hypermedia for this resource. Links to self.

See also


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox