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>] |
|
Optional |
|
include |
|
Optional |
|
sort |
|
Optional |
Includes:
Value |
Description |
|---|---|
countries |
|
shared_capacity_groups |
|
qty_based_pricings |
Filters:
Filter Name |
Type |
Allow Blank |
Allow Array |
Filters by: |
|---|---|---|---|---|
id |
|
No |
Yes |
Capacity Pool |
Sorting:
Value |
Sorts by: |
|---|---|
name |
The |
renew_date |
The |
total_channels_count |
The |
assigned_channels_count |
The |
minimum_limit |
The |
minimum_qty_per_order |
The |
setup_price |
The |
monthly_price |
The |
metered_rate |
The |
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}
http
1GET /v3/capacity_pools?include=countries 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?include=countries' -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 "data": [{
26 "type": "countries",
27 "id": "7eda11bb-0e66-4146-98e7-57a5281f56c8"
28 }]
29 },
30 "shared_capacity_groups": {
31 "links": {
32 "self": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/relationships/shared_capacity_groups",
33 "related": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/shared_capacity_groups"
34 }
35 },
36 "qty_based_pricings": {
37 "links": {
38 "self": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/relationships/qty_based_pricings",
39 "related": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/qty_based_pricings"
40 }
41 }
42 }
43 },
44 {
45 "id": "daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d",
46 "type": "capacity_pools",
47 "attributes": {
48 "name": "Standard",
49 "renew_date": "2018-07-21",
50 "total_channels_count": 2,
51 "assigned_channels_count": 2,
52 "minimum_limit": 0,
53 "minimum_qty_per_order": 1,
54 "setup_price": "15.0",
55 "monthly_price": "15.0",
56 "metered_rate": "0.01"
57 },
58 "relationships": {
59 "countries": {
60 "links": {
61 "self": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/relationships/countries",
62 "related": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/countries"
63 },
64 "data": [{
65 "type": "countries",
66 "id": "1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"
67 }]
68 },
69 "shared_capacity_groups": {
70 "links": {
71 "self": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/relationships/shared_capacity_groups",
72 "related": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/shared_capacity_groups"
73 }
74 },
75 "qty_based_pricings": {
76 "links": {
77 "self": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/relationships/qty_based_pricings",
78 "related": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/qty_based_pricings"
79 }
80 }
81 }
82 }
83 ],
84 "included": [{
85 "id": "7eda11bb-0e66-4146-98e7-57a5281f56c8",
86 "type": "countries",
87 "attributes": {
88 "name": "United Kingdom",
89 "prefix": "44",
90 "iso": "GB"
91 },
92 "relationships": {
93 "regions": {
94 "links": {
95 "self": "https://sandbox-api.didww.com/v3/countries/7eda11bb-0e66-4146-98e7-57a5281f56c8/relationships/regions",
96 "related": "https://sandbox-api.didww.com/v3/countries/7eda11bb-0e66-4146-98e7-57a5281f56c8/regions"
97 }
98 }
99 }
100 },
101 {
102 "id": "1f6fc2bd-f081-4202-9b1a-d9cb88d942b9",
103 "type": "countries",
104 "attributes": {
105 "name": "United States",
106 "prefix": "1",
107 "iso": "US"
108 },
109 "relationships": {
110 "regions": {
111 "links": {
112 "self": "https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/relationships/regions",
113 "related": "https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/regions"
114 }
115 }
116 }
117 }
118 ],
119 "meta": {
120 "total_records": 2,
121 "api_version": "2017-09-18"
122 },
123 "links": {
124 "first": "https://api.didww.com/v3/capacity_pools?page%5Bnumber%5D=1&page%5Bsize%5D=50",
125 "last": "https://api.didww.com/v3/capacity_pools?page%5Bnumber%5D=1&page%5Bsize%5D=50"
126 }
127}
http
1GET /v3/capacity_pools?include=shared_capacity_groups 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?include=shared_capacity_groups' -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 "data": [{
32 "type": "shared_capacity_groups",
33 "id": "dd2e8844-6a79-4673-ba1c-c8a4913884cc"
34 }]
35 },
36 "qty_based_pricings": {
37 "links": {
38 "self": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/relationships/qty_based_pricings",
39 "related": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/qty_based_pricings"
40 }
41 }
42 }
43 },
44 {
45 "id": "daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d",
46 "type": "capacity_pools",
47 "attributes": {
48 "name": "Standard",
49 "renew_date": "2018-07-21",
50 "total_channels_count": 2,
51 "assigned_channels_count": 2,
52 "minimum_limit": 0,
53 "minimum_qty_per_order": 1,
54 "setup_price": "15.0",
55 "monthly_price": "15.0",
56 "metered_rate": "0.01"
57 },
58 "relationships": {
59 "countries": {
60 "links": {
61 "self": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/relationships/countries",
62 "related": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/countries"
63 }
64 },
65 "shared_capacity_groups": {
66 "links": {
67 "self": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/relationships/shared_capacity_groups",
68 "related": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/shared_capacity_groups"
69 }
70 },
71 "qty_based_pricings": {
72 "links": {
73 "self": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/relationships/qty_based_pricings",
74 "related": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/qty_based_pricings"
75 }
76 }
77 }
78 }
79 ],
80 "included": [{
81 "id": "dd2e8844-6a79-4673-ba1c-c8a4913884cc",
82 "type": "shared_capacity_groups",
83 "attributes": {
84 "name": "Sample group",
85 "shared_channels_count": 0,
86 "created_at": "2018-06-19T11:41:21.644Z",
87 "metered_channels_count": 30
88 },
89 "relationships": {
90 "capacity_pool": {
91 "links": {
92 "self": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/relationships/capacity_pool",
93 "related": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/capacity_pool"
94 }
95 },
96 "dids": {
97 "links": {
98 "self": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/relationships/dids",
99 "related": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/dids"
100 }
101 }
102 }
103 }],
104 "meta": {
105 "total_records": 2,
106 "api_version": "2017-09-18"
107 },
108 "links": {
109 "first": "https://api.didww.com/v3/capacity_pools?page%5Bnumber%5D=1&page%5Bsize%5D=50",
110 "last": "https://api.didww.com/v3/capacity_pools?page%5Bnumber%5D=1&page%5Bsize%5D=50"
111 }
112}
Other Responses#
Code |
Success |
Description |
|---|---|---|
404 |
No |
|
401 |
No |