Get Shared Capacity Groups#
Description
Returns a collection of Shared Capacity Groups.
Request#
HTTP Method: GET
URI Path: /v3/shared_capacity_groups
URI Query Parameters:
Name |
Type |
Is Required? |
Description |
|---|---|---|---|
filter[<filter_name>] |
|
Optional |
|
include |
|
Optional |
|
sort |
|
Optional |
Includes:
Value |
Description |
|---|---|
dids |
|
capacity_pool |
Filters:
Filter Name |
Type |
Allow Blank |
Allow Array |
Filters by: |
|---|---|---|---|---|
name |
|
Yes |
Yes |
Shared Capacity Group |
capacity_pool.id |
|
Yes |
Yes |
The |
Sparse Fieldsets:
Value |
Returns: |
|---|---|
name |
The |
shared_channels_count |
The |
metered_channels_count |
The |
created_at |
The |
Examples#
http
1GET /v3/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/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": "8a581244-de83-4c46-ac0a-32659279169e",
8 "type": "shared_capacity_groups",
9 "attributes": {
10 "name": "Mixed group",
11 "shared_channels_count": 3,
12 "created_at": "2018-06-20T08:48:47.811Z",
13 "metered_channels_count": 5
14 },
15 "relationships": {
16 "capacity_pool": {
17 "links": {
18 "self": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/relationships/capacity_pool",
19 "related": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/capacity_pool"
20 }
21 },
22 "dids": {
23 "links": {
24 "self": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/relationships/dids",
25 "related": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/dids"
26 }
27 }
28 }
29 },
30 {
31 "id": "dd2e8844-6a79-4673-ba1c-c8a4913884cc",
32 "type": "shared_capacity_groups",
33 "attributes": {
34 "name": "Metered group",
35 "shared_channels_count": 0,
36 "created_at": "2018-06-19T11:41:21.644Z",
37 "metered_channels_count": 30
38 },
39 "relationships": {
40 "capacity_pool": {
41 "links": {
42 "self": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/relationships/capacity_pool",
43 "related": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/capacity_pool"
44 }
45 },
46 "dids": {
47 "links": {
48 "self": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/relationships/dids",
49 "related": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/dids"
50 }
51 }
52 }
53 }
54 ],
55 "meta": {
56 "total_records": 2
57 },
58 "links": {
59 "first": "https://api.didww.com/v3/shared_capacity_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50",
60 "last": "https://api.didww.com/v3/shared_capacity_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50"
61 }
62}
http
1GET /v3/shared_capacity_groups?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?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 {
7 "id": "8a581244-de83-4c46-ac0a-32659279169e",
8 "type": "shared_capacity_groups",
9 "attributes": {
10 "name": "Mixed group",
11 "shared_channels_count": 3,
12 "created_at": "2018-06-20T08:48:47.811Z",
13 "metered_channels_count": 5
14 },
15 "relationships": {
16 "capacity_pool": {
17 "links": {
18 "self": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/relationships/capacity_pool",
19 "related": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/capacity_pool"
20 }
21 },
22 "dids": {
23 "links": {
24 "self": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/relationships/dids",
25 "related": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/dids"
26 },
27 "data": [
28 {
29 "type": "dids",
30 "id": "44957076-778a-4802-b60c-d22db0cda284"
31 }
32 ]
33 }
34 }
35 },
36 {
37 "id": "dd2e8844-6a79-4673-ba1c-c8a4913884cc",
38 "type": "shared_capacity_groups",
39 "attributes": {
40 "name": "Metered group",
41 "shared_channels_count": 0,
42 "created_at": "2018-06-19T11:41:21.644Z",
43 "metered_channels_count": 30
44 },
45 "relationships": {
46 "capacity_pool": {
47 "links": {
48 "self": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/relationships/capacity_pool",
49 "related": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/capacity_pool"
50 }
51 },
52 "dids": {
53 "links": {
54 "self": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/relationships/dids",
55 "related": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/dids"
56 }
57 }
58 }
59 }
60 ],
61 "included": [
62 {
63 "id": "44957076-778a-4802-b60c-d22db0cda284",
64 "type": "dids",
65 "attributes": {
66 "blocked": false,
67 "capacity_limit": 1,
68 "description": "string",
69 "terminated": false,
70 "awaiting_registration": false,
71 "number": "437xxxxxxxxx",
72 "expires_at": "2017-06-25T08:21:41.795Z",
73 "channels_included_count": 2,
74 "created_at": "2017-06-25T08:21:41.795Z",
75 "dedicated_channels_count": 0
76 },
77 "relationships": {
78 "did_group": {
79 "links": {
80 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/did_group",
81 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/did_group"
82 }
83 },
84 "order": {
85 "links": {
86 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/order",
87 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/order"
88 }
89 },
90 "voice_in_trunk": {
91 "links": {
92 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/voice_in_trunk",
93 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/voice_in_trunk"
94 }
95 },
96 "voice_in_trunk_group": {
97 "links": {
98 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/voice_in_trunk_group",
99 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/voice_in_trunk_group"
100 }
101 },
102 "capacity_pool": {
103 "links": {
104 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/capacity_pool",
105 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/capacity_pool"
106 }
107 },
108 "shared_capacity_group": {
109 "links": {
110 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/shared_capacity_group",
111 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/shared_capacity_group"
112 }
113 }
114 }
115 }
116 ],
117 "meta": {
118 "total_records": 2
119 },
120 "links": {
121 "first": "https://api.didww.com/v3/shared_capacity_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50",
122 "last": "https://api.didww.com/v3/shared_capacity_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50"
123 }
124}
http
1GET /v3/shared_capacity_groups?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?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 {
7 "id": "8a581244-de83-4c46-ac0a-32659279169e",
8 "type": "shared_capacity_groups",
9 "attributes": {
10 "name": "Mixed group",
11 "shared_channels_count": 3,
12 "created_at": "2018-06-20T08:48:47.811Z",
13 "metered_channels_count": 5
14 },
15 "relationships": {
16 "capacity_pool": {
17 "links": {
18 "self": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/relationships/capacity_pool",
19 "related": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/capacity_pool"
20 },
21 "data": {
22 "type": "capacity_pools",
23 "id": "b8db1d7c-f415-4530-a340-c774bcc1c55f"
24 }
25 },
26 "dids": {
27 "links": {
28 "self": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/relationships/dids",
29 "related": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/dids"
30 }
31 }
32 }
33 },
34 {
35 "id": "dd2e8844-6a79-4673-ba1c-c8a4913884cc",
36 "type": "shared_capacity_groups",
37 "attributes": {
38 "name": "Metered group",
39 "shared_channels_count": 0,
40 "created_at": "2018-06-19T11:41:21.644Z",
41 "metered_channels_count": 30
42 },
43 "relationships": {
44 "capacity_pool": {
45 "links": {
46 "self": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/relationships/capacity_pool",
47 "related": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/capacity_pool"
48 }
49 },
50 "dids": {
51 "links": {
52 "self": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/relationships/dids",
53 "related": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/dids"
54 }
55 }
56 }
57 }
58 ],
59 "included": [
60 {
61 "id": "b8db1d7c-f415-4530-a340-c774bcc1c55f",
62 "type": "capacity_pools",
63 "attributes": {
64 "name": "Extended",
65 "renew_date": "2018-07-21",
66 "total_channels_count": 10,
67 "unassigned_channels_count": 4,
68 "assigned_channels_count": 6,
69 "minimum_limit": 5,
70 "minimum_qty_per_order": 1,
71 "nrc": "0.0",
72 "mrc": "25.0",
73 "metered_rate": "0.02"
74 },
75 "relationships": {
76 "countries": {
77 "links": {
78 "self": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/relationships/countries",
79 "related": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/countries"
80 }
81 },
82 "shared_capacity_groups": {
83 "links": {
84 "self": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/relationships/shared_capacity_groups",
85 "related": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/shared_capacity_groups"
86 }
87 },
88 "qty_based_pricings": {
89 "links": {
90 "self": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/relationships/qty_based_pricings",
91 "related": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/qty_based_pricings"
92 }
93 }
94 }
95 }
96 ],
97 "meta": {
98 "total_records": 2
99 },
100 "links": {
101 "first": "https://api.didww.com/v3/shared_capacity_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50",
102 "last": "https://api.didww.com/v3/shared_capacity_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50"
103 }
104}
Other Responses#
Code |
Success |
Description |
|---|---|---|
404 |
No |
|
401 |
No |