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 |
Sparse Fieldsets:
Value |
Returns: |
|---|---|
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 {
7 "id": "ca1315c5-1915-4fc7-9441-de78e1f38ef9",
8 "type": "capacity_pools",
9 "attributes": {
10 "name": "Extended",
11 "renew_date": "2018-07-21",
12 "total_channels_count": 136,
13 "assigned_channels_count": 136,
14 "minimum_limit": 0,
15 "minimum_qty_per_order": 1,
16 "setup_price": "25.0",
17 "monthly_price": "25.0",
18 "metered_rate": "0.02"
19 },
20 "relationships": {
21 "countries": {
22 "links": {
23 "self": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/relationships/countries",
24 "related": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/countries"
25 }
26 },
27 "shared_capacity_groups": {
28 "links": {
29 "self": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/relationships/shared_capacity_groups",
30 "related": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/shared_capacity_groups"
31 }
32 },
33 "qty_based_pricings": {
34 "links": {
35 "self": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/relationships/qty_based_pricings",
36 "related": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/qty_based_pricings"
37 }
38 }
39 }
40 },
41 {
42 "id": "daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d",
43 "type": "capacity_pools",
44 "attributes": {
45 "name": "Standard",
46 "renew_date": "2018-07-21",
47 "total_channels_count": 2,
48 "assigned_channels_count": 2,
49 "minimum_limit": 0,
50 "minimum_qty_per_order": 1,
51 "setup_price": "15.0",
52 "monthly_price": "15.0",
53 "metered_rate": "0.01"
54 },
55 "relationships": {
56 "countries": {
57 "links": {
58 "self": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/relationships/countries",
59 "related": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/countries"
60 }
61 },
62 "shared_capacity_groups": {
63 "links": {
64 "self": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/relationships/shared_capacity_groups",
65 "related": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/shared_capacity_groups"
66 }
67 },
68 "qty_based_pricings": {
69 "links": {
70 "self": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/relationships/qty_based_pricings",
71 "related": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/qty_based_pricings"
72 }
73 }
74 }
75 }
76 ],
77 "meta": {
78 "total_records": 2
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 {
7 "id": "ca1315c5-1915-4fc7-9441-de78e1f38ef9",
8 "type": "capacity_pools",
9 "attributes": {
10 "name": "Extended",
11 "renew_date": "2018-07-21",
12 "total_channels_count": 136,
13 "assigned_channels_count": 136,
14 "minimum_limit": 0,
15 "minimum_qty_per_order": 1,
16 "setup_price": "25.0",
17 "monthly_price": "25.0",
18 "metered_rate": "0.02"
19 },
20 "relationships": {
21 "countries": {
22 "links": {
23 "self": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/relationships/countries",
24 "related": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/countries"
25 },
26 "data": [
27 {
28 "type": "countries",
29 "id": "7eda11bb-0e66-4146-98e7-57a5281f56c8"
30 }
31 ]
32 },
33 "shared_capacity_groups": {
34 "links": {
35 "self": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/relationships/shared_capacity_groups",
36 "related": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/shared_capacity_groups"
37 }
38 },
39 "qty_based_pricings": {
40 "links": {
41 "self": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/relationships/qty_based_pricings",
42 "related": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/qty_based_pricings"
43 }
44 }
45 }
46 },
47 {
48 "id": "daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d",
49 "type": "capacity_pools",
50 "attributes": {
51 "name": "Standard",
52 "renew_date": "2018-07-21",
53 "total_channels_count": 2,
54 "assigned_channels_count": 2,
55 "minimum_limit": 0,
56 "minimum_qty_per_order": 1,
57 "setup_price": "15.0",
58 "monthly_price": "15.0",
59 "metered_rate": "0.01"
60 },
61 "relationships": {
62 "countries": {
63 "links": {
64 "self": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/relationships/countries",
65 "related": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/countries"
66 },
67 "data": [
68 {
69 "type": "countries",
70 "id": "1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"
71 }
72 ]
73 },
74 "shared_capacity_groups": {
75 "links": {
76 "self": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/relationships/shared_capacity_groups",
77 "related": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/shared_capacity_groups"
78 }
79 },
80 "qty_based_pricings": {
81 "links": {
82 "self": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/relationships/qty_based_pricings",
83 "related": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/qty_based_pricings"
84 }
85 }
86 }
87 }
88 ],
89 "included": [
90 {
91 "id": "7eda11bb-0e66-4146-98e7-57a5281f56c8",
92 "type": "countries",
93 "attributes": {
94 "name": "United Kingdom",
95 "prefix": "44",
96 "iso": "GB"
97 }
98 },
99 {
100 "id": "1f6fc2bd-f081-4202-9b1a-d9cb88d942b9",
101 "type": "countries",
102 "attributes": {
103 "name": "United States",
104 "prefix": "1",
105 "iso": "US"
106 }
107 }
108 ],
109 "meta": {
110 "total_records": 2
111 },
112 "links": {
113 "first": "https://api.didww.com/v3/capacity_pools?page%5Bnumber%5D=1&page%5Bsize%5D=50",
114 "last": "https://api.didww.com/v3/capacity_pools?page%5Bnumber%5D=1&page%5Bsize%5D=50"
115 }
116}
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 {
7 "id": "ca1315c5-1915-4fc7-9441-de78e1f38ef9",
8 "type": "capacity_pools",
9 "attributes": {
10 "name": "Extended",
11 "renew_date": "2018-07-21",
12 "total_channels_count": 136,
13 "assigned_channels_count": 136,
14 "minimum_limit": 0,
15 "minimum_qty_per_order": 1,
16 "setup_price": "25.0",
17 "monthly_price": "25.0",
18 "metered_rate": "0.02"
19 },
20 "relationships": {
21 "countries": {
22 "links": {
23 "self": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/relationships/countries",
24 "related": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/countries"
25 }
26 },
27 "shared_capacity_groups": {
28 "links": {
29 "self": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/relationships/shared_capacity_groups",
30 "related": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/shared_capacity_groups"
31 },
32 "data": [
33 {
34 "type": "shared_capacity_groups",
35 "id": "dd2e8844-6a79-4673-ba1c-c8a4913884cc"
36 }
37 ]
38 },
39 "qty_based_pricings": {
40 "links": {
41 "self": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/relationships/qty_based_pricings",
42 "related": "https://api.didww.com/v3/capacity_pools/ca1315c5-1915-4fc7-9441-de78e1f38ef9/qty_based_pricings"
43 }
44 }
45 }
46 },
47 {
48 "id": "daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d",
49 "type": "capacity_pools",
50 "attributes": {
51 "name": "Standard",
52 "renew_date": "2018-07-21",
53 "total_channels_count": 2,
54 "assigned_channels_count": 2,
55 "minimum_limit": 0,
56 "minimum_qty_per_order": 1,
57 "setup_price": "15.0",
58 "monthly_price": "15.0",
59 "metered_rate": "0.01"
60 },
61 "relationships": {
62 "countries": {
63 "links": {
64 "self": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/relationships/countries",
65 "related": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/countries"
66 }
67 },
68 "shared_capacity_groups": {
69 "links": {
70 "self": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/relationships/shared_capacity_groups",
71 "related": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/shared_capacity_groups"
72 }
73 },
74 "qty_based_pricings": {
75 "links": {
76 "self": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/relationships/qty_based_pricings",
77 "related": "https://api.didww.com/v3/capacity_pools/daae37a3-c4fc-40a7-b5e6-6ec9d08ed74d/qty_based_pricings"
78 }
79 }
80 }
81 }
82 ],
83 "included": [
84 {
85 "id": "dd2e8844-6a79-4673-ba1c-c8a4913884cc",
86 "type": "shared_capacity_groups",
87 "attributes": {
88 "name": "Sample group",
89 "shared_channels_count": 0,
90 "created_at": "2018-06-19T11:41:21.644Z",
91 "metered_channels_count": 30
92 },
93 "relationships": {
94 "capacity_pool": {
95 "links": {
96 "self": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/relationships/capacity_pool",
97 "related": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/capacity_pool"
98 }
99 },
100 "dids": {
101 "links": {
102 "self": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/relationships/dids",
103 "related": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/dids"
104 }
105 }
106 }
107 }
108 ],
109 "meta": {
110 "total_records": 2
111 },
112 "links": {
113 "first": "https://api.didww.com/v3/capacity_pools?page%5Bnumber%5D=1&page%5Bsize%5D=50",
114 "last": "https://api.didww.com/v3/capacity_pools?page%5Bnumber%5D=1&page%5Bsize%5D=50"
115 }
116}
Other Responses#
Code |
Success |
Description |
|---|---|---|
404 |
No |
|
401 |
No |