Get Capacity Pools#

Description

Returns a list of Capacity Pools.

Request#

HTTP Method: GET

URI Path: /v3/capacity_pools

URI Query Parameters:

Name

Type

Is Required?

Description

filter[<filter_name>]

string

Optional

Filtering

include

string

Optional

Inclusion

sort

string

Optional

Sorting

Includes:

Value

Description

countries

Country Object

shared_capacity_groups

Shared Capacity Group Object

qty_based_pricings

Quantity Based Price Object

Filters:

Filter Name

Type

Allow Blank

Allow Array

Filters by:

id

string

No

Yes

Capacity Pool id field.

Sorting:

Value

Sorts by:

name

The name field.

renew_date

The renew_date field.

total_channels_count

The total_channels_count field.

assigned_channels_count

The assigned_channels_count field.

minimum_limit

The minimum_limit field.

minimum_qty_per_order

The minimum_qty_per_order field.

setup_price

The setup_price field.

monthly_price

The monthly_price field.

metered_rate

The metered_rate field.

Examples#

http

1GET /v3/capacity_pools HTTP/1.1
2Host: api.didww.com
3Content-Type: application/vnd.api+json
4Accept: application/vnd.api+json
5Api-Key: [API token]

curl

1curl -i -X GET https://api.didww.com/v3/capacity_pools -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json"

response

 1HTTP/1.1 200 OK
 2Content-Type: application/vnd.api+json
 3
 4{
 5  "data": [{
 6      "id": "ca1315c5-1915-4fc7-9441-de78e1f38ef9",
 7      "type": "capacity_pools",
 8      "attributes": {
 9        "name": "Extended",
10        "renew_date": "2018-07-21",
11        "total_channels_count": 136,
12        "assigned_channels_count": 136,
13        "minimum_limit": 0,
14        "minimum_qty_per_order": 1,
15        "setup_price": "25.0",
16        "monthly_price": "25.0",
17        "metered_rate": "0.02"
18      },
19      "relationships": {
20        "countries": {
21          "links": {
22            "self": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/relationships/countries",
23            "related": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/countries"
24          }
25        },
26        "shared_capacity_groups": {
27          "links": {
28            "self": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/relationships/shared_capacity_groups",
29            "related": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/shared_capacity_groups"
30          }
31        },
32        "qty_based_pricings": {
33          "links": {
34            "self": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/relationships/qty_based_pricings",
35            "related": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/qty_based_pricings"
36          }
37        }
38      }
39    },
40    {
41      "id": "daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d",
42      "type": "capacity_pools",
43      "attributes": {
44        "name": "Standard",
45        "renew_date": "2018-07-21",
46        "total_channels_count": 2,
47        "assigned_channels_count": 2,
48        "minimum_limit": 0,
49        "minimum_qty_per_order": 1,
50        "setup_price": "15.0",
51        "monthly_price": "15.0",
52        "metered_rate": "0.01"
53      },
54      "relationships": {
55        "countries": {
56          "links": {
57            "self": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/relationships/countries",
58            "related": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/countries"
59          }
60        },
61        "shared_capacity_groups": {
62          "links": {
63            "self": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/relationships/shared_capacity_groups",
64            "related": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/shared_capacity_groups"
65          }
66        },
67        "qty_based_pricings": {
68          "links": {
69            "self": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/relationships/qty_based_pricings",
70            "related": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/qty_based_pricings"
71          }
72        }
73      }
74    }
75  ],
76  "meta": {
77    "total_records": 2,
78    "api_version": "2017-09-18"
79  },
80  "links": {
81    "first": "https://api.didww.com/v3/capacity_pools?page%5Bnumber%5D=1&page%5Bsize%5D=50",
82    "last": "https://api.didww.com/v3/capacity_pools?page%5Bnumber%5D=1&page%5Bsize%5D=50"
83  }
84}

Other Responses#

Code

Success

Description

404

No

Not Found

401

No

Unauthorized