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>]

string

Optional

Filtering

include

string

Optional

Inclusion

sort

string

Optional

Sorting

Includes:

Value

Description

dids

A list of Shared Capacity Group objects

capacity_pool

Capacity Pool Object

Filters:

Filter Name

Type

Allow Blank

Allow Array

Filters by:

name

string

Yes

Yes

Shared Capacity Group name field.

capacity_pool.id

string

Yes

Yes

The capacity_pool.id field.

Sparse Fieldsets:

Value

Returns:

name

The name attribute.

shared_channels_count

The shared_channels_count attribute.

metered_channels_count

The metered_channels_count attribute.

created_at

The created_at attribute.

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}

Other Responses#

Code

Success

Description

404

No

Not Found

401

No

Unauthorized