- global
- rtmp
- gb28181
- monitor
- mp4
- transcode
- debug
- stress
- cluster
- test
节点列表
开发中
GET
/cluster/api/nodes
请求参数
无
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/cluster/api/nodes'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
nodes
array [object {10}]
必需
示例
{
"code": 0,
"message": "获取节点列表成功",
"data": {
"nodes": [
{
"id": "etcd-node1",
"address": "43.132.141.21:50054",
"role": "manager",
"status": "healthy",
"region": "default",
"lastHeartbeat": "1746781538093",
"streamCount": 0,
"capacity": {
"maxConcurrentStreams": 0,
"maxBandwidthMbps": 0,
"maxCpuPercent": 100,
"maxMemoryGb": 32,
"maxTranscodingSlots": 24
},
"currentLoad": {
"cpuPercent": 0,
"memoryGb": 29.8974609375,
"bandwidthMbps": 0,
"concurrentStreams": 0,
"activeTranscodingTasks": 0
},
"metadata": {}
},
{
"id": "etcd-node2",
"address": "43.132.141.21:50052",
"role": "worker",
"status": "healthy",
"region": "default",
"lastHeartbeat": "1746781538419",
"streamCount": 0,
"capacity": {
"maxConcurrentStreams": 0,
"maxBandwidthMbps": 0,
"maxCpuPercent": 100,
"maxMemoryGb": 32,
"maxTranscodingSlots": 24
},
"currentLoad": {
"cpuPercent": 0,
"memoryGb": 29.919921875,
"bandwidthMbps": 0,
"concurrentStreams": 0,
"activeTranscodingTasks": 0
},
"metadata": {}
}
]
}
}

扫码关注公众号"不卡科技"
包含最佳实践、技术原理、最新活动



扫码加入不卡科技QQ 群

