Get Capacity Pool#
Description
Returns a single Capacity Pool.
Request#
HTTP Method: GET
URI Path: /v3/capacity_pools/
URI Query Parameters:
Name |
Type |
Is Required? |
Description |
|---|---|---|---|
id |
|
Yes |
Unique ID number allocated to this Capacity Pool. |
include |
|
Optional |
Includes:
Value |
Description |
|---|---|
countries |
|
shared_capacity_groups |
|
qty_based_pricings |
Examples#
http
1GET /v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f 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/b8db1d7c-f415-4530-a340-c774bcc1c55f -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": "b8db1d7c-f415-4530-a340-c774bcc1c55f",
7 "type": "capacity_pools",
8 "attributes": {
9 "name": "Extended",
10 "renew_date": "2018-07-21",
11 "total_channels_count": 10,
12 "assigned_channels_count": 6,
13 "minimum_limit": 5,
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/b8db1d7c-f415-4530-a340-c774bcc1c55f/relationships/countries",
23 "related": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/countries"
24 }
25 },
26 "shared_capacity_groups": {
27 "links": {
28 "self": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/relationships/shared_capacity_groups",
29 "related": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/shared_capacity_groups"
30 }
31 },
32 "qty_based_pricings": {
33 "links": {
34 "self": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/relationships/qty_based_pricings",
35 "related": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/qty_based_pricings"
36 }
37 }
38 }
39 },
40 "meta": {
41 "api_version": "2017-09-18"
42 }
43}
http
1GET /v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f?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/b8db1d7c-f415-4530-a340-c774bcc1c55f?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": "b8db1d7c-f415-4530-a340-c774bcc1c55f",
7 "type": "capacity_pools",
8 "attributes": {
9 "name": "Extended",
10 "renew_date": "2018-07-21",
11 "total_channels_count": 10,
12 "assigned_channels_count": 6,
13 "minimum_limit": 5,
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/b8db1d7c-f415-4530-a340-c774bcc1c55f/relationships/countries",
23 "related": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/countries"
24 },
25 "data": [{
26 "type": "countries",
27 "id": "7eda11bb-0e66-4146-98e7-57a5281f56c8"
28 },
29 {
30 "type": "countries",
31 "id": "1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"
32 }
33 ]
34 },
35 "shared_capacity_groups": {
36 "links": {
37 "self": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/relationships/shared_capacity_groups",
38 "related": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/shared_capacity_groups"
39 }
40 },
41 "qty_based_pricings": {
42 "links": {
43 "self": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/relationships/qty_based_pricings",
44 "related": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/qty_based_pricings"
45 }
46 }
47 }
48 },
49 "included": [{
50 "id": "7eda11bb-0e66-4146-98e7-57a5281f56c8",
51 "type": "countries",
52 "attributes": {
53 "name": "United Kingdom",
54 "prefix": "44",
55 "iso": "GB"
56 }
57 },
58 {
59 "id": "1f6fc2bd-f081-4202-9b1a-d9cb88d942b9",
60 "type": "countries",
61 "attributes": {
62 "name": "United States",
63 "prefix": "1",
64 "iso": "US"
65 }
66 }
67 ],
68 "meta": {
69 "api_version": "2017-09-18"
70 }
71}
http
1GET /v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f?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/b8db1d7c-f415-4530-a340-c774bcc1c55f?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": "b8db1d7c-f415-4530-a340-c774bcc1c55f",
7 "type": "capacity_pools",
8 "attributes": {
9 "name": "Extended",
10 "renew_date": "2018-07-21",
11 "total_channels_count": 10,
12 "assigned_channels_count": 6,
13 "minimum_limit": 5,
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/b8db1d7c-f415-4530-a340-c774bcc1c55f/relationships/countries",
23 "related": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/countries"
24 }
25 },
26 "shared_capacity_groups": {
27 "links": {
28 "self": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/relationships/shared_capacity_groups",
29 "related": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/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/b8db1d7c-f415-4530-a340-c774bcc1c55f/relationships/qty_based_pricings",
39 "related": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/qty_based_pricings"
40 }
41 }
42 }
43 },
44 "included": [{
45 "id": "dd2e8844-6a79-4673-ba1c-c8a4913884cc",
46 "type": "shared_capacity_groups",
47 "attributes": {
48 "name": "Sample group",
49 "shared_channels_count": 0,
50 "created_at": "2018-06-19T11:41:21.644Z",
51 "metered_channels_count": 30
52 },
53 "relationships": {
54 "capacity_pool": {
55 "links": {
56 "self": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/relationships/capacity_pool",
57 "related": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/capacity_pool"
58 }
59 },
60 "dids": {
61 "links": {
62 "self": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/relationships/dids",
63 "related": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/dids"
64 }
65 }
66 }
67 }],
68 "meta": {
69 "api_version": "2017-09-18"
70 }
71}
Other Responses#
Code |
Success |
Description |
|---|---|---|
404 |
No |
|
401 |
No |