Skip to main content
Skip table of contents

List of media server groups

List of media server groups

GET /api/admin/v1/packs
200 OK

Successful response

JSON
[
    {
        "id": 3,
        "name": "Group 3",
        "parent_id": null,
        "created_at": "2021-05-27 17:15:36",
        "updated_at": "2021-05-27 17:15:36",
        "clusters": [
            {
                "id": 3,
                "name": "Cluster 3",
                "type": "main-secondary",
                "internal": 555,
                "external": 555,
                "m4f": 555,
                "rtsp": 555,
                "publish": 555,
                "streams_limit": 6000,
                "bitrate_limit": 600000,
                "created_at": "2021-05-27 17:14:48",
                "updated_at": "2022-05-27 12:40:53",
                "servers": [
                    {
                        "id": 5,
                        "type": "media_server_v2",
                        "schema": "https",
                        "domain": "labMS7.vms.local",
                        "internal": "8080",
                        "external": "8443",
                        "m4f": "8443",
                        "rtsp": "5554",
                        "publish": "555",
                        "traffic_in": 9716,
                        "traffic_out": 0,
                        "status": 1,
                        "is_enabled": 1,
                        "is_main": 0,
                        "has_cache": 0,
                        "proxy": ".vms.local",
                        "created_at": "2021-05-27 16:16:26",
                        "updated_at": "2022-05-30 13:50:02",
                        "group_type": "all",
                        "can_delete": false,
                        "streams_limit": 6000,
                        "bitrate_limit": 600000,
                        "extra": {
                            "io": {
                                "read_rate": 0,
                                "read_bytes": 0,
                                "write_rate": 0,
                                "write_bytes": 0
                            },
                            "cpu": {
                                "total": 13,
                                "usage": 5,
                                "stime_sec": 4928,
                                "utime_sec": 4928
                            },
                            "mem": {
                                "rss": 267591680,
                                "share": 9515008,
                                "usage": 2475175936
                            },
                            "net": {
                                "in_bitrate": 9948816,
                                "out_bitrate": 0
                            },
                            "drives": {
                                "/": {
                                    "fs": "ext4",
                                    "mount": "/",
                                    "inode_free": 1438956,
                                    "inode_total": 1605632,
                                    "capacity_free": 18022989824,
                                    "capacity_total": 25759584256
                                },
                                "/boot": {
                                    "fs": "ext4",
                                    "mount": "/boot",
                                    "inode_free": 65216,
                                    "inode_total": 65536,
                                    "capacity_free": 704004096,
                                    "capacity_total": 1023303680
                                },
                                "/storage": {
                                    "fs": "ext4",
                                    "mount": "/storage",
                                    "inode_free": 32756557,
                                    "inode_total": 32768000,
                                    "capacity_free": 115347943424,
                                    "capacity_total": 527371075584
                                }
                            },
                            "server": {
                                "ip4": "192.168.200.19",
                                "name": "MS-21.03-lts",
                                "build": "109f155",
                                "uptime": 244888,
                                "startat": 1653662914,
                                "version": "21.03",
                                "hostname": "labMS7.vms.local",
                                "revision": "lts",
                                "timestamp": "20220527141500"
                            },
                            "cluster": {
                                "id": "3",
                                "node": "7",
                                "enable": "true",
                                "hostname": "labMS7.vms.local"
                            },
                            "license": {
                                "own": "Vms",
                                "type": "enterprise",
                                "issued": 1685443802
                            },
                            "streams": {
                                "total": 24,
                                "active": 4,
                                "clients": 0
                            },
                            "storages": {
                                "/storage": {
                                    "fs": "",
                                    "err": 0,
                                    "name": "default",
                                    "mount": "/storage",
                                    "inode_free": 32756557,
                                    "inode_total": 32768000,
                                    "capacity_free": 115347943424,
                                    "capacity_total": 527371075584
                                }
                            }
                        }
                    },
                    {
                        "id": 6,
                        "type": "media_server_v2",
                        "schema": "https",
                        "domain": "labMS8.vms.local",
                        "internal": "8080",
                        "external": "8443",
                        "m4f": "8443",
                        "rtsp": "5554",
                        "publish": "555",
                        "traffic_in": 33647,
                        "traffic_out": 0,
                        "status": 1,
                        "is_enabled": 1,
                        "is_main": 0,
                        "has_cache": 0,
                        "proxy": ".vms.local",
                        "created_at": "2021-05-27 16:17:06",
                        "updated_at": "2022-05-30 13:50:02",
                        "group_type": "all",
                        "can_delete": false,
                        "streams_limit": 6000,
                        "bitrate_limit": 600000,
                        "extra": {
                            "io": {
                                "read_rate": 0,
                                "read_bytes": 0,
                                "write_rate": 0,
                                "write_bytes": 0
                            },
                            "cpu": {
                                "total": 16,
                                "usage": 21,
                                "stime_sec": 21741,
                                "utime_sec": 21741
                            },
                            "mem": {
                                "rss": 891305984,
                                "share": 10481664,
                                "usage": 2842722304
                            },
                            "net": {
                                "in_bitrate": 34454032,
                                "out_bitrate": 0
                            },
                            "drives": {
                                "/": {
                                    "fs": "ext4",
                                    "mount": "/",
                                    "inode_free": 1472957,
                                    "inode_total": 1605632,
                                    "capacity_free": 18226298880,
                                    "capacity_total": 25759584256
                                },
                                "/boot": {
                                    "fs": "ext4",
                                    "mount": "/boot",
                                    "inode_free": 65220,
                                    "inode_total": 65536,
                                    "capacity_free": 807084032,
                                    "capacity_total": 1023303680
                                },
                                "/storage": {
                                    "fs": "ext4",
                                    "mount": "/storage",
                                    "inode_free": 32719622,
                                    "inode_total": 32768000,
                                    "capacity_free": 48259567616,
                                    "capacity_total": 527371075584
                                }
                            },
                            "server": {
                                "ip4": "192.168.200.20",
                                "name": "MS-21.03-lts",
                                "build": "109f155",
                                "uptime": 244888,
                                "startat": 1653662914,
                                "version": "21.03",
                                "hostname": "labMS8.vms.local",
                                "revision": "lts",
                                "timestamp": "20220527141500"
                            },
                            "cluster": {
                                "id": "3",
                                "node": "8",
                                "enable": "true",
                                "hostname": "labMS8.vms.local"
                            },
                            "license": {
                                "own": "Vms",
                                "type": "enterprise",
                                "issued": 1685443802
                            },
                            "streams": {
                                "total": 25,
                                "active": 16,
                                "clients": 0
                            },
                            "storages": {
                                "/storage": {
                                    "fs": "",
                                    "err": 0,
                                    "name": "default",
                                    "mount": "/storage",
                                    "inode_free": 32719622,
                                    "inode_total": 32768000,
                                    "capacity_free": 48259567616,
                                    "capacity_total": 527371075584
                                }
                            }
                        }
                    }
                ]
            }
        ],
        "subnets": []
    },
    {
        "id": 2,
        "name": "Group 2",
        "parent_id": null,
        "created_at": "2021-05-27 17:15:27",
        "updated_at": "2021-12-21 19:39:01",
        "clusters": [
            {
                "id": 2,
                "name": "Cluster 2",
                "type": "main-secondary",
                "internal": null,
                "external": null,
                "m4f": null,
                "rtsp": null,
                "publish": null,
                "streams_limit": null,
                "bitrate_limit": null,
                "created_at": "2021-05-27 17:14:37",
                "updated_at": "2021-05-27 17:14:37",
                "servers": [
                    {
                        "id": 3,
                        "type": "media_server_v2",
                        "schema": "https",
                        "domain": "labMS5.vms.local",
                        "internal": "8080",
                        "external": "8443",
                        "m4f": "8443",
                        "rtsp": "5554",
                        "publish": "7554",
                        "traffic_in": 13097,
                        "traffic_out": 0,
                        "status": 1,
                        "is_enabled": 0,
                        "is_main": 0,
                        "has_cache": 0,
                        "proxy": ".vms.local",
                        "created_at": "2021-05-27 16:15:02",
                        "updated_at": "2022-05-30 13:50:02",
                        "group_type": "all",
                        "can_delete": false,
                        "streams_limit": 1000,
                        "bitrate_limit": 60000,
                        "extra": {
                            "io": {
                                "read_rate": 0,
                                "read_bytes": 0,
                                "write_rate": 0,
                                "write_bytes": 0
                            },
                            "cpu": {
                                "total": 15,
                                "usage": 9,
                                "stime_sec": 9647,
                                "utime_sec": 9647
                            },
                            "mem": {
                                "rss": 380473344,
                                "share": 10321920,
                                "usage": 2545463296
                            },
                            "net": {
                                "in_bitrate": 13411256,
                                "out_bitrate": 0
                            },
                            "drives": {
                                "/": {
                                    "fs": "ext4",
                                    "mount": "/",
                                    "inode_free": 1479723,
                                    "inode_total": 1605632,
                                    "capacity_free": 19090702336,
                                    "capacity_total": 25759584256
                                },
                                "/boot": {
                                    "fs": "ext4",
                                    "mount": "/boot",
                                    "inode_free": 65220,
                                    "inode_total": 65536,
                                    "capacity_free": 807088128,
                                    "capacity_total": 1023303680
                                },
                                "/storage": {
                                    "fs": "ext4",
                                    "mount": "/storage",
                                    "inode_free": 32753904,
                                    "inode_total": 32768000,
                                    "capacity_free": 241728442368,
                                    "capacity_total": 527371075584
                                }
                            },
                            "server": {
                                "ip4": "192.168.200.17",
                                "name": "MS-21.03-lts",
                                "build": "109f155",
                                "uptime": 244890,
                                "startat": 1653662912,
                                "version": "21.03",
                                "hostname": "labMS5.vms.local",
                                "revision": "lts",
                                "timestamp": "20220527141500"
                            },
                            "cluster": {
                                "id": "2",
                                "node": "5",
                                "enable": "true",
                                "hostname": "labMS5.vms.local"
                            },
                            "license": {
                                "own": "Vms",
                                "type": "enterprise",
                                "issued": 1685443802
                            },
                            "streams": {
                                "total": 36,
                                "active": 10,
                                "clients": 0
                            },
                            "storages": {
                                "/storage": {
                                    "fs": "",
                                    "err": 0,
                                    "name": "default",
                                    "mount": "/storage",
                                    "inode_free": 32753904,
                                    "inode_total": 32768000,
                                    "capacity_free": 241728442368,
                                    "capacity_total": 527371075584
                                }
                            }
                        }
                    },
                    {
                        "id": 4,
                        "type": "media_server_v2",
                        "schema": "https",
                        "domain": "labMS6.vms.local",
                        "internal": "8080",
                        "external": "8443",
                        "m4f": "8443",
                        "rtsp": "5554",
                        "publish": "7554",
                        "traffic_in": 38785,
                        "traffic_out": 14885,
                        "status": 1,
                        "is_enabled": 1,
                        "is_main": 0,
                        "has_cache": 0,
                        "proxy": ".vms.local",
                        "created_at": "2021-05-27 16:15:44",
                        "updated_at": "2022-05-30 13:50:02",
                        "group_type": "all",
                        "can_delete": false,
                        "streams_limit": 1000,
                        "bitrate_limit": 60000,
                        "extra": {
                            "io": {
                                "read_rate": 0,
                                "read_bytes": 0,
                                "write_rate": 0,
                                "write_bytes": 0
                            },
                            "cpu": {
                                "total": 23,
                                "usage": 26,
                                "stime_sec": 22642,
                                "utime_sec": 22642
                            },
                            "mem": {
                                "rss": 911884288,
                                "share": 10055680,
                                "usage": 2931580928
                            },
                            "net": {
                                "in_bitrate": 39715344,
                                "out_bitrate": 15242208
                            },
                            "drives": {
                                "/": {
                                    "fs": "ext4",
                                    "mount": "/",
                                    "inode_free": 1441414,
                                    "inode_total": 1605632,
                                    "capacity_free": 18384347136,
                                    "capacity_total": 25759584256
                                },
                                "/boot": {
                                    "fs": "ext4",
                                    "mount": "/boot",
                                    "inode_free": 65216,
                                    "inode_total": 65536,
                                    "capacity_free": 703995904,
                                    "capacity_total": 1023303680
                                },
                                "/storage": {
                                    "fs": "ext4",
                                    "mount": "/storage",
                                    "inode_free": 32750603,
                                    "inode_total": 32768000,
                                    "capacity_free": 1343647744,
                                    "capacity_total": 527371075584
                                }
                            },
                            "server": {
                                "ip4": "192.168.200.18",
                                "name": "MS-21.03-lts",
                                "build": "109f155",
                                "uptime": 244887,
                                "startat": 1653662915,
                                "version": "21.03",
                                "hostname": "labMS6.vms.local",
                                "revision": "lts",
                                "timestamp": "20220527141500"
                            },
                            "cluster": {
                                "id": "2",
                                "node": "6",
                                "enable": "true",
                                "hostname": "labMS6.vms.local"
                            },
                            "license": {
                                "own": "Vms",
                                "type": "enterprise",
                                "issued": 1685443802
                            },
                            "streams": {
                                "total": 36,
                                "active": 15,
                                "clients": 6
                            },
                            "storages": {
                                "/storage": {
                                    "fs": "",
                                    "err": 0,
                                    "name": "default",
                                    "mount": "/storage",
                                    "inode_free": 32750603,
                                    "inode_total": 32768000,
                                    "capacity_free": 1343647744,
                                    "capacity_total": 527371075584
                                }
                            }
                        }
                    }
                ]
            }
        ],
        "subnets": []
    },
    {
        "id": 1,
        "name": "Group 1",
        "parent_id": null,
        "created_at": "2021-05-27 17:15:20",
        "updated_at": "2021-05-27 17:15:20",
        "clusters": [
            {
                "id": 1,
                "name": "Cluster 1",
                "type": "main-secondary",
                "internal": null,
                "external": null,
                "m4f": null,
                "rtsp": null,
                "publish": null,
                "streams_limit": null,
                "bitrate_limit": null,
                "created_at": "2021-05-27 17:14:21",
                "updated_at": "2021-12-29 13:11:13",
                "servers": [
                    {
                        "id": 1,
                        "type": "media_server_v2",
                        "schema": "https",
                        "domain": "labMS3.vms.local",
                        "internal": "8080",
                        "external": "8443",
                        "m4f": "8443",
                        "rtsp": "5554",
                        "publish": "7554",
                        "traffic_in": 37396,
                        "traffic_out": 14451,
                        "status": 1,
                        "is_enabled": 1,
                        "is_main": 1,
                        "has_cache": 0,
                        "proxy": ".vms.local",
                        "created_at": "2021-05-27 16:07:46",
                        "updated_at": "2022-05-30 13:50:02",
                        "group_type": "all",
                        "can_delete": false,
                        "streams_limit": 1000,
                        "bitrate_limit": 600000,
                        "extra": {
                            "io": {
                                "read_rate": 0,
                                "read_bytes": 0,
                                "write_rate": 0,
                                "write_bytes": 0
                            },
                            "cpu": {
                                "total": 12,
                                "usage": 10,
                                "stime_sec": 10256,
                                "utime_sec": 10256
                            },
                            "mem": {
                                "rss": 1050836992,
                                "share": 10420224,
                                "usage": 3188060160
                            },
                            "net": {
                                "in_bitrate": 38293872,
                                "out_bitrate": 14797360
                            },
                            "drives": {
                                "/": {
                                    "fs": "ext4",
                                    "mount": "/",
                                    "inode_free": 1464430,
                                    "inode_total": 1589248,
                                    "capacity_free": 14974267392,
                                    "capacity_total": 25491165184
                                },
                                "none": {
                                    "fs": "swap",
                                    "mount": "none",
                                    "inode_free": 0,
                                    "inode_total": 0,
                                    "capacity_free": 0,
                                    "capacity_total": 0
                                },
                                "/boot": {
                                    "fs": "ext4",
                                    "mount": "/boot",
                                    "inode_free": 97988,
                                    "inode_total": 98304,
                                    "capacity_free": 1333460992,
                                    "capacity_total": 1551745024
                                },
                                "/storage": {
                                    "fs": "ext4",
                                    "mount": "/storage",
                                    "inode_free": 32749518,
                                    "inode_total": 32768000,
                                    "capacity_free": 569270272,
                                    "capacity_total": 527371075584
                                }
                            },
                            "server": {
                                "ip4": "192.168.200.15",
                                "name": "MS-21.03-lts",
                                "build": "109f155",
                                "uptime": 244890,
                                "startat": 1653662912,
                                "version": "21.03",
                                "hostname": "labMS3.vms.local",
                                "revision": "lts",
                                "timestamp": "20220527141500"
                            },
                            "cluster": {
                                "id": "100",
                                "node": "3",
                                "enable": "true",
                                "hostname": "labMS3.vms.local"
                            },
                            "license": {
                                "own": "Vms",
                                "type": "enterprise",
                                "issued": 1685443802
                            },
                            "streams": {
                                "total": 52,
                                "active": 17,
                                "clients": 5
                            },
                            "storages": {
                                "/storage": {
                                    "fs": "",
                                    "err": 0,
                                    "name": "default",
                                    "mount": "/storage",
                                    "inode_free": 32749518,
                                    "inode_total": 32768000,
                                    "capacity_free": 569270272,
                                    "capacity_total": 527371075584
                                },
                                "/storage2": {
                                    "fs": "",
                                    "err": -2,
                                    "name": "secondary",
                                    "mount": "/storage2",
                                    "inode_free": 0,
                                    "inode_total": 0,
                                    "capacity_free": 0,
                                    "capacity_total": 0
                                }
                            }
                        }
                    },
                    {
                        "id": 2,
                        "type": "media_server_v2",
                        "schema": "https",
                        "domain": "labMS4.vms.local",
                        "internal": "8080",
                        "external": "8443",
                        "m4f": "8443",
                        "rtsp": "5554",
                        "publish": "7554",
                        "traffic_in": 26488,
                        "traffic_out": 2227,
                        "status": 1,
                        "is_enabled": 1,
                        "is_main": 0,
                        "has_cache": 0,
                        "proxy": ".vms.local",
                        "created_at": "2021-05-27 16:08:57",
                        "updated_at": "2022-05-30 13:50:02",
                        "group_type": "all",
                        "can_delete": false,
                        "streams_limit": 1000,
                        "bitrate_limit": 60000,
                        "extra": {
                            "io": {
                                "read_rate": 0,
                                "read_bytes": 0,
                                "write_rate": 0,
                                "write_bytes": 0
                            },
                            "cpu": {
                                "total": 5,
                                "usage": 8,
                                "stime_sec": 8342,
                                "utime_sec": 8342
                            },
                            "mem": {
                                "rss": 648974336,
                                "share": 10481664,
                                "usage": 2944716800
                            },
                            "net": {
                                "in_bitrate": 27123912,
                                "out_bitrate": 2280248
                            },
                            "drives": {
                                "/": {
                                    "fs": "ext4",
                                    "mount": "/",
                                    "inode_free": 1427585,
                                    "inode_total": 1589248,
                                    "capacity_free": 14411792384,
                                    "capacity_total": 25491165184
                                },
                                "none": {
                                    "fs": "swap",
                                    "mount": "none",
                                    "inode_free": 0,
                                    "inode_total": 0,
                                    "capacity_free": 0,
                                    "capacity_total": 0
                                },
                                "/boot": {
                                    "fs": "ext4",
                                    "mount": "/boot",
                                    "inode_free": 97984,
                                    "inode_total": 98304,
                                    "capacity_free": 1230381056,
                                    "capacity_total": 1551745024
                                },
                                "/storage": {
                                    "fs": "ext4",
                                    "mount": "/storage",
                                    "inode_free": 32742707,
                                    "inode_total": 32768000,
                                    "capacity_free": 42921984000,
                                    "capacity_total": 527371075584
                                }
                            },
                            "server": {
                                "ip4": "192.168.200.16",
                                "name": "MS-21.03-lts",
                                "build": "109f155",
                                "uptime": 244890,
                                "startat": 1653662912,
                                "version": "21.03",
                                "hostname": "labMS4.vms.local",
                                "revision": "lts",
                                "timestamp": "20220527141500"
                            },
                            "cluster": {
                                "id": "100",
                                "node": "4",
                                "enable": "true",
                                "hostname": "labMS4.vms.local"
                            },
                            "license": {
                                "own": "Vms",
                                "type": "enterprise",
                                "issued": 1685443802
                            },
                            "streams": {
                                "total": 52,
                                "active": 21,
                                "clients": 1
                            },
                            "storages": {
                                "/storage": {
                                    "fs": "",
                                    "err": 0,
                                    "name": "default",
                                    "mount": "/storage",
                                    "inode_free": 32742707,
                                    "inode_total": 32768000,
                                    "capacity_free": 42921984000,
                                    "capacity_total": 527371075584
                                },
                                "/storage2": {
                                    "fs": "",
                                    "err": -2,
                                    "name": "secondary",
                                    "mount": "/storage2",
                                    "inode_free": 0,
                                    "inode_total": 0,
                                    "capacity_free": 0,
                                    "capacity_total": 0
                                }
                            }
                        }
                    }
                ]
            }
        ],
        "subnets": []
    }
]
401 Unauthorized

Authorization token is not provided or is invalid. Obtaining a token

cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/packs' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '[]'
PHP
PHP
$data = array (
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'GET',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/packs', false, $context);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.