Get Shared Capacity Group#
Returns a single Channels Group.
Request#
HTTP Method: GET
URI Path: /v3/shared_capacity_groups/
URI Query Parameters#
Name |
Type |
Is Required? |
Description |
|---|---|---|---|
id |
|
Yes |
Unique ID number allocated to this Shared Capacity Group. |
Includes#
Value |
Description |
|---|---|
dids |
|
capacity_pool |
Examples#
http
1GET /v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e 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/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e -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": "71afa2e2-8d46-4ea3-988d-aa112ed98b5e",
7 "type": "shared_capacity_groups",
8 "attributes": {
9 "name": "Sample group",
10 "shared_channels_count": 3,
11 "created_at": "2018-06-19T11:41:21.644Z",
12 "metered_channels_count": 5
13 },
14 "relationships": {
15 "capacity_pool": {
16 "links": {
17 "self": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/relationships/capacity_pool",
18 "related": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/capacity_pool"
19 }
20 },
21 "dids": {
22 "links": {
23 "self": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/relationships/dids",
24 "related": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/dids"
25 }
26 }
27 }
28 }
29}
http
1GET /v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e?include=dids 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/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e?include=dids' -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": "71afa2e2-8d46-4ea3-988d-aa112ed98b5e",
7 "type": "shared_capacity_groups",
8 "attributes": {
9 "name": "Sample group",
10 "shared_channels_count": 3,
11 "created_at": "2018-06-19T11:41:21.644Z",
12 "metered_channels_count": 5
13 },
14 "relationships": {
15 "capacity_pool": {
16 "links": {
17 "self": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/relationships/capacity_pool",
18 "related": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/capacity_pool"
19 }
20 },
21 "dids": {
22 "links": {
23 "self": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/relationships/dids",
24 "related": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/dids"
25 },
26 "data": [
27 {
28 "type": "dids",
29 "id": "44957076-778a-4802-b60c-d22db0cda284"
30 }
31 ]
32 }
33 },
34 "included": [
35 {
36 "id": "44957076-778a-4802-b60c-d22db0cda284",
37 "type": "dids",
38 "attributes": {
39 "blocked": false,
40 "capacity_limit": 1,
41 "description": "string",
42 "terminated": false,
43 "awaiting_registration": false,
44 "number": "437xxxxxxxxx",
45 "expires_at": "2017-06-25T08:21:41.795Z",
46 "channels_included_count": 2,
47 "created_at": "2017-06-25T08:21:41.795Z",
48 "dedicated_channels_count": 0
49 },
50 "relationships": {
51 "did_group": {
52 "links": {
53 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/did_group",
54 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/did_group"
55 }
56 },
57 "order": {
58 "links": {
59 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/order",
60 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/order"
61 }
62 },
63 "voice_in_trunk": {
64 "links": {
65 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/voice_in_trunk",
66 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/voice_in_trunk"
67 }
68 },
69 "voice_in_trunk_group": {
70 "links": {
71 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/voice_in_trunk_group",
72 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/voice_in_trunk_group"
73 }
74 },
75 "capacity_pool": {
76 "links": {
77 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/capacity_pool",
78 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/capacity_pool"
79 }
80 },
81 "shared_capacity_group": {
82 "links": {
83 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/shared_capacity_group",
84 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/shared_capacity_group"
85 }
86 }
87 }
88 }
89 ]
90 }
91}
http
1GET /v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e?include=capacity_pool 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/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e?include=capacity_pool' -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": "71afa2e2-8d46-4ea3-988d-aa112ed98b5e",
7 "type": "shared_capacity_groups",
8 "attributes": {
9 "name": "Sample group",
10 "shared_channels_count": 3,
11 "created_at": "2018-06-19T11:41:21.644Z",
12 "metered_channels_count": 5
13 },
14 "relationships": {
15 "capacity_pool": {
16 "links": {
17 "self": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/relationships/capacity_pool",
18 "related": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/capacity_pool"
19 },
20 "data": {
21 "type": "capacity_pools",
22 "id": "b8db1d7c-f415-4530-a340-c774bcc1c55f"
23 }
24 },
25 "dids": {
26 "links": {
27 "self": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/relationships/dids",
28 "related": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/dids"
29 }
30 }
31 },
32 "included": [
33 {
34 "id": "b8db1d7c-f415-4530-a340-c774bcc1c55f",
35 "type": "capacity_pools",
36 "attributes": {
37 "name": "Extended",
38 "renew_date": "2018-07-21",
39 "total_channels_count": 10,
40 "unassigned_channels_count": 4,
41 "assigned_channels_count": 6,
42 "minimum_limit": 5,
43 "minimum_qty_per_order": 1,
44 "nrc": "0.0",
45 "mrc": "25.0",
46 "metered_rate": "0.02"
47 },
48 "relationships": {
49 "countries": {
50 "links": {
51 "self": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/relationships/countries",
52 "related": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/countries"
53 }
54 },
55 "shared_capacity_groups": {
56 "links": {
57 "self": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/relationships/shared_capacity_groups",
58 "related": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/shared_capacity_groups"
59 }
60 },
61 "qty_based_pricings": {
62 "links": {
63 "self": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/relationships/qty_based_pricings",
64 "related": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/qty_based_pricings"
65 }
66 }
67 }
68 }
69 ]
70 }
71}
Other Responses#
Code |
Success |
Description |
|---|---|---|
404 |
No |
|
401 |
No |